Public bug reported:

Random mount locations for usb devices causes extreme frustration when
trying to set up shares / xmms playlists / whatever that rely on the
path /media/usbdisk or /media/usbdisk-1.

In my case, I have a 300gb external drive with two partitions. Every
time I plug it in, there's a 50/50 chance it will assign /dev/sdb1 to
/media/usbdisk or to /media/usbdisk-1 (and correspondingly assign the
other partition to /dev/usbdisk-1 or /media/usbdisk)

Steps to reproduce:
1) Plug in USB mass storage device with multiple partitions
2) Run xmms, import 30 000 tracks into it (takes 15 minutes on my machine)
3) Reboot system with USB device still plugged in
4) Run xmms again. Try playing a track.
5) Curse at udev/pmount/whatever when you have to re-import the whole thing

Of course I just pop up vim and edit ~/.xmms/xmms.m3u, but still
frustrating. Especially when I *also* have to edit /etc/samba/smb.conf
to keep it shared as well.

Resolution:
Make /media/usbdisk-N deterministically related to /dev/sdaN partition number.

Note that the devices don't always swap positions, just enough to be
seriously irritating.

Ideally, I'd like pmount/whatever to make alternate mount points for
each partition that are deterministically related to the drive (i.e.
some hash of usb info / partition) that is short but likely unique. This
way any user could chose the persistent path when they need to rely on
*this specific* usb device. i.e. for my device, maybe something like
/media/segate0xAFB1-0 and /media/seagate0xAFB1-1.

Platform: Ubuntu Edgy 6.10 stock; just reformatted and installed two
days ago.

** Affects: uim (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

** Description changed:

  Random mount locations for usb devices causes extreme frustration when
  trying to set up shares / xmms playlists / whatever that rely on the
  path /media/usbdisk or /media/usbdisk-1.
  
  In my case, I have a 300gb external drive with two partitions. Every
  time I plug it in, there's a 50/50 chance it will assign /dev/sdb1 to
  /media/usbdisk or to /media/usbdisk-1 (and correspondingly assign the
  other partition to /dev/usbdisk-1 or /media/usbdisk)
  
  Steps to reproduce:
  1) Plug in USB mass storage device with multiple partitions
  2) Run xmms, import 30 000 tracks into it (takes 15 minutes on my machine)
  3) Reboot system with USB device still plugged in
  4) Run xmms again. Try playing a track.
  5) Curse at udev/pmount/whatever when you have to re-import the whole thing
  
  Of course I just pop up vim and edit ~/.xmms/xmms.m3u, but still
  frustrating. Especially when I *also* have to edit /etc/samba/smb.conf
  to keep it shared as well.
  
  Resolution:
  Make /media/usbdisk-N deterministically related to /dev/sdaN partition number.
  
  Note that the devices don't always swap positions, just enough to be
  seriously irritating.
  
  Ideally, I'd like pmount/whatever to make alternate mount points for
  each partition that are deterministically related to the drive (i.e.
  some hash of usb info / partition) that is short but likely unique. This
  way any user could chose the persistent path when they need to rely on
  *this specific* usb device. i.e. for my device, maybe something like
  /media/segate0xAFB1-0 and /media/seagate0xAFB1-1.
+ 
+ Platform: Ubuntu Edgy 6.10 stock; just reformatted and installed two
+ days ago.

-- 
Different mount points for usb devices at each boot
https://launchpad.net/bugs/70486

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to