LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Permanatly mounting a dos drive? (https://www.linuxquestions.org/questions/linux-newbie-8/permanatly-mounting-a-dos-drive-333179/)

hughgjohnson 06-13-2005 02:25 PM

Permanatly mounting a dos drive?
 
So I can mount my dos drive by typing

mkdir /mnt/dos
mount /dev/hda1 /mnt/dos

So I thought I would make a change to the fstab to mount this each time. I tried a few iterations, but this is not working.

Code:

/dev/hde2      /              reiserfs        defaults                1      1
/dev/hda1      /mnt/fat-c        vfat        auto,rw,umask=000        1      0
/dev/cdrom      /mnt/cdrom      iso9660    noauto,user              0      0
/dev/fd0        /mnt/floppy      auto        noauto,user              0      0
devpts          /dev/pts        devpts      gid=5,mode=620            0      0
proc            /proc            proc        defaults                  0      0

Thanks.

Hugh

naimslim89 06-13-2005 02:33 PM

Just a silly question, but are you mounting to the correct directory?

You said you type:

mount /dev/hda1 /mnt/dos

But in the fstab file you type:

/dev/hda1 /mnt/fat-c vfat auto,rw,umask=000 1 0

Does this directory exist?

bruno buys 06-13-2005 02:34 PM

what error does it give you? Did you try varying arguments (user, noauto...)? Does the dir /mnt/fat-c exist?

hughgjohnson 06-13-2005 03:00 PM

DOS = Fat
 
AH, OK. I get it now. No, I didn't have a directory /mnt/fat-c. ... Made the directory and now I can see the files. I was copying what someone wrote on another forum/thread and didin't realize the names/directories needed to match. Hey, this is a newbie forum, right. :)

Thanks for the brain tweak!

I can't view the files as a user, only root. How would I change this so can see these?

Thanks.

Hugh

naimslim89 06-13-2005 03:04 PM

Add gid=1000 to the list of properties in the /etc/fstab file so the line looks like this:

/dev/hda1 /mnt/fat-c vfat auto,rw,umask=000,gid=1000 1 0

[No spaces in between the comma and gid=1000]

hughgjohnson 06-13-2005 03:46 PM

Oh m' gawd! (said as much as a 13 year old can muster!)

This is perfect!

Thanks.

Hugh


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