Computing.Net > Forums > Linux > Auto Mount

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Auto Mount

Reply to Message Icon

Name: Dave
Date: April 20, 2003 at 14:02:50 Pacific
OS: Red Hat 9.0
CPU/Ram: AMD 2100/512
Comment:

I was wondering if anyone knows how to auto mount a hard drive I am sharing with Windows, its FAT32. Currently I have to do the following everytime I log in.
mount -t vfat /dev/hdb5 /mnt/data
and I want it to automatically mount it on startup. Any advice would be appreciated.
Side note:
Another Winmodem Success story. I got my Intel 536ep v92 winmodem to work in Red Hat without flaw!



Sponsored Link
Ads by Google

Response Number 1
Name: egkenny
Date: April 20, 2003 at 19:50:05 Pacific
Reply:

To mount your windows partition at startup add an entry to your /etc/fstab file. Edit this with user root.

The following will give read/write access to root and read-only access to everyone else:
/dev/hdb5 /mnt/data vfat defaults 0 0

The following will give read/write access to everyone:
/dev/hdb5 /mnt/data vfat defaults,umask=0 0 0

If you ever need NTFS (read-only) support (Windows NT, 2000, or XP) then go to this site to add it:
http://linux-ntfs.sourceforge.net/info/redhat.html

Examples for Windows C drive with NTFS filesystem:

The following will give read-only access to root and no access to everyone else:
/dev/hda1 /mnt/winc ntfs defaults 0 0

The following will give read-only access to everyone:
/dev/hda1 /mnt/winc ntfs defaults,umask=222 0 0

IMPORTANT, always leave a blank line at the end of the /etc/fstab file or you will get an error message when you boot up.


0
Reply to Message Icon

Related Posts

See More


a script to check smb-sha... small linux download



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Auto Mount

auto mount USB Pendrive with REDHAT www.computing.net/answers/linux/auto-mount-usb-pendrive-with-redhat/15796.html

Auto mounting drives www.computing.net/answers/linux/auto-mounting-drives/16357.html

Anyway to prevent auto mount? www.computing.net/answers/linux/anyway-to-prevent-auto-mount/29630.html