Recognizing my NTFS partition in Redhat 9
#1
Posted 23 July 2003 - 10:30 AM
I want to be able to access my NTFS (WIN XP) partition via redhat in the /mnt/ directory. In other words I guess I need to mount it.,
So I have learned that fstab is the file I need to edit.
however I'm not sure what the line of code I need is.
Would it be something like mount /dev/hda1 /mnt/windows ?
Anybody know what the exact line I need to put is?
Thanks in advance.
#2
Posted 23 July 2003 - 11:15 AM
http://linux-ntfs.sourceforge.net/info/redhat.html
As for the line in fstab, it should look something like this:
/dev/hda1 /mnt/windows ntfs noauto,ro,users,umask=0222 0 0
#3
Posted 23 July 2003 - 07:02 PM
Anyways, I installlation went fine, but I get an error while botting up, hence my partition isn't mounted
Mounting Other Files systems:
mount: wrong fs type, bad option, bad superblock on /dev/hda1,
or too many mounted file systems
(could this be the IDE device where you in fact use
ide-scsi so that sr0 or sda or so is needed?)
I get the same error when I try to do it through terminal.
Any suggestions?
Thanks
#4
Posted 24 July 2003 - 01:36 AM
#5
Posted 24 July 2003 - 05:27 AM
The version I got matches the kernel, aswell as my CPU (athlon).
#6
Posted 24 July 2003 - 06:03 AM
modprobe ntfs
That will cause the module to be autoloaded at boot but probably not soon enough to allow your NTFS partition to me mounted at boot so add the noauto paramater to it's line in fstab like in my example above and then, if you still want it to want it to be mounted at boot, add mount /mnt/windows to rc.local.
#7
Posted 25 July 2003 - 02:09 AM
modprobe ntfs noauto
mount /mnt/windows
However, I still have no luck. I get the same error::
Mounting Other Files systems:
mount: wrong fs type, bad option, bad superblock on /dev/hda1,
or too many mounted file systems
(could this be the IDE device where you in fact use
ide-scsi so that sr0 or sda or so is needed?)
Anything else I could try?
Thnx
#8
Posted 25 July 2003 - 06:07 AM
/dev/hda1 /mnt/windows ntfs noauto,ro,users,umask=0222 0 0
Unless you have a line like that (I'm not sure if that's entirely correct as I don't have access to my Linux box) in your fstab, mount /mnt/windows won't work, you have to mount it the long way:
mount -t ntfs -r -o umask=0222 /dev/hda1 /mnt/windows
#9
Posted 25 July 2003 - 09:53 PM
I get the same error.
It actually told me I had a bad line when I put it in the longer way.
I guess that way is dropped? because all of the other entries are in the /dev/###/ /mnt/### format.
#10
Posted 27 July 2003 - 09:24 AM
/dev/hde1 /mnt/windows ntfs noauto,ro,users,umask=0222 0 0
I'm mounting /dev/hde1 because my HDD is connected to an off board ATA133 controller but otherwise the line you need will be identical. The big difference between your setup and mine though is you're loading NTFS as a module whereas I have it compiled into my kernel proper. That shouldn't be a problem as long as you remember to load the ntfs module. To check if the module is indeed loaded, type this:
cat /proc/filesystems | grep ntfs
If you see the word ntfs appear, it's loaded. Otherwise, type modprobe ntfs and try again. If it still doesn't work you're more than likely using the wrong module for your kernel.
#11
Posted 27 July 2003 - 06:40 PM
cat /proc//filesystems | grep ntfs
Which means that the module is loaded.
However, I have no success. I don't even get errors or anything anymore, it's as if the whole editted part is by passed.
Also while I boot (close ot the end) I get three lines something like this:
UPDATING FSTAB {OK}
FLUSHING ALL USER EDITTED bla bla bla {OK}
REBUILDING bal bal bla [OK]
is there an option perhaps that I have to enable it to use a custom fstab? kind of like a safety feature?
#12
Posted 27 July 2003 - 07:34 PM
It turns out that my NTFS partition is hdC1 not hdA1
Werid, as they normally are hdA1.
Thank you a million !!!
#13
Posted 27 July 2003 - 07:48 PM
mount -t ntfs -r -o umask=0222 /dev/hda1 /mnt/windows
into fstab where in actual fact they have to be entered at the command line (as root). Lines in the format:
/dev/hde1 /mnt/windows ntfs noauto,ro,users,umask=0222 0 0
are fstab entries and when working right, can be mounted simply by using the destination directory:
mount /mnt/windows
Once again, this is my fault for not being clear enough and for that I apologise.
Now, if you can mount it from the command line then that means everything is set up and working right so we can move on to figuring out just why it won't work when put into fstab.
#14
Posted 27 July 2003 - 07:59 PM
The "Can't read super block errors" got me thinking thati t was more of a partition problem and then it hit me that perhaps i'm using the wrong name for the patition.
So now the partition auto loads on start up and everything. It's working perfect, except for one minor thing. I need the drive to be both read AND write. I thought it might be just the permissions however, when I try and change the permissions (as root) it says can not enable write to read only device.
So I'm thinking that it has something to so with the line in fstab? As in, I need to mount it as read/write correct?
Sorry if I'm being a real pain, I've only been using linux for a limited ammount of time, but I'm trying to learn! =)
#15
Posted 27 July 2003 - 08:28 PM
If you really need write access, the best you can do is set up a FAT partition which Linux fully supports and move your files there so you can access them in Linux. Another option is to use a program like Partition Magic to convert your NTFS partition to FAT but I wouldn't really recommend that (what you gain in Linux support you'll lose in the overall unreliability of FAT as a file system).

Help










