Hello, On Thu, 21 Apr 2011, Wolfgang Mueller wrote:
On 04/21/11 14:45, ??smail Dönmez wrote:
On Thursday, April 21, 2011 02:40:36 PM Wolfgang Mueller wrote:
When I use one USB port only, I mount it as /dev/sdb1. But for simultaneously using two or even three ports, which are the /dev name(s) I have to use? Instead of looking for hardcoded names, look under /dev/disk/by-id so you can see your disks by id. Or if they have labels /dev/disk/by-label etc.
I plugged in two usb sticks and invoked 'ls /dev/disk/by-id'. A list appeared referring to the first stick as
usb-Generic_USB_Flash_Disk_00000000000064-0:0 usb-Generic_USB_Flash_Disk_00000000000064-0:0-part1
and to the second stick as
usb-058f_Spaceloop_8GB_E7B24B26-0:0 usb-058f_Spaceloop_8GB_E7B24B26-0:0-part1
Use these in your /etc/fstab, then you can mount them as you would /dev/sdb1. E.g. create a directory for each stick: # mkdir /media/Spaceloop /media/Usbstick use a more meaningful name for the latter if you can think of one. Then, use the following in your /etc/fstab ( \ at the end of line means the following stuff should be on the same line): /dev/disk/by-id/usb-Generic_USB_Flash_Disk_00000000000064-0:0-part1 \ /media/Usbstick auto defaults,user,users,noauto 0 0 /dev/disk/by-id/usb-058f_Spaceloop_8GB_E7B24B26-0:0-part1 \ /media/Spaceloop auto defaults,user,users,noauto 0 0 With that, you can use 'mount /media/Spaceloop' and 'eject /media/Spaceloop' for save sync, unmount and "eject" and 'mount /media/Usbstick' (similiarly) no matter what port you plug your sticks. With KDE and Gnome, you can AFAIK have mount/eject done via an Icon. I know no details there though. HTH, -dnh -- +-------------------------------------------------------------------+ |-- SELF-ASSEMBLY MOEBIUS-STRIP - SEE OTHER SIDE FOR INSTRUCTIONS --| +-------------------------------------------------------------------+ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org