PDA

View Full Version : [ubuntu] grub2 gets "unknown filesystem" error



website.reader3
October 13th, 2010, 09:29 PM
After attempting to install Ubuntu 10.10, the boot drops into grub rescue mode

Under that, I can see 3 drives, hd0, hd1 and hd2.

Apparently grub2 switched the order, as the CD installer had the drives as

/sda partition /home
/sdb partition /boot, swap, /(root), /spare (sdb1,sdb2,sdb3, & sdb4 in that order)
/sdc partition /spare

but grubs lists (hd0) (hd0,1) (hd1)(hd1,1) (hd2)(hd2,3)(hd2,2)(hd2,1)

Apparently grub2 puts /sdc before /sdb when listing out under the ls command in rescue mode??

I have tried several times to run the "install-grub" command, and it always comes up with no errors.

Should I try installing grub2 to the first drive /sda (hd0) instead ?

Whenever I try to enter in the commands from the tutorial https://help.ubuntu.com/community/Grub2, I always get "unknown filesystem" error.

If grub2 cannot read anything, then obviously I cannot boot the system.

dabl
October 13th, 2010, 09:51 PM
How do the drives appear in BIOS? Grub gets its information about the drives from BIOS -- you can probably just resequence them there.

wilee-nilee
October 13th, 2010, 10:04 PM
If you run the bootscript in my signature it may help you see the whole system. Feel free to post it as well, in code tags. Code tags are generated by clicking on the # in the reply panel, and just put the text in between.

website.reader3
October 13th, 2010, 11:16 PM
Here it is -


Boot Info Script 0.55 dated February 15th, 2010

============================= Boot Info Summary: ==============================

=> No boot loader is installed in the MBR of /dev/sda
=> Grub 2 is installed in the MBR of /dev/sdb and looks on the same drive in
partition #1 for (,msdos1)/grub.
=> No boot loader is installed in the MBR of /dev/sdc
=> No boot loader is installed in the MBR of /dev/sdd

sda1: __________________________________________________ _______________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:

sdb1: __________________________________________________ _______________________

File system: ext2
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs: /grub/grub.cfg /grub/core.img

sdb2: __________________________________________________ _______________________

File system: swap
Boot sector type: -
Boot sector info:

sdb3: __________________________________________________ _______________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.10
Boot files/dirs: /etc/fstab

sdb4: __________________________________________________ _______________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:

sdc1: __________________________________________________ _______________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:

sdd1: __________________________________________________ _______________________

File system: vfat
Boot sector type: -
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:

sdd2: __________________________________________________ _______________________

File system: vfat
Boot sector type: -
Boot sector info: According to the info in the boot sector, sdd2 has 0
sectors.
Operating System:
Boot files/dirs:

sdd3: __________________________________________________ _______________________

File system: vfat
Boot sector type: -
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:


=========================== Drive/Partition Info: =============================

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders, total 78165360 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sda1 63 78,165,359 78,165,297 83 Linux


Drive: sdb ___________________ __________________________________________________ ___

Disk /dev/sdb: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sdb1 * 63 176,714 176,652 83 Linux
/dev/sdb2 176,715 2,634,659 2,457,945 82 Linux swap / Solaris
/dev/sdb3 2,634,660 162,754,514 160,119,855 83 Linux
/dev/sdb4 162,754,515 234,440,703 71,686,189 83 Linux


Drive: sdc ___________________ __________________________________________________ ___

Disk /dev/sdc: 36.8 GB, 36771581952 bytes
255 heads, 63 sectors/track, 4470 cylinders, total 71819496 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sdc1 63 71,810,549 71,810,487 83 Linux


Drive: sdd ___________________ __________________________________________________ ___

Disk /dev/sdd: 18.4 GB, 18389272576 bytes
255 heads, 63 sectors/track, 2235 cylinders, total 35916548 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sdd1 * 1 17,941,406 17,941,406 c W95 FAT32 (LBA)
/dev/sdd2 17,941,407 17,974,609 33,203 e W95 FAT16 (LBA)
/dev/sdd3 17,974,610 35,916,547 17,941,938 c W95 FAT32 (LBA)


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/ramzswap0 swap
/dev/sda1 1272f16f-090d-4e9a-9732-6da644e70509 ext4 home
/dev/sda: PTTYPE="dos"
/dev/sdb1 c0ca3abc-4f5f-4b11-ba2f-9aa9ff99dbc6 ext2 boot
/dev/sdb2 4428a07b-5381-4968-a6ff-4e081207cf5b swap
/dev/sdb3 d857cb40-1c6b-4858-a7df-eed218ee6958 ext4 root
/dev/sdb4 3690625d-e348-4070-94ea-d9bb63ef2cba ext4 backup
/dev/sdb: PTTYPE="dos"
/dev/sdc1 c0c9a2ad-0140-431f-88fc-72c926206aa3 ext4 spare
/dev/sdc: PTTYPE="dos"
/dev/sdd1 1578-9A51 vfat
/dev/sdd2 1819-5828 vfat
/dev/sdd3 C0CD-5B35 vfat
/dev/sdd: PTTYPE="dos"

============================ "mount | grep ^/dev output: ===========================

Device Mount_Point Type Options

