Mailinglist Archive: opensuse (6210 mails)
|< Previous||Next >|
FW: Re: [opensuse] Setting mount options for hotpluggable devices
- From: AloisLevermann@xxxxxx
- Date: Fri, 21 Oct 2005 19:02:04 +0200
- Message-id: <237270872@xxxxxx>
to get the same mount point, independent of the physical /dev/sdx device adress, you have to lable the stick with an unique name. For FAT32 partitions you can use the mlable command of the mtools (should be installed by standard installation) and for EXT2 or EX3 partitions there is the e2label command. Both have man pages.
Hotplug will use this name later on to mount the stick or disk-partition as /media/MYDISK or whatever name you gave him. I'm using a USB-Disk with 4 partitions ext2 ant fat32, each of them has a defined mount point now. Same is for my CF-Card in the card reader.
opensuse@xxxxxxxxxxxx schrieb am 21.10.05 15:10:45:
> On Friday 21 October 2005 13:19, Chema Ollés wrote:
> > Guenter Lichtenberg escribió:
> > > My question is: How can I set the mount options for the disk (can also be
> > > set for all USB storages, since they normally come as FAT32) within the
> > > hal/udev system? Any pointers?
> > I have only this line on my /etc/fstab ->
> > /dev/sda1 /usb1 auto noauto,user 0 0
> > I can mount by hand on /usb1 or automount on kde-konqueror (media:/).
> > Cheers
> Hi -
> thanks for the answer, but I was looking for a way to change the mount
> options for hotpluggable device, i.e. let the device mount automatically. If
> I put them into the fstab, I would need to remember in which USB port I
> plugged the stick/disk in, AFAIK I don't get the same device assigned to the
> same USB disk/stick. If I put the stick into a USB port it gets assigned
> to /dev/sdx where x can be anything from a-z.
> Automatic mounting via hal/udev (or subfs?) takes care of that, which is why I
> would like to keep the automatic mounting.
> Günter Lichtenberg ========>mailto:lichten@xxxxxxx
> To unsubscribe, e-mail: opensuse-unsubscribe@xxxxxxxxxxxx
> For additional commands, e-mail: opensuse-help@xxxxxxxxxxxx
|< Previous||Next >|