LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   windows mnt not staying (https://www.linuxquestions.org/questions/linux-software-2/windows-mnt-not-staying-136952/)

Mad Mardigan 01-20-2004 10:55 PM

windows mnt not staying
 
http://linux-ntfs.sourceforge.net/rp...s.html#install

This is the install I used to access NTFS with Linux.

Now everytime I restart back to Linux

I get :
[root@localhost will]# ls -l /mnt/windows
total 0


So I:
[root@localhost will]# mount /dev/hda1 /mnt/windows -t ntfs -r -o umask=0222
[root@localhost will]# ls -l /mnt/windows
total 1182312
dr-xr-xr-x 1 root root 0 Nov 21 21:59 ATI
-r--r--r-- 1 root root 0 Nov 22 00:47 AUTOEXEC.BAT
dr-xr-xr-x 1 root root 0 Dec 2 23:24 BF STUFF
-r--r--r-- 1 root root 53 Nov 30 22:40 boot.inh
-r--r--r-- 1 root root 194 Nov 22 00:42 boot.ini
-r--r--r-- 1 root root 0 Nov 22 00:47 CONFIG.SYS
dr-xr-xr-x 1 root root 4096 Nov 21 21:51 Documents and Settings
dr-xr-xr-x 1 root root 4096 Jan 18 14:05 downloadprograms
dr-xr-xr-x 1 root root 0 Nov 21 22:01 DX
-r--r--r-- 1 root root 0 Nov 22 00:47 IO.SYS
dr-xr-xr-x 1 root root 0 Jan 19 22:52 Linux stuff
dr-xr-xr-x 1 root root 0 Nov 21 22:33 MM
-r--r--r-- 1 root root 0 Nov 22 00:47 MSDOS.SYS
dr-xr-xr-x 1 root root 16384 Jan 4 12:11 MUSIC!!!!!
dr-xr-xr-x 1 root root 4096 Nov 22 02:16 NOrton
-r--r--r-- 1 root root 53 Nov 30 22:40 ntdetect.col
-r--r--r-- 1 root root 45124 Aug 23 2001 NTDETECT.COM
-r--r--r-- 1 root root 53 Nov 30 22:40 ntldp
-r--r--r-- 1 root root 222368 Aug 23 2001 ntldr
-r--r--r-- 1 root root 1207959552 Jan 20 23:20 pagefile.sys
dr-xr-xr-x 1 root root 8192 Jan 18 14:06 Program Files
dr-xr-xr-x 1 root root 0 Jan 19 22:53 PW
-r--r--r-- 1 root root 264 Jan 20 19:07 RCINFO.TXT
dr-xr-xr-x 1 root root 0 Nov 21 22:12 RECYCLER
-r--r--r-- 1 root root 0 Nov 30 22:45 SFCFILES.TXT
-r--r--r-- 1 root root 158 Jan 14 22:13 systemscandata.txt
dr-xr-xr-x 1 root root 0 Nov 22 00:50 System Volume Information
dr-xr-xr-x 1 root root 45056 Jan 18 14:06 WINDOWS
dr-xr-xr-x 1 root root 0 Dec 23 18:48 WUTemp

So the thing is, how can I permently mount windows, everytime I reboot I have to redo those commands?

Onemessedupjedi 01-20-2004 11:00 PM

you need to edit your fstab in /etc/fstab
for now you can add the line:
/dev/hda1 /mnt/windows ntfs ro 0 0
There is a better line, but this works
edit: Works when you are root I should say, read the man pages on fstab and figure out the needed option to allow users to use it.

megaspaz 01-20-2004 11:29 PM

/dev/hda1 /mnt/windows ntfs auto,owner,umask=0222,ro 0 0


All times are GMT -5. The time now is 05:37 AM.