Results 1 to 4 of 4
I have a USB drive that auto mounts fine within Suse 10.2, however it has no write access to it which doesn't allow mw to copy or write files to ...
- 09-05-2007 #1Just Joined!
- Join Date
- Sep 2007
- Location
- Australia
- Posts
- 2
Automatically mount a USB Drive with write permissions?
I have a USB drive that auto mounts fine within Suse 10.2, however it has no write access to it which doesn't allow mw to copy or write files to it when using Samba file sharing!
I read many blogs and threads and investigated the fstab file, and umasking seems to be the way to do it, however when trying to assign a static new mnt assignment to /dev/sde1(my usb dev as per 'df') and reboot, the USB drive then shows up as /dev/sda1...with its default non-writable permissions!
What process auto maps this? Is it the usbfs line?
How do I get fstab to assign this USB drive to have write permissions without me having to manually type
mount -t vfat /dev/sda1 /media/usb -o defaults,umask=0
Any help very much appreciated!?
- 09-05-2007 #2Linux User
- Join Date
- Jan 2007
- Location
- cleveland
- Posts
- 452
welcome to the forum
try putting a line like this in yr /etc/fstab:
dev/sda1 /usb auto rw,user,auto 0 2
it should come up mounted (on /usb) read/writethe sun is new every day (heraclitus)
- 09-05-2007 #3Just Joined!
- Join Date
- Sep 2007
- Location
- Australia
- Posts
- 2
This is what I have in my fstab now
/dev/hda6 / ext3 acl,user_xattr 1 1
/dev/hda7 /home ext3 acl,user_xattr 1 2
/dev/hda1 /windows/C ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hdb1 /windows/D ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hdb2 /windows/E ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hda5 swap swap defaults 0 0
/dev/sde1 /media/usb vfat rw,auto,umask=0,uid=1000,gid=1000 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
however if I reboot or re-insert the USb drive it gets asigned a new /dev/sd*1, Its like a moving target! Its now a /dev/sdf1, so i have to manually mount it to /media/usb...
Any ideas?
- 09-06-2007 #4
getting Autofs package may solve your problem
edit /etc/auto.master as required to get usb write acesslife is the greatest opportunity that the nature had given you


Reply With Quote