Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
unknown filesystem type 'ext2' [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
rawbeefman
Guru
Guru


Joined: 25 Mar 2005
Posts: 375

PostPosted: Sat Sep 06, 2008 3:29 pm    Post subject: unknown filesystem type 'ext2' [SOLVED] Reply with quote

An interesting problem I have. I just upgraded my kernel after not using my mythbox for the summer. I rebooted, recompiled with more options, went to copy it over, and I find that /boot was not mounted. I went to mount it and received the error
Code:
unknown filesystem type 'ext2'

Now, I cannot boot another kernel since I deleted the old one. oops. Ext2 is explicitly in the kernel. I dont have a dvd drive on my mythbox so I cant fix from a liveCD.

Is there any way to fix this issue? Thank you.

- Ehren


Last edited by rawbeefman on Sun Sep 07, 2008 12:53 am; edited 1 time in total
Back to top
View user's profile Send private message
cst
Apprentice
Apprentice


Joined: 24 Feb 2008
Posts: 203
Location: /proc

PostPosted: Sat Sep 06, 2008 3:32 pm    Post subject: Reply with quote

seems you dont have ext2 support enabled in the kernel
are any other filesystems recognized?
_________________
i7 3930K @ 4GHz
MSI X79A-GD45 (8D)
32GB 1600 MHz DDR3 Samsung
Samsung 840 PRO, 2xSamsung HD502HJ in RAID 1
MSI GTX 980Ti
latest gentoo-sources on x86_64 Fluxbox (amd64)

best render farm: www.GarageFarm.NET
Back to top
View user's profile Send private message
rawbeefman
Guru
Guru


Joined: 25 Mar 2005
Posts: 375

PostPosted: Sat Sep 06, 2008 3:37 pm    Post subject: Reply with quote

Yes, everything but ext2. Which is weird because it is enabled in the config file.

My question is how to I manually get and load that module?

Thanks.
Back to top
View user's profile Send private message
cst
Apprentice
Apprentice


Joined: 24 Feb 2008
Posts: 203
Location: /proc

PostPosted: Sat Sep 06, 2008 3:57 pm    Post subject: Reply with quote

the one thing that comes to mind is to use different kind of partition for your /boot if you have a one to spare and install everything needed to boot there.

To have a module you would need to actually compile it with from the kernel sources.
_________________
i7 3930K @ 4GHz
MSI X79A-GD45 (8D)
32GB 1600 MHz DDR3 Samsung
Samsung 840 PRO, 2xSamsung HD502HJ in RAID 1
MSI GTX 980Ti
latest gentoo-sources on x86_64 Fluxbox (amd64)

best render farm: www.GarageFarm.NET
Back to top
View user's profile Send private message
rawbeefman
Guru
Guru


Joined: 25 Mar 2005
Posts: 375

PostPosted: Sat Sep 06, 2008 4:08 pm    Post subject: Reply with quote

That sucks. Is there a way I can preserve that data? Can I make it an ext3 partition and preserve it.
Back to top
View user's profile Send private message
zyko
l33t
l33t


Joined: 01 Jun 2008
Posts: 620
Location: Munich, Germany

PostPosted: Sat Sep 06, 2008 6:19 pm    Post subject: Reply with quote

I think you can convert ext2 --> ext3 by simply adding a journal. I'm pretty sure this is safe, but I don't know if it works when the kernel claims it doesn't know ext2 (since it probably can't write the journal to the disk).

The command I'm thinking of is

Code:
tune2fs -O has_journal /dev/sdf9


Replace /dev/sdf9 with your actual partition, of course.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23062

PostPosted: Sat Sep 06, 2008 6:36 pm    Post subject: Reply with quote

How did you delete the old kernel if you did not have /boot mounted? Typically, the kernel would be in /boot, so if you cannot mount it, then the old kernel should still be there.

