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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-17-2004, 12:34 PM
|
#1
|
LQ Newbie
Registered: Jul 2004
Distribution: Fedora Core 2
Posts: 26
Rep:
|
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
|
|
|
10-17-2004, 12:51 PM
|
#2
|
Senior Member
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994
Rep:
|
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.
|
|
|
10-17-2004, 12:52 PM
|
#3
|
Member
Registered: Apr 2003
Location: Vancouver, BC
Distribution: Slackware, Ubuntu
Posts: 558
Rep:
|
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.
|
|
|
10-17-2004, 12:52 PM
|
#4
|
Member
Registered: Sep 2004
Distribution: Slackware 10, Gentoo
Posts: 292
Rep:
|
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
|
|
|
10-17-2004, 01:43 PM
|
#5
|
LQ Newbie
Registered: Jul 2004
Distribution: Fedora Core 2
Posts: 26
Original Poster
Rep:
|
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
|
|
|
10-17-2004, 03:09 PM
|
#6
|
Member
Registered: Sep 2004
Distribution: Slackware 10, Gentoo
Posts: 292
Rep:
|
glad to help =]
|
|
|
All times are GMT -5. The time now is 11:27 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|