Automount Drive at Startup - How?
My PC boots Windows 2000 and SuSE Linux 8.0. To share data files between the two operating systems, I use a separate FAT32 partition (/dev/hdf6). When I boot Linux, I'd like this partition to be mounted automagically, so that all users on my home network (all of two machines) can access files on this partition. I tried changing the parms in fstab to "auto, user" and "auto, users", and while this mounted the drive on boot, it made all the files read-only. Any ideas on how I can do this? Here's fstab, if it helps: /dev/hde3 / reiserfs defaults 1 2 /dev/hde1 /boot ext2 defaults 1 2 devpts /dev/pts devpts defaults 0 0 /dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0 /dev/dvd /media/dvd auto ro,noauto,user,exec 0 0 /dev/fd0 /media/floppy auto noauto,user,sync 0 0 usbdevfs /proc/bus/usb usbdevfs noauto 0 0 proc /proc proc defaults 0 0 /dev/sda1 /windows/C ntfs ro,noauto,user,umask=022 0 0 /dev/sda5 /windows/D ntfs ro,noauto,user,umask=022 0 0 /dev/hdf6 /windows/E vfat noauto,user 0 0 /dev/hde2 swap swap pri=42 0 0 /dev/hdf5 swap swap pri=42 0 0 Thanks! -- _________________________________________________________ Another Message From... L. Mark Stone Email: LMStone@LMStone.com Web: http://www.lmstone.com
"L. Mark Stone" wrote:
My PC boots Windows 2000 and SuSE Linux 8.0. To share data files between the two operating systems, I use a separate FAT32 partition (/dev/hdf6).
When I boot Linux, I'd like this partition to be mounted automagically, so that all users on my home network (all of two machines) can access files on this partition.
I tried changing the parms in fstab to "auto, user" and "auto, users", and while this mounted the drive on boot, it made all the files read-only.
Any ideas on how I can do this?
Here's fstab, if it helps:
/dev/hde3 / reiserfs defaults 1 2 /dev/hde1 /boot ext2 defaults 1 2 devpts /dev/pts devpts defaults 0 0 /dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0 /dev/dvd /media/dvd auto ro,noauto,user,exec 0 0 /dev/fd0 /media/floppy auto noauto,user,sync 0 0 usbdevfs /proc/bus/usb usbdevfs noauto 0 0 proc /proc proc defaults 0 0 /dev/sda1 /windows/C ntfs ro,noauto,user,umask=022 0 0 /dev/sda5 /windows/D ntfs ro,noauto,user,umask=022 0 0 /dev/hdf6 /windows/E vfat noauto,user 0 0 /dev/hde2 swap swap pri=42 0 0 /dev/hdf5 swap swap pri=42 0 0
Thanks!
-- _________________________________________________________ Another Message From... L. Mark Stone
Email: LMStone@LMStone.com Web: http://www.lmstone.com
You could try adding "rw" (without ") before auto. I am using 7.3 and I know that on bootup my vfat windows drives are read only. I don't know why it does this. If I unmount and then mount again as user, then I have rw on those drives. Good luck Paul T. -- Linux the OS of now and the future. Using SuSE Linux.
On Sat, 28 Sep 2002 09:16:57 -0700 "P.T. (nevada)" <nevada@wizard.com> wrote:
When I boot Linux, I'd like this partition to be mounted automagically, so that all users on my home network (all of two machines) can access files on this partition.
I tried changing the parms in fstab to "auto, user" and "auto, users", and while this mounted the drive on boot, it made all the files read-only.
Any ideas on how I can do this?
Here's fstab, if it helps:
/dev/sda1 /windows/C ntfs ro,noauto,user,umask=022 0 0 /dev/sda5 /windows/D ntfs ro,noauto,user,umask=022 0 0 /dev/hdf6 /windows/E vfat noauto,user 0 0
Try: /dev/hdf6 /windows/E vfat rw,user,umask=000 -- use Perl; #powerful programmable prestidigitation
On Saturday, September 28, 2002 02:14 pm, zentara wrote:
Try:
/dev/hdf6 /windows/E vfat rw,user,umask=000
Works! Great! Thanks! -- _________________________________________________________ Another Message From... L. Mark Stone Email: LMStone@LMStone.com Web: http://www.lmstone.com
/dev/sda1 /windows/C ntfs ro,noauto,user,umask=022 0 0 /dev/sda5 /windows/D ntfs ro,noauto,user,umask=022 0 0 /dev/hdf6 /windows/E vfat noauto,user 0 0
Try:
/dev/hdf6 /windows/E vfat rw,user,umask=000
I'm curious, what do the umask=000 / 022 parts do? I don't have these in any of my lines in fstab. (For the Windoze partition, I set it up to be readable by all, but writeable only by root. Don't normally need to write to it because it's so small these days. ;-) Joe -- "I pledge allegiance to the Flag of the United States of America, and to the Republic, for which it stands; one nation, UNDER GODDESS, indivisible, with liberty and justice for all. "
Hi "man umask" gives You total explanation.
I'm curious, what do the umask=000 / 022 parts do? I don't have these in any of my lines in fstab. (For the Windoze partition, I set it up to be readable by all, but writeable only by root. Don't normally need to write to it because it's so small these days. ;-)
Joe
On Sat, 28 Sep 2002 22:29:00 +0200 Joe <firechild@telia.com> wrote:
/dev/hdf6 /windows/E vfat rw,user,umask=000
I'm curious, what do the umask=000 / 022 parts do? I don't have these in any
Well it's one of those obtuse "inverted" concepts. The umask tells UNIX which permission bits to disallow, umask works in conjunction with mask. umask is subtracted from mask. Did you ever notice the line in your .bashrc umask=022? That tells the system that the default permissions for any new file is the default mask (666) minus the umask(022). So any new file gets 644 permissions unless otherwise defined. The umask value has a slightly different effect on directories. The default directory mask is 777, so applying the umask, gives a default directory perm of 755. Now since root is mounting the vfat partition, it will default to 755, which is not writable by users. So changing the umask to 000 in the fstab line, causes the vfat partition to be mounted 777, which is rw by users. -- use Perl; #powerful programmable prestidigitation
* P.T. (nevada) <nevada@wizard.com> [09-28-02 11:17]:
"L. Mark Stone" wrote:
My PC boots Windows 2000 and SuSE Linux 8.0. To share data files between the two operating systems, I use a separate FAT32 partition (/dev/hdf6).
When I boot Linux, I'd like this partition to be mounted automagically, so that all users on my home network (all of two machines) can access files on this partition.
I tried changing the parms in fstab to "auto, user" and "auto, users", and while this mounted the drive on boot, it made all the files read-only.
Any ideas on how I can do this? Here's fstab, if it helps:
/dev/hde3 / reiserfs defaults 1 2 /dev/hde1 /boot ext2 defaults 1 2 devpts /dev/pts devpts defaults 0 0 /dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0 /dev/dvd /media/dvd auto ro,noauto,user,exec 0 0 /dev/fd0 /media/floppy auto noauto,user,sync 0 0 usbdevfs /proc/bus/usb usbdevfs noauto 0 0 proc /proc proc defaults 0 0 /dev/sda1 /windows/C ntfs ro,noauto,user,umask=022 0 0 /dev/sda5 /windows/D ntfs ro,noauto,user,umask=022 0 0 /dev/hdf6 /windows/E vfat noauto,user 0 0 /dev/hde2 swap swap pri=42 0 0 /dev/hdf5 swap swap pri=42 0 0
You could try adding "rw" (without ") before auto. I am using 7.3 and I know that on bootup my vfat windows drives are read only. I don't know why it does this. If I unmount and then mount again as user, then I have rw on those drives.
Mine are as follows and I can r/w w/o a problem (SuSE 7.3): /dev/hda1 /mnt/windows/C vfat auto,user,uid=501 0 2 /dev/hda5 /mnt/windows/D vfat auto,user,uid=501 0 2 Also, please reformat & trim unnecessary materal from your posts. -- Patrick Shanahan Registered Linux User #207535 @ http://counter.li.org
participants (6)
-
jaakko tamminen
-
Joe
-
L. Mark Stone
-
P.T. (nevada)
-
SuSEnixER
-
zentara