[Bug 255757] New: /dev/disk/by-id/ doesn't work for mp3 player with 2 partitions
https://bugzilla.novell.com/show_bug.cgi?id=255757 Summary: /dev/disk/by-id/ doesn't work for mp3 player with 2 partitions Product: openSUSE 10.3 Version: Alpha 2 Platform: Other OS/Version: Linux Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: mfabian@novell.com QAContact: qa@suse.de /dev/disk/by-id/ doesn't work for mp3 player with 2 partitions -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=255757 ------- Comment #1 from mfabian@novell.com 2007-03-19 05:23 MST ------- MP3 player model: Tevion MD80433 MSN 5001 9584 (MEDION AG, Aldi). This player has 512 MB memory built in and has an extension slot where one can insert an SD card. I have an 512 MB SD card inserted. When connecting the player to an USB port, I see the following in /var/log/messages: Mar 19 12:08:54 magellan kernel: usb 2-1.4: new device found, idVendor=066f, idProduct=8206 Mar 19 12:08:54 magellan kernel: usb 2-1.4: new device strings: Mfr=1, Product=2, SerialNumber=3 Mar 19 12:08:55 magellan kernel: usb 2-1.4: Product: MP3 Music Player Mar 19 12:08:55 magellan kernel: usb 2-1.4: Manufacturer: Digital Mar 19 12:08:55 magellan kernel: usb 2-1.4: SerialNumber: 0002F685AE33470F Mar 19 12:08:55 magellan kernel: usb 2-1.4: configuration #1 chosen from 1 choice Mar 19 12:08:56 magellan kernel: SCSI subsystem initialized Mar 19 12:08:56 magellan kernel: Initializing USB Mass Storage driver... Mar 19 12:08:56 magellan kernel: scsi0 : SCSI emulation for USB Mass Storage devices Mar 19 12:08:56 magellan kernel: usb-storage: device found at 8 Mar 19 12:08:56 magellan kernel: usb-storage: waiting for device to settle before scanning Mar 19 12:08:56 magellan kernel: usbcore: registered new interface driver usb-storage Mar 19 12:08:56 magellan kernel: USB Mass Storage support registered. Mar 19 12:08:57 magellan kernel: scsi 0:0:0:0: Direct-Access Digital MP3 Music Player 0100 PQ: 0 ANS I: 4 Mar 19 12:08:57 magellan kernel: scsi 0:0:0:1: Direct-Access Digital MP3 Music Player 0100 PQ: 0 ANS I: 4 Mar 19 12:08:57 magellan kernel: usb-storage: device scan complete Mar 19 12:08:57 magellan kernel: SCSI device sda: 1012736 512-byte hdwr sectors (519 MB) Mar 19 12:08:57 magellan kernel: sda: Write Protect is off Mar 19 12:08:57 magellan kernel: sda: Mode Sense: 38 00 00 00 Mar 19 12:08:57 magellan kernel: sda: assuming drive cache: write through Mar 19 12:08:57 magellan kernel: SCSI device sda: 1012736 512-byte hdwr sectors (519 MB) Mar 19 12:08:57 magellan kernel: sda: Write Protect is off Mar 19 12:08:57 magellan kernel: sda: Mode Sense: 38 00 00 00 Mar 19 12:08:57 magellan kernel: sda: assuming drive cache: write through Mar 19 12:08:57 magellan kernel: sda: sda1 Mar 19 12:08:57 magellan kernel: sd 0:0:0:0: Attached scsi removable disk sda Mar 19 12:08:57 magellan kernel: SCSI device sdb: 1000448 512-byte hdwr sectors (512 MB) Mar 19 12:08:57 magellan kernel: sdb: Write Protect is off Mar 19 12:08:57 magellan kernel: sdb: Mode Sense: 38 00 00 00 Mar 19 12:08:57 magellan kernel: sdb: assuming drive cache: write through Mar 19 12:08:57 magellan kernel: SCSI device sdb: 1000448 512-byte hdwr sectors (512 MB) Mar 19 12:08:57 magellan kernel: sdb: Write Protect is off Mar 19 12:08:57 magellan kernel: sdb: Mode Sense: 38 00 00 00 Mar 19 12:08:57 magellan kernel: sdb: assuming drive cache: write through Mar 19 12:08:57 magellan kernel: sdb: sdb1 Mar 19 12:08:57 magellan kernel: sd 0:0:0:1: Attached scsi removable disk sdb Mar 19 12:08:57 magellan kernel: sd 0:0:0:0: Attached scsi generic sg0 type 0 Mar 19 12:08:57 magellan kernel: sd 0:0:0:1: Attached scsi generic sg1 type 0 I.e. the player has two disks /dev/sda and /dev/sdb which have one partition each /dev/sda1 and /dev/sdb1. One is the built in memory, one is the SD card. This is fine so far, I can mount both partitions and read and write data just fine. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=255757 ------- Comment #2 from mfabian@novell.com 2007-03-19 05:31 MST ------- But as /dev/sda1 and /dev/sdb1 may change from time to time depending on what other USB devices are connected, I wanted to use the device names below /dev/disk/by-id/ instead to be able to make entries in /etc/fstab for these two partitions of the mp3 player which are constant and will never change. But, surprisingly only one of the two partitions appears in /dev/disk/by-id: mfabian@magellan:~$ ls /dev/disk/by-id/ -l 合計 0 lrwxrwxrwx 1 root root 9 2007-03-14 15:15 ata-IC35L080AVVA07-0_VNC402A4D1XY4A -> ../../hdc lrwxrwxrwx 1 root root 10 2007-03-14 15:15 ata-IC35L080AVVA07-0_VNC402A4D1XY4A-part1 -> ../../hdc1 lrwxrwxrwx 1 root root 10 2007-03-14 15:15 ata-IC35L080AVVA07-0_VNC402A4D1XY4A-part2 -> ../../hdc2 lrwxrwxrwx 1 root root 9 2007-03-14 15:15 ata-Maxtor_86480D6_L60E4C8A -> ./../hdb lrwxrwxrwx 1 root root 10 2007-03-14 15:15 ata-Maxtor_86480D6_L60E4C8A-part1 -> ./../hdb1 lrwxrwxrwx 1 root root 9 2007-03-14 15:15 ata-SAMSUNG_SP1654N_S0GEJ1JLA03149 -> ../../hda lrwxrwxrwx 1 root root 10 2007-03-14 15:15 ata-SAMSUNG_SP1654N_S0GEJ1JLA03149-part1 -> ../../hda1 lrwxrwxrwx 1 root root 10 2007-03-14 15:15 ata-SAMSUNG_SP1654N_S0GEJ1JLA03149-part2 -> ../../hda2 lrwxrwxrwx 1 root root 10 2007-03-14 15:15 ata-SAMSUNG_SP1654N_S0GEJ1JLA03149-part3 -> ../../hda3 lrwxrwxrwx 1 root root 10 2007-03-14 15:15 ata-SAMSUNG_SP1654N_S0GEJ1JLA03149-part4 -> ../../hda4 lrwxrwxrwx 1 root root 9 2007-03-19 12:08 usb-Digital_MP3_Music_Player_0002F685AE33470F -> ../../sda lrwxrwxrwx 1 root root 10 2007-03-19 12:08 usb-Digital_MP3_Music_Player_0002F685AE33470F-part1 -> ../../sdb1 mfabian@magellan:~$ I.e. usb-Digital_MP3_Music_Player_0002F685AE33470F-part1 links to sdb1 and usb-Digital_MP3_Music_Player_0002F685AE33470F surprisingly links to sda (instead of sdb) and there are no links to sdb and sda1 at all. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=255757 mhorvath@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |kasievers@novell.com |screening@forge.provo.novell| |.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=255757 kasievers@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX ------- Comment #3 from kasievers@novell.com 2007-03-19 10:00 MST ------- The device implements multiple "volumes", which all have the same identifiers. Udev therefore correctly creates the same links for both devices, which get overwritten. It's a bug in the usb descriptor of the device itself. Unfortunately, we have currently no idea, how to distinguish the both from each other for the by-id/ links of usb devices. The default udev persistent rules don't work for some "broken" devices, and you need to write your own device-specific rules, to create persistent links. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=255757 ------- Comment #4 from mfabian@novell.com 2007-03-20 08:19 MST ------- OK, I see. To be able to mount the device nevertheless using persistent links I used mounting by-label now: mfabian@magellan:~$ cat .mtoolsrc drive e: file="/dev/sda1" drive f: file="/dev/sdb1" mfabian@magellan:~$ sudo mlabel e:TEVIONMP3-1 mfabian@magellan:~$ sudo mlabel f:TEVIONMP3-2 mfabian@magellan:~$ ls -l /dev/disk/by-label/ 合計 0 lrwxrwxrwx 1 root root 10 2007-03-20 15:17 TEVIONMP3-1 -> ../../sda1 lrwxrwxrwx 1 root root 10 2007-03-20 15:17 TEVIONMP3-2 -> ../../sdb1 mfabian@magellan:~$ grep TEVION /etc/fstab /dev/disk/by-label/TEVIONMP3-1 /media/tevionmp3-1 vfat rw,noauto,user,exec,utf8=true,codepage=932 0 0 /dev/disk/by-label/TEVIONMP3-2 /media/tevionmp3-2 vfat rw,noauto,user,exec,utf8=true,codepage=932 0 0 mfabian@magellan:~$ Thank you very much for looking into the problem. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=255757 kasievers@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hare@novell.com Status|RESOLVED |REOPENED Resolution|WONTFIX | ------- Comment #5 from kasievers@novell.com 2007-03-20 10:31 MST ------- Yes, metadata-links, like by-{label,uuid} should work. Maybe we can append the scsi-lun of the storage device to the usb by-id/ links. That may solve the problem. Let's reopen it, until we make a final decision. Hannes, what do you think? It would look like this: usb-Digital_MP3_Music_Player_0002F685AE33470F-0:0 -> ../../sda usb-Digital_MP3_Music_Player_0002F685AE33470F-0:0-part1 -> ../../sd1 usb-Digital_MP3_Music_Player_0002F685AE33470F-0:1 -> ./../sdb usb-Digital_MP3_Music_Player_0002F685AE33470F-0:1-part1 -> ./../sdb1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=255757 kasievers@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED ------- Comment #6 from kasievers@novell.com 2007-03-22 07:55 MST ------- New udev submitted. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com