LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Wieving FAT 32 partition (https://www.linuxquestions.org/questions/red-hat-31/wieving-fat-32-partition-121547/)

thort 12-01-2003 05:03 AM

Viewing FAT 32 partition
 
Hi again !

I'm new to Linux and running Red Hat 9.

I've heard it should be possible to access and open files on FAT partitions.

As you can see I have such partitions:

http://home.swipnet.se/thor/pngs/Vie...tition - 1.png




I've been trying to find my fat partitions in the Nautilus browser whithout success. All I've found is this:

http://home.swipnet.se/thor/pngs/Vie...tition - 2.png




I'm thankful if someone could help me !

Y0jiMb0 12-01-2003 05:22 AM

Hi!
Did you mount the partitions?
try
Code:

mount /dev/hd?? /mount/point -t vfat
where "hd??" is, for instance "hda1"; and "/mount/point" is a (non-necessary, but asdvisable) empty directory where you'd like to have the contents of hd?? (usually something like "/mnt/windows", but could be whatever)
Regards

thort 12-01-2003 07:09 AM

Thank You !

http://home.swipnet.se/thor/pngs/Vie...tition - 3.png

Is this the right code?

What does "only root can do that" mean?

Do I have to enter the password for root? If so, how and where can I do that?

This is the first time I'm working whith Linux commands.

martina-cz 12-01-2003 08:04 AM

Hey :)

The command is right.

On the screenshot you're logged as a user [thor] and users don't have the permissions to mount partitions, so you need to be root to do that.

Type in the console:
1. su (this will allow you to log as a root)
2. you'll be asked for a root password
3. as root, type the following commands
mkdir /mnt/windows (it creates a directory)
mount /dev/hda1 /mnt/windows -t vfat

4. Reboot
5. Finished ;)

martina-cz 12-01-2003 08:10 AM

If you want to, you can write on that FAT32 partition (and it's quite safe)
If so:

Log as user, edit /etc/fstab:
The "dev/hda1" line (which is your mounted partition) should look like this:

/dev/hda 1 /mnt/windows vfat rw,auto,umask=000,quiet 0 0

rw .. read, write
auto .. the partition will mount automatically
umask=000 .. allows users to use that partition

Y0jiMb0 12-01-2003 08:13 AM

for more information on "mount" command type "man mount".
For more information on console commands, I'd get the (free) eBook of Paul Sheer: "Linux: rute user's tutorial and exposition" (you can find it with google), or some interesting documents in http://tldp.org/ (The Linux Documentation Project); or do a search in the forum
If you have more questions on this, ask :)
Regards

thort 12-01-2003 09:49 AM

martina-cz wrote:

Quote:

3. as root, type the following commands
mkdir /mnt/windows (it creates a directory)
mount /dev/hda1 /mnt/windows -t vfat
But Linux didn't accept this:

http://home.swipnet.se/thor/pngs/Vie...tition - 4.png




How do I go on?

Y0jiMb0 12-01-2003 09:58 AM

No, first type "mkdir /mnt/windows" and press enter; then enter "mount /dev/hda1 /mnt/windows -t vfat" and press enter
Regards

PS And don't forget the 'spaces'!

martina-cz 12-01-2003 01:07 PM

I hope it works now :)

thort 12-01-2003 02:50 PM

Thanks everyone! It's working now! :)

Now I can view and open my Windows documents in Red Hat.

But it's one thing I'm wondering about.

It seems to be necessary every time I boot up Red Hat to go to the Terminal and write the command "mount /dev/hda1 /mnt/windows -t vfat" in order to get access to hda1. This is a quite complicated procedure to do every time.

Is it possible to craeate a shortcut on the Desktop which by a mouseclick gives me immediate access to hda1?

Do I really have to mount hda1 by this complicated procedure every time I start up Red Hat?

Y0jiMb0 12-01-2003 03:03 PM

No, read above what martina-cz wrote:
Quote:

edit /etc/fstab:
The "dev/hda1" line (which is your mounted partition) should look like this:

/dev/hda1 /mnt/windows vfat rw,auto,umask=000,quiet 0 0

rw .. read, write
auto .. the partition will mount automatically
umask=000 .. allows users to use that partition
i.e. as root, edit the file "fstab", located in the "/etc/" directory and add a line like thi one.
I repeat, for more details type "man mount" and read the documentation of this command (also "man fstab")
Regards

thort 12-02-2003 02:21 AM

Thanks Y0jiMb0 !

I opened "fstab" and added the line:
/dev/hda1 /mnt/windows vfat rw,auto,umask=000,quiet 0 0
just as you said.

I restarted Red Hat and now it's working. hda1 turns up in Nautilus. :)

Thanks a lot.

I have a lot to learn.

Y0jiMb0 12-02-2003 02:53 AM

Glad to hear you got it! ;)
Regards


All times are GMT -5. The time now is 06:21 PM.