setting the mount option for USB flash
In SuSE, it seems like fstab is not synchronized with the newly plugged-in storage devices. I've noticed that there was no entry for my USB flash when I plugged it into my system. I want to set the uid and umask in the mount options for my flash so that nobody can access the mount point except me. In FC4, I can control the mount options by modifying fstab, but if I add a new entry into fstab in SuSE and double click the device icon in the "File Browser", I just got a error message dialog as follow : Mount Error Operation failed /dev/sda1 found in /etc/fstab I wonder how SuSE choose the mount options when it auto-mounts USB storage, and when I double click the device icon in the "File Browser". I've added new fdi file to set the policy for the mount options, and I've confirmed the values in the "lshal", but it didn't work. /proc/mounts had no mount options I set in fdi file. Could someone give me a hint? Jason -- *********************************** Jason Kim, Software Developer http://userful.com 2nd Floor, 928-6th Ave SW Calgary, AB T2P 0V5 Tel: 403-289-2177 EXT: 210 866-USERFUL (873-7385) Fax: 403-206-7010
Jason Kim wrote:
In SuSE, it seems like fstab is not synchronized with the newly plugged-in storage devices. I've noticed that there was no entry for my USB flash when I plugged it into my system.
I want to set the uid and umask in the mount options for my flash so that nobody can access the mount point except me.
In FC4, I can control the mount options by modifying fstab, but if I add a new entry into fstab in SuSE and double click the device icon in the "File Browser", I just got a error message dialog as follow :
Mount Error Operation failed /dev/sda1 found in /etc/fstab
I wonder how SuSE choose the mount options when it auto-mounts USB storage, and when I double click the device icon in the "File Browser".
I've added new fdi file to set the policy for the mount options, and I've confirmed the values in the "lshal", but it didn't work. /proc/mounts had no mount options I set in fdi file.
Could someone give me a hint?
Jason
You don't say which version of SuSE you are using but here is the entry in my fstab which SUSE 10.1 created: usbfs /proc/bus/usb usbfs auto 0 0 When the USB flash is plugged in it appears in /media and the entry in mtab is: /dev/sda1 /media/CORSAIR vfat rw,nosuid,nodev,noatime,flush,uid=1000,utf8,shortname=lower 0 0 Cheers. -- This computer is environment-friendly and is running on OpenSuSE 10.1
Basil Chupin wrote:
Jason Kim wrote:
In SuSE, it seems like fstab is not synchronized with the newly plugged-in storage devices. I've noticed that there was no entry for my USB flash when I plugged it into my system.
I want to set the uid and umask in the mount options for my flash so that nobody can access the mount point except me.
In FC4, I can control the mount options by modifying fstab, but if I add a new entry into fstab in SuSE and double click the device icon in the "File Browser", I just got a error message dialog as follow :
Mount Error Operation failed /dev/sda1 found in /etc/fstab
I wonder how SuSE choose the mount options when it auto-mounts USB storage, and when I double click the device icon in the "File Browser". I've added new fdi file to set the policy for the mount options, and I've confirmed the values in the "lshal", but it didn't work. /proc/mounts had no mount options I set in fdi file.
Could someone give me a hint?
Jason
You don't say which version of SuSE you are using but here is the entry in my fstab which SUSE 10.1 created:
usbfs /proc/bus/usb usbfs auto 0 0
SORRY, this is not the default entry which SUSE created. The original read "noauto" and I altered it to "auto". Apologies. [pruned] Cheers. -- This computer is environment-friendly and is running on OpenSuSE 10.1
On Monday 28 August 2006 12:06, Basil Chupin wrote:
You don't say which version of SuSE you are using but here is the entry in my fstab which SUSE 10.1 created:
usbfs /proc/bus/usb usbfs auto 0 0
When the USB flash is plugged in it appears in /media and the entry in mtab is:
/dev/sda1 /media/CORSAIR vfat rw,nosuid,nodev,noatime,flush,uid=1000,utf8,shortname=lower 0 0
Did you do anything other than the fstab entry? I'm running 10.1 with the "we don't think people should have automount" update and I also have the above entry in my fstab. However nothing gets mounted... the CF card is seen and I can manually mount it, but it is not automounted.
Bruce Marshall wrote:
On Monday 28 August 2006 12:06, Basil Chupin wrote:
You don't say which version of SuSE you are using but here is the entry in my fstab which SUSE 10.1 created:
usbfs /proc/bus/usb usbfs auto 0 0
When the USB flash is plugged in it appears in /media and the entry in mtab is:
/dev/sda1 /media/CORSAIR vfat rw,nosuid,nodev,noatime,flush,uid=1000,utf8,shortname=lower 0 0
Did you do anything other than the fstab entry?
I'm running 10.1 with the "we don't think people should have automount" update and I also have the above entry in my fstab. However nothing gets mounted... the CF card is seen and I can manually mount it, but it is not automounted.
Changing the 'noauto' to 'auto' fixed my problem with VMware where the flash disk was not being recognised when I plugged it in (I need it so that I can install s'ware in VMware). However, in 10.1 itself no USB is automounted - one needs to 'open' it from the menu which come when up yo plug in a USB device (or use My Computer or to access it and this will mount the device). I tried to configure the 'automount' menu so that a default action occurs when a device is plugged in but there is no option to simply mount the device - only to open it with <some-application> which really is a pain. However, someone (?Andreas) mentioned that one could always use autofs. I just went looking at this in Control Centre and this is not activated in the runlevel editor but when I went to do so I got the error message that autofs is not configured. I am now at the stage of having to figure out how to configure autofs (it seems that the config file is empty). Cheers. -- This computer is environment-friendly and is running on OpenSuSE 10.1
On Tue, 2006-08-29 at 02:06 +1000, Basil Chupin wrote:
Jason Kim wrote:
In SuSE, it seems like fstab is not synchronized with the newly plugged-in storage devices. I've noticed that there was no entry for my USB flash when I plugged it into my system.
I want to set the uid and umask in the mount options for my flash so that nobody can access the mount point except me.
In FC4, I can control the mount options by modifying fstab, but if I add a new entry into fstab in SuSE and double click the device icon in the "File Browser", I just got a error message dialog as follow :
Mount Error Operation failed /dev/sda1 found in /etc/fstab
I wonder how SuSE choose the mount options when it auto-mounts USB storage, and when I double click the device icon in the "File Browser".
I've added new fdi file to set the policy for the mount options, and I've confirmed the values in the "lshal", but it didn't work. /proc/mounts had no mount options I set in fdi file.
Could someone give me a hint?
Jason
You don't say which version of SuSE you are using but here is the entry in my fstab which SUSE 10.1 created:
usbfs /proc/bus/usb usbfs auto 0 0
When the USB flash is plugged in it appears in /media and the entry in mtab is:
/dev/sda1 /media/CORSAIR vfat rw,nosuid,nodev,noatime,flush,uid=1000,utf8,shortname=lower 0 0
Cheers.
I'm using SuSE 10.1. I didn't expect the line started with "usbfs" was for my flash. Is the usbfs for all USB storage devices?
-- This computer is environment-friendly and is running on OpenSuSE 10.1
-- *********************************** Jason Kim, Software Developer http://userful.com 2nd Floor, 928-6th Ave SW Calgary, AB T2P 0V5 Tel: 403-289-2177 EXT: 210 866-USERFUL (873-7385) Fax: 403-206-7010
Jason Kim wrote:
On Tue, 2006-08-29 at 02:06 +1000, Basil Chupin wrote:
Jason Kim wrote:
In SuSE, it seems like fstab is not synchronized with the newly plugged-in storage devices. I've noticed that there was no entry for my USB flash when I plugged it into my system.
I want to set the uid and umask in the mount options for my flash so that nobody can access the mount point except me.
In FC4, I can control the mount options by modifying fstab, but if I add a new entry into fstab in SuSE and double click the device icon in the "File Browser", I just got a error message dialog as follow :
Mount Error Operation failed /dev/sda1 found in /etc/fstab
I wonder how SuSE choose the mount options when it auto-mounts USB storage, and when I double click the device icon in the "File Browser".
I've added new fdi file to set the policy for the mount options, and I've confirmed the values in the "lshal", but it didn't work. /proc/mounts had no mount options I set in fdi file.
Could someone give me a hint?
Jason You don't say which version of SuSE you are using but here is the entry in my fstab which SUSE 10.1 created:
usbfs /proc/bus/usb usbfs auto 0 0
When the USB flash is plugged in it appears in /media and the entry in mtab is:
/dev/sda1 /media/CORSAIR vfat rw,nosuid,nodev,noatime,flush,uid=1000,utf8,shortname=lower 0 0
Cheers.
I'm using SuSE 10.1. I didn't expect the line started with "usbfs" was for my flash. Is the usbfs for all USB storage devices?
As far as I know, yes, it is for all USB devices. When I power-up my external USB HD it shows up as 2 devices (when mounted) because the HD has 2 partitions, one formatted in FAT32 and the other in reiserfs. At the same time if I plug in my flash disk it also shows up (as sda1). See also my reply to Bruce. Cheers. -- This computer is environment-friendly and is running on OpenSuSE 10.1
participants (3)
-
Basil Chupin
-
Bruce Marshall
-
Jason Kim