Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-01-2005, 06:29 AM   #1
LQ Newbie
Registered: Dec 2005
Posts: 1

Rep: Reputation: 0
How to Access FAT32 Partitions

hello every body...
I recently have installed Linux ... along with Microsoft Windows XP
I've 4 Partitions......
C: FAT32(XP)
D: ex3 (i think it is right) Linux
E: FAT32
F: FAT32

but i can't access FAT32 Partitions while using Linux ... and also can't access Linux partition while using XP

please help me..... all the steps... coz i'm new to linux

ok bye..Take care of ur self
Old 12-01-2005, 06:41 AM   #2
Registered: Aug 2004
Location: Philly
Distribution: Debian Lenny, FreeBSD
Posts: 577

Rep: Reputation: 30
Which distro are you using?

Peace V
Old 12-01-2005, 06:43 AM   #3
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
To access your FAT32 partitions in Linux, you need to use the mount command, for example:

# mount -t vfat /dev/hda1 /mnt/windows

This is done from the command line (look in your menus for an entry called "Terminal" or perhaps "Konsole" if you're using KDE. You'll need root privilages to do this, usually you type "su" followed by your root password. Ubuntu works differently, I think you just type "sudo mount ..." (but am not certain, as I've never used Ubuntu).

You can also add entries for your FAT32 partitions to the /etc/fstab file, so they're mounted on boot. This explains the fstab file.

The -t option specifies the file system type. After that, you put the partition you want to mount (/dev/hda1 here, replace hda1 with the correct info for your partition(s)) and where you want to mount it to (eg. /mnt/windows). That folder needs to exist before you try to mount, otherwise you'll be told that the mount point doesn't exist.

From Windows, you can read ext2 or ext3 partitions with Explore2fs, though you cannot write to them.

Last edited by Nylex; 12-01-2005 at 06:45 AM.
Old 12-01-2005, 07:56 AM   #4
Senior Member
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
When mounting you will need the switch -o umask=000 or similar in order to read/write it
Old 12-01-2005, 08:22 PM   #5
LQ Newbie
Registered: Dec 2005
Location: Pakistan
Distribution: RHEL
Posts: 5

Rep: Reputation: 0
Before taking these all steps first you need to confirm that which FAT32 do you want to access in Linux.

# fdisk -l

(it'll show you all partitions xp's as well as linux')

then you need to decide that either you want to access FAT32 partitions on temp. bases or permemently. if you wann temp.access temporarely then simply mount the desired partition by makin seperate directory or in currently working directories.

# mount -t vfat /dev/hdx /data

(x is your partitions # and /data is directory which you can manually make)

for permenent access you need to add it in /etc/fstab

# vi /etc/fstab

/dev/hdx /data vfat defaults 0 0

If anybody wants to bring some innovation in my statement go ahead, i'll applaude it ;--)
Old 12-02-2005, 09:25 AM   #6
Registered: Sep 2005
Location: London, UK
Distribution: Debian
Posts: 258

Rep: Reputation: 38
If you're using Mandriva 2006 (and i think '05, no idea on earlier releases), i couldn't find a way to edit /etc/fstab aside from through the 'control center' GUI. It's a bit tedious, but works.
The first line of /etc/fstab tells you that fstab-sync edits it, but i could find no mention of that package on my computer. Even root doesn't seem to be able to write to /etc/fstab.
Old 12-02-2005, 09:32 AM   #7
Senior Member
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
?? when logging into the control centre it logs in as root, to execute programs under root priveledges, how would it let a GUI under root edit /etc/fstab but not root do it?

did you login to the console as root and then use a text editor to open it?
Old 12-03-2005, 12:27 PM   #8
Registered: Sep 2005
Location: London, UK
Distribution: Debian
Posts: 258

Rep: Reputation: 38
I'm not sure what i was doing, but it works now....

I'm sure i called su before, then kwrite /etc/fstab and it wouldn't let me save. Now it does...


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
how to see fat32 partitions yash_bartarya Linux - Software 1 10-17-2004 01:14 PM
Can't access files on FAT32 partitions? epihammer Amigo 6 10-05-2004 05:01 AM
only root can access my fat32 and ntfs partitions on Mandrake 9.2 el_pajaro! Mandriva 2 02-03-2004 05:19 AM
2 fat32 partitions on fbsd5/w2k dual. Can only access one fat32 so far.. mipia *BSD 1 10-06-2003 02:10 AM
About Fat32 Partitions ZFighteR Linux - General 6 02-10-2003 05:35 AM > Forums > Linux Forums > Linux - Newbie

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

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