aufs / aufs (rw)
/dev/sr0 /cdrom iso9660 (ro,noatime)
/dev/loop0 /rofs squashfs (ro,noatime)


============================= sdb1/grub/grub.cfg: =============================

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
insmod vbe
insmod vga
}

insmod part_msdos
insmod ext2
set root='(hd1,msdos3)'
search --no-floppy --fs-uuid --set d857cb40-1c6b-4858-a7df-eed218ee6958
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set c0ca3abc-4f5f-4b11-ba2f-9aa9ff99dbc6
set locale_dir=($root)/grub/locale
set lang=en
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set c0ca3abc-4f5f-4b11-ba2f-9aa9ff99dbc6
linux /vmlinuz-2.6.35-22-generic root=UUID=d857cb40-1c6b-4858-a7df-eed218ee6958 ro quiet splash
initrd /initrd.img-2.6.35-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set c0ca3abc-4f5f-4b11-ba2f-9aa9ff99dbc6
echo 'Loading Linux 2.6.35-22-generic ...'
linux /vmlinuz-2.6.35-22-generic root=UUID=d857cb40-1c6b-4858-a7df-eed218ee6958 ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.35-22-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set c0ca3abc-4f5f-4b11-ba2f-9aa9ff99dbc6
linux16 /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set c0ca3abc-4f5f-4b11-ba2f-9aa9ff99dbc6
linux16 /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ "x${timeout}" != "x-1" ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

=================== sdb1: Location of files loaded by Grub: ===================


.0GB: grub/core.img
.0GB: grub/grub.cfg
.0GB: initrd.img-2.6.35-22-generic
.0GB: vmlinuz-2.6.35-22-generic

=============================== sdb3/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sdb3 during installation
UUID=d857cb40-1c6b-4858-a7df-eed218ee6958 / ext4 errors=remount-ro 0 1
# /backup was on /dev/sdb4 during installation
UUID=3690625d-e348-4070-94ea-d9bb63ef2cba /backup ext4 defaults 0 2
# /boot was on /dev/sdb1 during installation
UUID=c0ca3abc-4f5f-4b11-ba2f-9aa9ff99dbc6 /boot ext2 defaults 0 2
# /home was on /dev/sda1 during installation
UUID=1272f16f-090d-4e9a-9732-6da644e70509 /home ext4 defaults 0 2
# /spare was on /dev/sdc1 during installation
UUID=c0c9a2ad-0140-431f-88fc-72c926206aa3 /spare ext4 defaults 0 2
# swap was on /dev/sdb2 during installation
UUID=4428a07b-5381-4968-a6ff-4e081207cf5b none swap sw 0 0

=============
one more note:

After installing Ubuntu 10.10 again for the third or fourth time, I am going to abandon the /boot partition on the 2nd drive and move it over to the first drive and let grub-install /dev/sda and see if that works. Right now I get nothing at all, after formatting 3 drives, removing the partition tables completely, using gparted under the live CD to create both the partition tables and partitions (aligned on cylinders) on all 3 drives, running live install, then rebooting.

I really don't know what else to do.

wilee-nilee
October 14th, 2010, 01:08 AM
So it looks like either the script is not reading the HD correctly or your missing some stuff.

Why do you feel that a boot partition is needed, when generally the mbr will take care of that?

website.reader3
October 14th, 2010, 01:24 AM
My previous installations of linux (Open Caldera / Redhat / Centos / OpenSuse) had the devices on separate partitions. On this system, I do have 4 drives.

I do consider this thread closed, since I successfully installed Maverick on sda1 after creating a boot partition for it and grubbed the mbr on the device.

I did have to turn off modeset for the digital monitor (Asus 1080p type) in order to come up to the final GUI.

website.reader3
October 14th, 2010, 05:36 AM
One more thing, now this is occurring - how soon can we see a fix? A GUI is almost mandatory today.

[Ubuntu-x-swat] [Bug 616394] Re: dlopen: /usr/lib/xorg/extra-modules/nvidia_drv.so: undefined symbol: miEmptyData

I tried to build the nvidia driver from scratch, but that still did not fix this.

dabl
October 14th, 2010, 02:37 PM
I use the downloaded proprietary driver from Nvidia. You have to remove the nouveau prior to installing the downloaded driver. Details: http://kubuntuforums.net/forums/index.php?topic=3107406.0

of course "gedit" and "gdm" for Gnome, versus "kate" and "kdm" for KDE.

And I'm sure you know that the kernel module gets built against the running kernel, so a new kernel will not run the proprietary driver until you re-install it on the new kernel.

website.reader3
October 14th, 2010, 06:56 PM
The bug is still current and not fixed by Nvidia yet (not sure if it will ever get fixed) However I did find a work around this morning, I took the xorg.conf file that nividia-xconfig created and just changed one line, the driver line and replaced nvidia by nv.

Voila! Screen resolution is now a stunning 1920x1080, and although not running in the DPMS digital mode, I can live with the vga mode at this resolution.

The real answer is to remove the old old vga standard and replace it with the newer digital HDMI in the bios chip sets (I think you will seen this very soon) and just go with the newer digital flat panels.

Thanks for your posts, I appreciate them

And, btw, the Asus BIOS blocked the boot from the second drive, changing to the first drive enabled a good boot, which is kind of what I expected. No grub can get around that.