LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-09-2003, 10:49 AM   #1
arrobeusa
LQ Newbie
 
Registered: May 2003
Posts: 5

Rep: Reputation: 0
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.
 
Old 05-09-2003, 10:58 AM   #2
chhiperic
LQ Newbie
 
Registered: May 2003
Posts: 4

Rep: Reputation: 0
You need to edit your fstab.
 
Old 05-09-2003, 11:03 AM   #3
arrobeusa
LQ Newbie
 
Registered: May 2003
Posts: 5

Original Poster
Rep: Reputation: 0
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?
 
Old 05-09-2003, 11:27 AM   #4
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
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.
 
Old 05-09-2003, 11:56 AM   #5
lokee
Member
 
Registered: Feb 2003
Distribution: Gentoo
Posts: 381

Rep: Reputation: 30
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/
 
Old 05-09-2003, 12:39 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,816

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
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
 
Old 05-09-2003, 04:26 PM   #7
lokee
Member
 
Registered: Feb 2003
Distribution: Gentoo
Posts: 381

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

My bad... sorry
 
Old 05-09-2003, 05:36 PM   #8
arrobeusa
LQ Newbie
 
Registered: May 2003
Posts: 5

Original Poster
Rep: Reputation: 0
a

Last edited by arrobeusa; 05-09-2003 at 06:24 PM.
 
Old 05-12-2003, 03:50 AM   #9
roy_tan711
Member
 
Registered: May 2003
Location: Cyberjaya
Distribution: Slackware9.1 RH9.0 freeBSD4.7 HP-UX
Posts: 43

Rep: Reputation: 15
try this

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting a windows drive BuzzStPoint Linux - Hardware 5 12-31-2003 11:53 AM
mounting drive with windows fuelinux Linux - Newbie 8 10-29-2003 05:19 PM
mounting windows drive chrismiceli Linux - Networking 2 06-28-2003 01:11 AM
mounting windows drive ditto Linux - Newbie 2 05-24-2003 09:10 AM
Mounting a Windows Drive digsby0007 Linux - Software 4 05-09-2003 04:18 PM


All times are GMT -5. The time now is 03:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration