Linux - GeneralThis 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
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.
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.
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?
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900
Rep:
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.
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.
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?
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.