LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 12-01-2003, 06:03 AM   #1
thort
Member
 
Registered: Nov 2003
Location: Sweden
Distribution: Linux Mint Cinnamon 19
Posts: 208

Rep: Reputation: 42
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 !

Last edited by thort; 12-01-2003 at 06:07 AM.
 
Old 12-01-2003, 06:22 AM   #2
Y0jiMb0
Member
 
Registered: Jul 2003
Location: Valencia (Spain)
Distribution: slackware 11, FEDORA CORE 4, RHEL3, Gentoo...
Posts: 361

Rep: Reputation: 30
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
 
Old 12-01-2003, 08:09 AM   #3
thort
Member
 
Registered: Nov 2003
Location: Sweden
Distribution: Linux Mint Cinnamon 19
Posts: 208

Original Poster
Rep: Reputation: 42
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.
 
Old 12-01-2003, 09:04 AM   #4
martina-cz
Member
 
Registered: Oct 2003
Distribution: Slackware 9.1
Posts: 40

Rep: Reputation: 15
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
 
Old 12-01-2003, 09:10 AM   #5
martina-cz
Member
 
Registered: Oct 2003
Distribution: Slackware 9.1
Posts: 40

Rep: Reputation: 15
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
 
Old 12-01-2003, 09:13 AM   #6
Y0jiMb0
Member
 
Registered: Jul 2003
Location: Valencia (Spain)
Distribution: slackware 11, FEDORA CORE 4, RHEL3, Gentoo...
Posts: 361

Rep: Reputation: 30
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
 
Old 12-01-2003, 10:49 AM   #7
thort
Member
 
Registered: Nov 2003
Location: Sweden
Distribution: Linux Mint Cinnamon 19
Posts: 208

Original Poster
Rep: Reputation: 42
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?
 
Old 12-01-2003, 10:58 AM   #8
Y0jiMb0
Member
 
Registered: Jul 2003
Location: Valencia (Spain)
Distribution: slackware 11, FEDORA CORE 4, RHEL3, Gentoo...
Posts: 361

Rep: Reputation: 30
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'!

Last edited by Y0jiMb0; 12-01-2003 at 11:07 AM.
 
Old 12-01-2003, 02:07 PM   #9
martina-cz
Member
 
Registered: Oct 2003
Distribution: Slackware 9.1
Posts: 40

Rep: Reputation: 15
I hope it works now
 
Old 12-01-2003, 03:50 PM   #10
thort
Member
 
Registered: Nov 2003
Location: Sweden
Distribution: Linux Mint Cinnamon 19
Posts: 208

Original Poster
Rep: Reputation: 42
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?
 
Old 12-01-2003, 04:03 PM   #11
Y0jiMb0
Member
 
Registered: Jul 2003
Location: Valencia (Spain)
Distribution: slackware 11, FEDORA CORE 4, RHEL3, Gentoo...
Posts: 361

Rep: Reputation: 30
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
 
Old 12-02-2003, 03:21 AM   #12
thort
Member
 
Registered: Nov 2003
Location: Sweden
Distribution: Linux Mint Cinnamon 19
Posts: 208

Original Poster
Rep: Reputation: 42
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.
 
Old 12-02-2003, 03:53 AM   #13
Y0jiMb0
Member
 
Registered: Jul 2003
Location: Valencia (Spain)
Distribution: slackware 11, FEDORA CORE 4, RHEL3, Gentoo...
Posts: 361

Rep: Reputation: 30
Glad to hear you got it!
Regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mount fat partition MissEileen Linux - General 4 03-02-2005 11:19 AM
Can't get at FAT partition Boffy Linux - General 5 02-21-2005 12:27 PM
Can not resize FAT partition linuxfond Linux - General 5 02-01-2005 02:52 AM
Writing to my fat partition fuzzai Linux - General 6 04-20-2004 11:31 AM
Fat partition permissions doralsoral Linux - Software 11 02-04-2004 11:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 10:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration