LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-17-2004, 12:34 PM   #1
billspork
LQ Newbie
 
Registered: Jul 2004
Distribution: Fedora Core 2
Posts: 26

Rep: Reputation: 15
Converting Fat32 Partition to a Linux Filesystem


I have a drive that I was using in both windows & linux, but I am rarely (if ever) in windows now. I was wondering if anyone could tell me how to convert my Fat32 partition into a Linux based one (i.e. EXT3). I'm would prefer a quick file system, because I'm dealing with large files on it.


Thanks a ton,

Billspork
 
Old 10-17-2004, 12:51 PM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
Whatever you do, it's strongly advisable to take a backup of your files first. Make sure you can read the backup properly before messing around with filesystems.

I don't know of a simple conversion utility; but if you find one then the above still stands.

The easiest way is to delete the partition using the fdisk utility (in Linux), and create a new one in its place, with the ext3 filesystem. Then reformat it with mkext3 /dev/partition and copy the files back from the backup. Then change the line for that filesystem in /etc/fstab from vfat to ext3 (it's also a good idea to add the noatime and nodiratime options).

If you don't have the means to take a backup, then you might get away with using something like gnuparted to resize the vfat partition to as small as you can, then make a new partition on the rest of the disk to use as a file store, then change the original filesystem as above. You then have to move the files back over again and delete the other filesystem. You can then use gnuparted to enlarge the filesystem again. However, this is more likely to lose data or damage files, as there's more to go wrong.
 
Old 10-17-2004, 12:52 PM   #3
spurious
Member
 
Registered: Apr 2003
Location: Vancouver, BC
Distribution: Slackware, Ubuntu
Posts: 558

Rep: Reputation: 31
Assuming your FAT32 partition is, say, hda5 then as root:

mkfs -t ext3 /dev/hda5

where ext3 is your new filesystem. You can use filesystems other than ext3, of course. xfs is apparently good for very large files, but first check if your distro's kernel supports it.
 
Old 10-17-2004, 12:52 PM   #4
m00t00
Member
 
Registered: Sep 2004
Distribution: Slackware 10, Gentoo
Posts: 292

Rep: Reputation: 30
mkfs.ext3 /dev/hdXX

(The 'X's arent literals, replace them with the correct letter/number).
Also if you want a fast filesystem, do reiserfs. Its faster.

mkfs.reiserfs /dev/hdXX
 
Old 10-17-2004, 01:43 PM   #5
billspork
LQ Newbie
 
Registered: Jul 2004
Distribution: Fedora Core 2
Posts: 26

Original Poster
Rep: Reputation: 15
thanks alot for the help!
most of the files aren't important, but I will be sure to backup the ones that are.


Thanks again,

Billspork
 
Old 10-17-2004, 03:09 PM   #6
m00t00
Member
 
Registered: Sep 2004
Distribution: Slackware 10, Gentoo
Posts: 292

Rep: Reputation: 30
glad to help =]
 
  


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
accessing a linux partition from a fat32 partition? abtimoteo Ubuntu 4 09-19-2005 10:41 PM
Converting a pendrive to FAT32 TMH Linux - Hardware 7 03-04-2005 09:24 AM
NTFS partition cannot be mounted after converting from FAT32 aweir14150 Mandriva 5 01-27-2005 03:11 PM
Linux Filesystem - Converting NTFS to Ext2? Ngentot Linux - General 2 11-12-2004 11:58 PM
Converting filesystem types cyris Linux - General 2 04-11-2003 01:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:27 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
Open Source Consulting | Domain Registration