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

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2712
Location: Edmonton, AB

PostPosted: Fri Jan 08, 2010 7:06 pm    Post subject: [SOLVED] grub-install - unknown filesystem type 'ext2' Reply with quote

I'm in the final stage of installation and running:
grub-install --no-floppy /dev/sda

I get:
Code:
Unknown partition table signature
SQUASHFS error: Unable to read fragment cache entry [22a3382]
SQUASHFS error: Unable to read page, block 22a3382
...


Content of the /boot/grub/device.map
(fd0) /dev/fd0 (don't have one)
(hd0) /dev/hdd (don't know what is this entry)
(hd1) /dev/sda

/dev/sda is the one I partitioned with fdisk.
I've tried in grub.conf:
root (hd0,0)
root (hd1,0)

still the same error.
How to find out hat is the correct number of the root hd? I have two identical hard drive but have partitioned only one.


Last edited by Joseph_sys on Fri Jan 08, 2010 10:15 pm; edited 2 times in total
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2712
Location: Edmonton, AB

PostPosted: Fri Jan 08, 2010 8:08 pm    Post subject: Reply with quote

system booted OK
but when I try mount /boot partition I get:
Code:
mount: unknown filesystem type 'ext2'


It seems like the Gentoo documentation is getting outdated or somebody screw it up :-/
they forgot to enable in genkernel support for ext2 and/or tell the user in documentation to enable it manually :-(


Last edited by Joseph_sys on Sun Jan 10, 2010 4:43 pm; edited 2 times in total
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Fri Jan 08, 2010 8:37 pm    Post subject: Reply with quote

Moved from Portage & Programming to Installing Gentoo.
This has nothing to do with the P&P Forum, so I've moved it to IG.


You can choose from amongst several file system for your /boot partition or you can even choose not to have one, so ext2 is not a hard requirement. If you do use ext2 for your /boot partition, then you need to enable it in your kernel.
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2712
Location: Edmonton, AB

PostPosted: Fri Jan 08, 2010 8:58 pm    Post subject: Reply with quote

jmbsvicetto wrote:
Moved from Portage & Programming to Installing Gentoo.
This has nothing to do with the P&P Forum, so I've moved it to IG.


You can choose from amongst several file system for your /boot partition or you can even choose not to have one, so ext2 is not a hard requirement. If you do use ext2 for your /boot partition, then you need to enable it in your kernel.


Yes, it is not compulsory but in the documentation section under:
4. Preparing the Disks
mke2fs /dev/sda1

applies ext2 file system to sda1 but kernel configuration does not mention to enable it.
Back to top
View user's profile Send private message
ryan221
n00b
n00b


Joined: 07 Jan 2010
Posts: 28

PostPosted: Fri Jan 08, 2010 9:24 pm    Post subject: Reply with quote

for some reason ext2 is not automatically selected when you configure recent kernels , you have to go to filesystems and pick it ,

there's also a way to change ext2 to 3 with a oneline command , sorry i forget what it is right now, but you can google it.

You can also fix it by just changing it in /etc/fstab , if you change your boot partition type to ext3 , it should allow you to mount it reguardless of whether it's ext2 or 3. mount doesn't care about the journal.
Back to top
View user's profile Send private message
ndse2112
Tux's lil' helper
Tux's lil' helper


Joined: 21 May 2007
Posts: 100

PostPosted: Fri Jan 08, 2010 10:06 pm    Post subject: Reply with quote

Code:

    tune2fs -j <device>
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2712
Location: Edmonton, AB

PostPosted: Fri Jan 08, 2010 10:55 pm    Post subject: Reply with quote

ndse2112 wrote:
Code:

    tune2fs -j <device>


I just did a quick bootstrap copy the new kernel to /boot and reboot, problem solved.
Just in case somebody gets into this situation here are quick commands for bootstrap (using any bootable media, usb-stick, cdrom etc.):
Code:
# swapon /dev/sda2
# mount -t ext3 /dev/sda3 /mnt/gentoo
# mount /dev/sda1 /mnt/gentoo/boot
# cd /mnt/gentoo
# mount -t proc none /mnt/gentoo/proc
# chroot /mnt/gentoo /bin/bash
# env-update
# source /etc/profile

do whatever you have to do

# exit
# cd
# umount /mnt/gentoo/boot /mnt/gentoo/proc /mnt/gentoo
# reboot
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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