LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Veiwing the contents of Fat32 partitions in RH 9.1........? (https://www.linuxquestions.org/questions/linux-software-2/veiwing-the-contents-of-fat32-partitions-in-rh-9-1-a-101398/)

Theoutdoorsman 10-07-2003 06:40 PM

Veiwing the contents of Fat32 partitions in RH 9.1........?
 
Why can't I view the contents of my FAT32 partitions in Red Hat 9.1? Can anyone tell me how I can do this? It's like their not even there.........?

Regards,
Alan

hw-tph 10-07-2003 06:45 PM

mount -t vfat <partition> <mountpoint>

Like this:

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

Works fine for me, but then again I don't run RedHat. You might want to check if your /etc/fstab already lists your Windows partitions. If that's the case, just run mount <mountpoint> or mount <partition> and it should also be mounted automatically on boot.

hw

Theoutdoorsman 10-07-2003 10:57 PM

Hey "hw-tph",

My "fstab" file doesn't lists the Windows partitions. What do I need to do now? Keep in mind I am rather green when it comes to linux and editing files within. I have a 40 gig hard drive partitioned into 4 equal partitions and am running Red Hat 9.1 along with Windows ME. I have no idea what to do next. Any advice or other help is much appreciated !!!!

Regards,
Alan

hw-tph 10-08-2003 03:38 AM

You need to try to find out what Linux calls the partitions you use in Windows. If you are using a hard drive connected to the first IDE controller (most likely you are), the hard drive will be called /dev/hda. The partition numbers are then named appended to the hard drive name, so if you have installed Windows on the first partition on your drive, it will be called /dev/hda1. The second partition is /dev/hda2, etc.

One thing you might want to know is that partitions 5 and up are used for logical partitions. It's quite probable that you have you have an extended partition with logical partitions in it.

A pretty easy way of finding out what partitions are available to Linux and what they are called is typing fdisk /dev/hda in a terminal. This will launch the partition editor so you don't want to save anything in it. :)
When the program is running, press the "p" key on your keyboard to view the current partitions and their names and types. Then enter "q" and hit enter to exit.

hw

Theoutdoorsman 10-09-2003 12:03 AM

I copied and pasted that command in my terminal and it returns nothing. It basically says, "No such file or directory exists". Any other ideas? Thanks..................ALAN

Col Panic 10-09-2003 12:31 AM

look at the lilo or grub config file. It lists what partition info Linux uses for the drive.

I forget where lilo's is, but RH uses grub by default so what you probably want is /boot/grub/grub.conf

don't edit it in any way....it's what boots up your machine

krussell 10-09-2003 02:14 AM

four partitions of ur hdd (if it is primary master) should look like: hda1, hda2......so on.
first find your LINUX partition, hda?. to do this, create a new hard disk on desktop (i am talking KDE), from Device tab choose "/" (root partition) and see what label the computer has given to / (hda-what?).
after you detect the linux partition the rest should be easy to determine the windows partition.

now, edit your fstab, like

/dev/hda5 ext3 auto (your linux partition)
/dev/hda1 vfat noauto, user

REMEMBER TO LEAVE A BLANK LINE IN fstab, ie, press enter after the last line.

you can use kwikdisk (after you edited the fstab) to quickly monunt, umount the partitions.

pls let me know if this helped

Theoutdoorsman 10-09-2003 03:40 AM

Hey Krussell,

My partitions, as listed by the Hardware Browser within System Tools, are as follows:

hda1 (f at32 )
hda5 ( fat32 )
hda6 ( fat32 )
hda8 ( ext3 )

Within my "fstab" file........... EXACTLY............how should it read? Thank you sooooo much !!!!

Regards,
Alan

Theoutdoorsman 10-09-2003 04:02 AM

Well........in case something bad happens..........I edited my "/etc/fstab" file to read as follows:


LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda9 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
/dev/hda1 /mnt/hda1 vfat noauto,user
/dev/hda5 /mnt/hda5 vfat noauto,user
/dev/hda6 /mnt/hda6 vfat noauto,user

Theoutdoorsman 10-09-2003 04:24 AM

Well..........that didn't do it. When I navigate to the "/mnt" folder they still aren't listed. Ohhhhh.........what gives?.......lol............Anyone have any other idea? Thanks................ALAN

Theoutdoorsman 10-09-2003 06:32 AM

Never mind fellows. I got it !!!!!!! I read through some of the archives and finally ran across some information that set me free. All I needed to do was create the folders in my "/mnt" directory. Duh....LOL...... Once I created the directories and rebooted things seem to be ok. I also re-edited my "/etc/fstab" file to read as follows:


LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda9 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
/dev/hda1 /mnt/windows_c vfat defaults,umask=000 0 0
/dev/hda5 /mnt/windows_d vfat defaults,umask=000 0 0
/dev/hda6 /mnt/windows_e vfat defaults,umask=000 0 0


This enables full access to the drives for all other users who log in. Thanks for helping out guys !!!!!!!!!!! I guess I should read the archives BEFORE posting my questions huh?

Regard,
ALAN

Theoutdoorsman 10-09-2003 06:32 AM

Never mind fellows. I got it !!!!!!! I read through some of the archives and finally ran across some information that set me free. All I needed to do was create the folders in my "/mnt" directory. Duh....LOL...... Once I created the directories and rebooted things seem to be ok. I also re-edited my "/etc/fstab" file to read as follows:


LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda9 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
/dev/hda1 /mnt/windows_c vfat defaults,umask=000 0 0
/dev/hda5 /mnt/windows_d vfat defaults,umask=000 0 0
/dev/hda6 /mnt/windows_e vfat defaults,umask=000 0 0


This enables full access to the drives for all other users who log in. Thanks for helping out guys !!!!!!!!!!! I guess I should read the archives BEFORE posting my questions huh?

Regard,
ALAN

hw-tph 10-09-2003 11:49 AM

Glad you got it sorted, Alan.

hw

jbeezy 11-05-2003 11:12 PM

could you point to those archives, I have a similar problem


All times are GMT -5. The time now is 07:59 AM.