LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-03-2006, 10:44 AM   #1
ChesterHemmer
LQ Newbie
 
Registered: Jan 2005
Location: Chicago, IL
Distribution: Fedora 3, Suse 10.1
Posts: 5

Rep: Reputation: 0
Format partition as ext3, fdisk says FAT?


Has anybody seen this issue? I have solved it for myself but still am baffled as to why this happened.

I used "mke2fs -cj /dev/hdbXX" to create some partitions, then did "fdisk -l" and the new partitions showed up as FAT. They worked, and I was able to write to them while installing a new distro, but they would not boot up from GRUB. It would give an error "FS type unknown, partition type 0x6".

Here's the backstory: I was mucking around with my partitions so I could install some new distros to try out, and decided to do it via windows XP's "manage computer" option since I didn't trust my old version of Partition Magic on such a big hard drive (250GB). I had a partition that was like 30GB reserved for another linux install, so I deleted it and split it up into 4 separate unformatted partitions.

So then I booted into my Fedora Core 3 distro, and went about formatting the partitions (using mke2fs) as ext3 so I could install FC5, Suse 10.1, etc. Of course at first I thought everything was fine and started installing distros and realized they wouldn't boot (see above). Then I checked fdisk and it still thought they were FAT partitions.

I eventually solved it by first using parted to delete and recreate the partitions, then formatting them using parted. (I didn't like how parted reordered the partitions, since the partitions were in the middle of the disk but it gave them the highest disk numbers (hdb13, 14, 15, 16) - so I recreated them in windows.) The trick is to NOT use mke2fs to format, but to use parted to format the partitions if the partitions were created using windows. The question I have is... why? Anyone have an idea?
 
Old 07-03-2006, 10:48 AM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
IIRC ext3 should just be -j not -cj, but i could be wrong.
 
Old 07-03-2006, 11:01 AM   #3
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Well, partition type set by parted or fdisk is property written in partition table. Partition contents - FS, for example - is written entirely on partition itself. Maybe you could simply set partition type in fdisk - it shouldn't even touch data on partition, but I wouldn't bet on it.
 
Old 07-03-2006, 12:29 PM   #4
broknindarkagain
Member
 
Registered: May 2006
Location: Atlanta
Distribution: WinXP, Ubuntu
Posts: 64

Rep: Reputation: 15
I have always used cfdisk to make my partitions. It seems to be easier to use, and I have never had a problem with it. fdisk always gives me problems. so try cfdisk next time.

Last edited by broknindarkagain; 07-03-2006 at 01:15 PM.
 
Old 07-03-2006, 12:34 PM   #5
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Well, it's not a matter of a program, it's matter of forgetting to change partition type.
 
Old 07-08-2006, 09:49 PM   #6
ChesterHemmer
LQ Newbie
 
Registered: Jan 2005
Location: Chicago, IL
Distribution: Fedora 3, Suse 10.1
Posts: 5

Original Poster
Rep: Reputation: 0
So what else would I have had to do besides run "mke2fs" to actually change the partition type correctly? I take it mke2fs only does the actual formatting and does not change the type?
 
Old 07-09-2006, 11:20 AM   #7
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Yes. Try running cfdisk and change type of the partition (big button type) anw write this. I don't think there is very big risk of losing data on partition, but nevertheless backup.
 
Old 07-09-2006, 12:13 PM   #8
broknindarkagain
Member
 
Registered: May 2006
Location: Atlanta
Distribution: WinXP, Ubuntu
Posts: 64

Rep: Reputation: 15
I have lost data before playing around with the partition table. Make sure you back up before you do anything,
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I format my ext3 partition to use 1024 byte blocks and 1 inode per block? abefroman Linux - Hardware 1 11-26-2005 11:01 PM
format reiserfs partition to ext3 safely chocloman Linux - Software 2 10-03-2005 04:14 PM
Format ext3 partition to FAT32? Moses420ca Linux - Newbie 14 09-16-2005 12:31 PM
recover fat partition formatted with ext3 by error mermoz Linux - Newbie 3 05-31-2005 06:55 AM
How i make Ext2,Ext3 partition from FDISK Shiraz Ahmed Linux - Software 1 08-23-2004 06:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:57 PM.

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