You could recover from this by moving the hard drive to a system with a kernel that recognizes ext2 or by PXE booting the offending system so that you can deliver a good kernel over the network. Before going any further, I would check that the /boot partition is still sane. Use file to check that it has the right magic numbers, and use e2fsck to check it for corruption. If you find any corruption, abort the fsck and make a bit-for-bit backup before proceeding.
Back to top
View user's profile Send private message
rawbeefman
Guru
Guru


Joined: 25 Mar 2005
Posts: 375

PostPosted: Sun Sep 07, 2008 12:53 am    Post subject: Reply with quote

Hyko, I see what you're saying, but I dont have the resources to pull it off (new apartment, new state).

But ZYKO, you are the MAN. I was able to convert it, so I mounted and it worked great. Thanks a bunch. Marking as solved.

- Ehren
Back to top
View user's profile Send private message
sluys
n00b
n00b


Joined: 19 Jul 2007
Posts: 3

PostPosted: Fri Jul 24, 2009 11:11 pm    Post subject: Reply with quote

zyko wrote:
The command I'm thinking of is
Code:
tune2fs -O has_journal /dev/sdf9

Replace /dev/sdf9 with your actual partition, of course.

Thanks, I ran into the same problem and this helped me out. I wanted to add that you may want to turn your boot partition back to ext2 after you're done installing your new kernel with ext2 support:
Code:
tune2fs -O ^has_journal /dev/sdf9


Also, an alternative would be to select ext2 support in the kernel as a module, and
Code:
make && make modules_install
modprobe ext2

That should allow you mount /boot. You can then either build ext2 support into the kernel, or simply load the module (by hand or at boot time).
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Sat Jul 25, 2009 4:58 am    Post subject: Reply with quote

I've not asked, but I still don't know why ext2 support is deselected by default in the config recently

as well, it doesnt jump out at you because it's labeled "seconded extended file system" instead of simply "ext2"

understood that's its long, proper name, but annoying nonetheless.

It is natural for one's eyes to skim and skip right over 'second extended file system', and just assume ext2 is built in
perhaps wrong, but natural nonetheless

on that same token, i can guarantee if i saw 'ext2' unchecked, I would definitely not skip over it.

Wish they'd change that - or maybe do the long name in parethesis e.g. "ext2 (second extended file system)"
Back to top
View user's profile Send private message
qcaze
n00b
n00b


Joined: 26 May 2004
Posts: 8

PostPosted: Tue Sep 15, 2009 9:40 am    Post subject: Reply with quote

cach0rr0 wrote:
I've not asked, but I still don't know why ext2 support is deselected by default in the config recently

as well, it doesnt jump out at you because it's labeled "seconded extended file system" instead of simply "ext2"

understood that's its long, proper name, but annoying nonetheless.

It is natural for one's eyes to skim and skip right over 'second extended file system', and just assume ext2 is built in
perhaps wrong, but natural nonetheless

on that same token, i can guarantee if i saw 'ext2' unchecked, I would definitely not skip over it.

Wish they'd change that - or maybe do the long name in parethesis e.g. "ext2 (second extended file system)"


I also had the "unknown filesystem type 'ext2'" error - thanks for helping!

I'm a long time gentoo user who have just installed a new machine, and I too skipped the "second extended file system" label in kernel menuconfig - which makes no sense (and should be on by default), since ext2 is used in the install docs for the boot partition and ext3 is correctly named, well, ext3.
Back to top
View user's profile Send private message
azote
Guru
Guru


Joined: 17 Sep 2002
Posts: 415

PostPosted: Wed Mar 24, 2010 4:08 pm    Post subject: Reply with quote

crap same thing happen to me ... thank god for the easy convert ext2-->ext3 ;)
_________________
contact me -> azote@mail.i2p

What do you want to emerge today?

if you think that a person is normal, it is because you do not know them well
Back to top
View user's profile Send private message
cloudcode
n00b
n00b


Joined: 12 Mar 2011
Posts: 5

PostPosted: Wed Mar 16, 2011 3:16 am    Post subject: Reply with quote

thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum