LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Problems with mounting fat32 partition in RHEL 5 (https://www.linuxquestions.org/questions/red-hat-31/problems-with-mounting-fat32-partition-in-rhel-5-a-665629/)

gyzer 08-26-2008 06:26 PM

Problems with mounting fat32 partition in RHEL 5
 
I'm trying to mount a fat32 partition in RHEL 5 and it isn't working. First off, the OS doesn't just auto detect the partition and mount it, which I've seen it done in Fedora 9. I also tried the mount command and it says that it can't find dev/sda3 (which is the Fat32 drive) in /etc/fstab or in /etc/mtab.

Anyone have any sugestion on how to get this guy mounted? Its really important that I get this partition mounted.

mjmwired 08-26-2008 09:51 PM

Can you post the full command when you try to mount it on the command line and also the exact error output you are seeing?

Also, the output of fdisk, listing your partitions.

John VV 08-27-2008 12:56 AM

for this the same should hold true for red hat as fedora
Code:

su -
mkdir /mnt/fat32
mount -t vfat /mnt/fat32 /dev/sda3

and in fstab after dooing
mkdir /mnt/fat32
Code:

/dev/sdb3      /mnt/fat32      vfat    defaults        0 0

gyzer 08-27-2008 10:12 AM

the command I'm typing is

Code:

mount /dev/sda3 /mnt/sda3
which gets the error "mount: mount poing /mnt/sda3 does not exist"

The other command is

Code:

mount /dev/sda3
which gets the error "mount: can't find /dev/sda3 in /etc/fstab or /etcmtab"

When I run fdisk this is what I get:

Code:

Usage: fdisk [-l] [-b SSZ] [-u] device
E.g.: fdisk /dev/hda  (for the first IDE disk)
  or: fdisk /dev/sdc  (for the third SCSI disk)
  or: fdisk /dev/eda  (for the first PS/2 ESDI drive)
  or: fdisk /dev/rd/c0d0  or: fdisk /dev/ida/c0d0  (for RAID devices)

The purpose of this setup is this: I am needing to dual boot Windows XP and Red Hat on a higher end HP workstation laptop. I decided that the best way to move data between each OS was a small 10GB vfat(fat32) partition. I first tested this idea using fedora and it worked just fine without me having to do anything extra besides just creating the vfat partition.

This current problem started after I installed RHEL 5 in the previous fedora partition (which was formatted before RHEL was installed of course).

If anyone has any ideas on a better way on moving data between Windows and RHEL I'd really appreciate it. The only requirement that I have is that it has to be on the laptop and not through an external drive or some common server that both OS's use.

Thanks for the help!!!

gyzer 08-27-2008 10:14 AM

John VV: I tried those commands and I got this error after doing

Code:

mount -t vfat /mnt/fat32 /dev/sda3
"mount: /mnt/fat32 is not a block device"

John VV 08-27-2008 10:56 AM

oops i flip/flopped it should read
Code:

su -
mkdir /mnt/fat32
mount -t vfat /dev/sda3/ mnt/fat32

you FIRST MUST make a folder to mount it at that is what
---------------
su -
mkdir /mnt/fat32
------------------
this dose

gyzer 08-27-2008 10:59 AM

Yes I did that, but it either says /dev/sda3 doesn't exsist or that I don't have permission to access /dev/sda3, even though I'm logged in as root.

I downloaded gparted, it can see this partition, but it doesn't have a mount point, and I can't seem to figure out how to add a mount point for it via gparted.

mjmwired 08-27-2008 02:00 PM

As root, what is the output of:

# /sbin/fdisk -lu /dev/sda
# /sbin/fdisk -lu /dev/hda

Is this a ATA drive? then it should be /dev/hdaX, if SCSI or SATA or USB, etc, it most likely will be /dev/sdaX (where X is a number)

gyzer 08-27-2008 02:13 PM

/sbin/fdisk -lu /dev/sda

Code:

/dev/sda1  *          63  117210239    58605088+  7  HPFS/NTFS
/dev/sda2      117210240  197567369    40178565  83  Linux
/dev/sda3      197567370  218050244    10241437+  b  W95 FAT32
/dev/sda4      218050245  234436544    8193150    5  Extended
/dev/sda5      218050308  234436544    8193118+  82  Linux swap


/sbin/fdisk -lu /dev/hda shows nothing.

John VV 08-27-2008 02:54 PM

i am not 100% sure on red hat maybe the folder /mnt is not there
how about trying
Code:

su -
mkdir /mnt
mkdir /mnt/fat32

Quote:

but it either says /dev/sda3 doesn't exsist or that I don't have permission to access /dev/sda3, even though I'm logged in as root.
that is odd seeing as "/dev/sda3 197567370 218050244 10241437+ b W95 FAT32 "
is there
red hat should see the fat32 part. just like fedora did ???
Quote:

I decided that the best way to move data between each OS was a small 10GB vfat(fat32) partition.
on RHEL 5 you should be able to install ntfs-3g so red hat can just wright to the windows drive .windows still wont be able to see the red hat drive however .
or setup nfs, samba and transfer them .

gyzer 08-27-2008 03:18 PM

I actually changed the drive from fat32 to ext2 and installed the ext2 patch in windows and that works.

Sadly though RHEL 5 doesn't seem to auto mount the drive, I have to mount it every time I boot up the OS, but it finds it and it works just fine via the /mnt directory.

I'd still rather do this with the fat32 file system rather then ext2, but it is working.

stormtracknole 08-27-2008 04:13 PM

For some reason, I think that Red Hat does not turn on support for FAT32 in the kernel. At least they didn't used to, but I'm not sure if that is the case anymore.

gyzer 08-27-2008 04:24 PM

that defiantly makes sense, even though it is a stupid way to go about it.

Thanks for all the help!

stormtracknole 08-28-2008 10:30 PM

Quote:

Originally Posted by gyzer (Post 3261960)
that defiantly makes sense, even though it is a stupid way to go about it.

Thanks for all the help!

You could try to install the CentOS-plus kernel. FAT32, among other things like firewire are turned on by default. CentOS is binary compatible, so it should work without any problems.

gyzer 08-28-2008 10:45 PM

I have no idea why, but on a different laptop, same model, with the same setup, I was able to mount the fat32 drive. No idea why


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