[SOLVED] Slackware failed to boot from GRUB due to new ext3
SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Slackware failed to boot from GRUB due to new ext3
Hello guys,
A simple one, but I'm posting because I don't see the forest because of the trees...
So, I've installed a Slackware 13 on the same disk with a Centos (and Freebsd but this doesn't matter too much). As boot loader I use Centos' grub.
My partitions looks like:
Code:
fdisk -l
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 1912 15358108+ 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 1913 2549 5116702+ 83 Linux
Partition 2 does not end on cylinder boundary.
/dev/sda3 * 2550 4461 15358045+ a5 FreeBSD
Partition 3 does not end on cylinder boundary.
/dev/sda4 4462 19457 120455370 5 Extended
Partition 4 does not end on cylinder boundary.
/dev/sda5 4527 10908 51263415 83 Linux
/dev/sda6 4462 4526 522049+ 82 Linux swap / Solaris
/dev/sda7 10909 12820 15358108+ 83 Linux
Partition table entries are not in disk order
So, Slack root is now on sda7.
I modified the grub to include it:
Code:
title Slackware 13.0
root(hd0,6)
kernel /boot/vmlinuz root=/dev/sda7 ro vga=normal
which looks pretty ok to me, If I mount /dev/sda7 manually in centos, I can find the /boot/vmlinuz there.
But, at restart, the well known GRUB error: File not found.
What is wrong here?
Should these messages from fdisk (cylinder boundary, disk order) to have some influence?
Thanks for replies.
Last edited by xcristi; 10-14-2009 at 07:49 AM.
Reason: more specific title
by the following method you can install any number of OS on a single machine, booted with one grub
install lilo to the root partition of slack.
you can do this by running liloconfig as root.
Hint: boot to slackware partition using the install cd
then go back to centos
and add an entry to centos grub-menu.list
like
Quote:
title Slackware 13.0
rootnoverify(hd0,6)
chainloader +1
or for simply testing, from the grub prompt by typing the following commands, in sequece. we can get into slackpartition provided, the lilo is installed to root partition of slackware ie,/dev/sda7 .
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,0)
# kernel /boot/vmlinuz-version ro root=/dev/sda1
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-92.1.22.el5.centos.plus)
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-92.1.22.el5.centos.plus ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.18-92.1.22.el5.centos.plus.img
title CentOS (2.6.18-92.el5)
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-92.el5 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.18-92.el5.img
title FreeBSD 7.2
root (hd0,2,a)
kernel /boot/loader
title Slackware 13.0
root(hd0,6)
kernel /boot/vmlinuz root=/dev/sda7 ro vga=normal
rkrishna, I will try as a last resort the lilo called from grub method, but I don't see why this simple grub call doesn't work.
rkrishna, I will try as a last resort the lilo called from grub method, but I don't see why this simple grub call doesn't work.
is your filesystem ext4 ?
one advantage is you can see the `cool lilo screen' of slackware with slackware boot logo.
i always does this, install the boot managers of various linux to its own root partition and call it from a common grub. so tht individual settings to each will remain untouched and various kernel options will also remain untouched. anyway this worked very well for me
anyway there is nothing wrong in installing lilo to ur root partion of slack, so that you can atleast try from the grub prompt.
- insert the space at root(hd0,6) as catkin correctly pointed to
- changed the /boot/vmlinuz to /boot/vmlinuz-huge-smp-2.6.29.6-smp (this is the default)
Rebooted, and another kind of errors:
Code:
root (hd0,6)
Filesystem type is ext2fs, partition type 0x83
kernel /boot/vmlinuz-huge-smp-2.6.29.6-smp root=/dev/sda7 ro vga=normal
Error 2: Bad file or directory type
Press any key to continue...
I see this issue has some topics about it, so I'll google a little bit for find out more.
rkrishna - even if your solution seems to be one step +, I think it's the best solution in terms of safety. I'll check it later, but for my knowledge, I want to fix the grub too
it seems that "e2fsprogs ≥ 1.40.5 creates ext3 filesystems with 256 byte large inodes by default (in contrast to 128 byte used before), to accommodate for further ext4 related changes... Using any of these new features requires updating the bootsector of your system. Bootsectors written by "grub or earlier versions of "grub-gfxboot" are not able to boot or even access partitions using any of these new features! "
(more here)
Slackware 13 has e2fsprogs 1.41.8.
Using dumpe2fs I find out that:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.