LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-01-2002, 05:19 PM   #1
LinWinUser
LQ Newbie
 
Registered: May 2002
Posts: 8

Rep: Reputation: 0
How to mount a FAT partition on RedHat


Hello,

I want to be able to see partions on my hard drives. But in /mnt/ I only see cdrom and floppy. How do I see the and add the following 5 windows and FAT partions to my linux system so that I can see them and store data on them for later use in windows.

The following is my configuration:

Hard Drive 1 (8 GB) Primary IDE Master
(1GB Wind98)+(2GB Win2k)+(5GB RedHat 7.2)

Hard Drive 2 (15 GB) for data only 2ndary IDE Master
(3GB FAT32)+(3GB FAT32)+(9GB FAT32)

Thanks in advance for comments/help.

LinWinUser
 
Old 06-01-2002, 05:52 PM   #2
tunedLow
Member
 
Registered: Sep 2001
Location: Salt Lake City
Distribution: Slackware 8.1
Posts: 133

Rep: Reputation: 15
I created a dir /mnt/vfat. Then with the command

$ mount -t vfat /dev/hda1 /mnt/vfat

I can go straight there. I do this as root because I do it so rarely, but you can modify your /etc/fstab and make it available to all users.

I've never tried to write to the windows partion, and I understand that this is a no-no if you use ntfs. But just reading my fat partion has not caused any problems.

You can read more about it with $ man mount



~~~~~~~~~~~~~
I know better than to double post a question, but is a reply ok?
 
Old 06-01-2002, 08:44 PM   #3
zLinuxz
Senior Member
 
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216

Rep: Reputation: 45
Hi all, yeah I do this same thing in my computer, and it works fine. I think you are right Tunedlow in that you cannot write to the windows partition, it will give you a, you don't have enough privileges, error message. However, you can copy from the windows partition into your linux partition. This is great since we don't have to reboot any more like before, :-D

:-DzLinuxz:-D
 
Old 06-01-2002, 10:58 PM   #4
Psycho
Member
 
Registered: Feb 2002
Location: Carson City, Nevada
Distribution: Gentoo / SuSE 9.1 Pro (both A64)
Posts: 159

Rep: Reputation: 30
Actually you can write to a fat/vfat partition. The standard warning is that vfat support is in alpha applies, but I've never caused a problem doing it. I dual booted various version of RedHat and 95 or 2K for years.

You have to be su to have the permission, or put umask=000 (I think it was) in fstab like so...

dev/hda3 /mnt/WinDoze vfat defaults,umask=000 0 0
 
Old 06-01-2002, 11:40 PM   #5
LinWinUser
LQ Newbie
 
Registered: May 2002
Posts: 8

Original Poster
Rep: Reputation: 0
Ok this one works
$ mount -t vfat /dev/hda1 /mnt/vfat

but these all
$ mount -t vfat /dev/hda2 /mnt/vfat2
$ mount -t vfat /dev/hdb1 /mnt/vfat_b1
$ mount -t vfat /dev/hdb2 /mnt/vfat_b2
$ mount -t vfat /dev/hdb3 /mnt/vfat_b3
give this type of error

mount: wrong fs type, bad option, bad superblock on /dev/hda2,
or too many mounted file systems
(aren't you trying to mount an extended partition,
instead of some logical partition inside?)

I know I have all FAT32 for my non linux partions so they shoudl all work just like the first command worked.
I was wodering if there a command to see what are my partions named in redhat..

thanks.
LInWinUser
 
Old 06-01-2002, 11:49 PM   #6
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
For a list of partitions on hda try:

fdisk -l /dev/hda

For hdb:

fdisk -l /dev/hdb
 
Old 06-02-2002, 12:47 AM   #7
LinWinUser
LQ Newbie
 
Registered: May 2002
Posts: 8

Original Poster
Rep: Reputation: 0
thanks linuxcool,

but fdisk only displays the partition of the first primary hard drive.

On the doing
fdisk -l /dev/hdb gives me nothing at all. no message is displayed, no partition table. Nothing. Does that mean that my redhat doens't know that I have a 2nd hard drive.

LinWinUser
 
Old 06-02-2002, 01:05 AM   #8
Psycho
Member
 
Registered: Feb 2002
Location: Carson City, Nevada
Distribution: Gentoo / SuSE 9.1 Pro (both A64)
Posts: 159

Rep: Reputation: 30
Secondary IDE, master is /dev/hdc, slave is /dev/hdd
 
Old 06-02-2002, 01:25 AM   #9
LinWinUser
LQ Newbie
 
Registered: May 2002
Posts: 8

Original Poster
Rep: Reputation: 0
All right now every thing works fine.

thanks a lot.
 
Old 06-02-2002, 01:30 AM   #10
Psycho
Member
 
Registered: Feb 2002
Location: Carson City, Nevada
Distribution: Gentoo / SuSE 9.1 Pro (both A64)
Posts: 159

Rep: Reputation: 30
Cool, you're welcome.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can mount C not D FAT: invalid media value (0x45) mount: wrong fs type, bad option Emmanuel_uk Linux - Newbie 10 11-29-2005 03:47 AM
No able to mount FA32 partition in REdhat 9 cdbular Linux - Hardware 1 03-16-2005 02:52 PM
Mount ntfs partition in Redhat 9 yongsp Red Hat 5 03-03-2005 06:08 PM
mount fat partition MissEileen Linux - General 4 03-02-2005 11:19 AM
Cant copy files to a fat partition i mount as RW? FocusedWolf Linux - Hardware 6 03-18-2004 05:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:55 AM.

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