LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Mounting a Hard Drive (https://www.linuxquestions.org/questions/linux-software-2/mounting-a-hard-drive-253837/)

Garoth 11-11-2004 07:39 PM

Mounting a Hard Drive
 
I wish to mount my Windows hard drive. I am using FC2.

Now, I have a folder created, I have fstab recognizing that there is a vfat windows drive as hda1, but I need to be root to actually mount it. Unfortunatly, I cannot figure out how to mount it. Is there a way to sign in as root, so I dont have to deal with permissions?

The location is: /mnt/hda1
The drive is:... hda1

Please, someone tell me how to mount my hard drive.

Samsara 11-11-2004 07:43 PM

To sign in as root, type

su

it will ask for your password. su stands for "substitute user".

HTH,

Samsara

Garoth 11-11-2004 07:45 PM

All right, but how do I actually mound my drive?

Grim Reaper 11-11-2004 07:58 PM

do you want read-write access to this partition? If you only want Read-Only then put this into fstab for the partition you're after:
Code:

/dev/hda1        /mnt/hdd1        vfat        ro,user,noauto,umask=002      1  0
To get Read-Write, you'll need to change the umask value from 002 to 000 and the ro to rw like so:

Code:

/dev/hda1        /mnt/hdd1        vfat        rw,user,noauto,umask=000 1  0
I think that should work....

Edit: do this all as root too, then simply type mount and it should mount all filesystems that it reads from the fstab file...

perfect_circle 11-11-2004 08:09 PM

if fstab is OK
then
mount /mnt/hda1
or
mount /dev/hda1
.
Both do the same.

Also if you erase the noauto option of the device in fstab, then the drive will be mounted automatic at startup

Garoth 11-11-2004 08:11 PM

Great! Thats a leap forward. I think I had the wrong thing in mf fstab.... but now a new problem arizes:

Error!

"mount: wrong fs type, bad option, bad superblock on /dev/hda1, or too many mounted file systems."

Any... ideas as what to do?

mAineAc 11-11-2004 08:21 PM

are you sure it is fat32? If you are working with XP it could be NTFS

Brian1 11-11-2004 08:22 PM

What type of partition file system is it ntfs or vfat

If ntfs and using orginal fc2 kernel you need to recompile kernel to add ntfs support.

Garoth 11-11-2004 08:32 PM

it very well could be ntfs, but if I need to recompile the cernel, I have no clue what I am doing.

And. I checked, NTFS is not supported by my Kernel. Can someone tell me how to recompile my Kernel? Is it very difficult?

perfect_circle 11-11-2004 08:47 PM

DO NOT RECOMPILE THE KERNEL!!!

download the suitable rpm from:
http://linux-ntfs.sourceforge.net/rpm/fedora2.html
and follow the instructions.

It works for the precompiled version of FC2


All times are GMT -5. The time now is 10:27 AM.