View previous topic :: View next topic |
Author |
Message |
Joseph_sys Advocate
Joined: 08 Jun 2004 Posts: 2712 Location: Edmonton, AB
|
Posted: Fri Jan 08, 2010 7:06 pm Post subject: [SOLVED] grub-install - unknown filesystem type 'ext2' |
|
|
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 |
|
|
Joseph_sys Advocate
Joined: 08 Jun 2004 Posts: 2712 Location: Edmonton, AB
|
Posted: Fri Jan 08, 2010 8:08 pm Post subject: |
|
|
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 |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Fri Jan 08, 2010 8:37 pm Post subject: |
|
|
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 |
|
|
Joseph_sys Advocate
Joined: 08 Jun 2004 Posts: 2712 Location: Edmonton, AB
|
Posted: Fri Jan 08, 2010 8:58 pm Post subject: |
|
|
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 |
|
|
ryan221 n00b
Joined: 07 Jan 2010 Posts: 28
|
Posted: Fri Jan 08, 2010 9:24 pm Post subject: |
|
|
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 |
|
|
ndse2112 Tux's lil' helper
Joined: 21 May 2007 Posts: 100
|
Posted: Fri Jan 08, 2010 10:06 pm Post subject: |
|
|
Code: |
tune2fs -j <device>
|
|
|
Back to top |
|
|
Joseph_sys Advocate
Joined: 08 Jun 2004 Posts: 2712 Location: Edmonton, AB
|
Posted: Fri Jan 08, 2010 10:55 pm Post subject: |
|
|
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 |
|
|
|