Re: [SLE] setting the mount option for USB flash



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

--
Check the headers for your unsubscription address
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the archives at http://lists.suse.com
Please read the FAQs: suse-linux-e-faq@xxxxxxxx



Relevant Pages

  • Re: Lifetime of flash memory
    ... FILE ON USB MEMORY" have come out of this. ... and overuse may wear out your memory stick pretty quickly. ... Do _not_ use journalling filesystems on flash memory sticks.) ...
    (Linux-Kernel)
  • Re: Internal USB flash card reader problem
    ... >> happened) I lost the function of my internal USB flash 9-1 card reader. ... >> I tried another internal flash card reader and it does the same thing... ... I noticed a USB driver called USBHS DFU ...
    (microsoft.public.windowsxp.hardware)
  • Installing FreeBSD from USB flash drive - some experiments
    ... It seems like questions about installing FreeBSD from a USB drive ... With the low price of flash drives these days, ... AFAICT the release ISOs don't currently mount the media ... So how can you direct it to install from the USB media? ...
    (freebsd-stable)
  • Low umass performance with USB 2.0 ports
    ... file from/to my USB 2.0 flash that is plugged into the USB 2.0 port: ... The activity LED on the flash shows no activity. ... CPU: Intel Pentium III ... atapci1: failed: rid 0x20 is memory, ...
    (freebsd-hackers)
  • Re: (fedora) Re: running shell scripts from external USB disk
    ... I have a FC5 system with an internal disk and a external USB disk ... If I copy it to the USB ... longer able to change the mount options - what a pain! ... have a USB card reader that reads Compact Flash and Smart Media ...
    (Fedora)