LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   permanantly mounting windows drive (https://www.linuxquestions.org/questions/linux-newbie-8/permanantly-mounting-windows-drive-58911/)

arrobeusa 05-09-2003 10:49 AM

permanantly mounting windows drive
 
I know how to mount the windows drive, but when I restart
it is no longer mounted. How do I make this permanent.

chhiperic 05-09-2003 10:58 AM

You need to edit your fstab.

arrobeusa 05-09-2003 11:03 AM

Forgive me, I've been using linux for 1day now.

Do I just write the command I used to mount it in fstab, or is there some other info I use?

fancypiper 05-09-2003 11:27 AM

I don't know your distro, so I don't know what command line text editors you may have. You will either have to post your distribution or discover what editor you have.

The file you need to edit is the file /etc/fstab and you must be root to edit it.

The entry you need to add to the file will look similar to mine:
Code:

/dev/hda1      /mnt/winc              vfat    defaults        0 0
You will have to create the mount point before the drive can be mounted

mkdir /mnt/winc

When you boot again, it will be mounted.

lokee 05-09-2003 11:56 AM

If you're with Win98 or less, it's preferable that you use
/dev/hda1 /mnt/winc vfat noauto 0 0

But if you're with WinXP, you have to use:
/dev/hda1 /mnt/winc ntfs ro,noauto,umask=0222 0 0

If none of this works, try:
/dev/hda1 /mnt/winc auto noauto 0 0

-noauto will make operations faster
-ro makes disk real-only
-umask=022 makes disks read-only(just to make sure!)

Most distros don't have ntfs support so:
http://linux-ntfs.sourceforge.net/

michaelk 05-09-2003 12:39 PM

FYI:
noauto will not make operations faster. Its purpose is to not mount the device on boot.

see man pages for mount and fstab for details for other options.

I use
/dev/hda1 /mnt/win_c vfat user,umask=000 0 0

lokee 05-09-2003 04:26 PM

OOOOOOOOOOOOPS!
I meant to write 'noatime"(don't update time stanps)!

My bad... sorry

arrobeusa 05-09-2003 05:36 PM

a

roy_tan711 05-12-2003 03:50 AM

try this ;)

/dev/hda1 /mnt/myDrive vfat auto,noexec,nosuid,nouser,rw 0 0


All times are GMT -5. The time now is 09:30 PM.