GRUB slow boot
Hi!
I have Lenovo S10e netbook with 4GB SSD and 160GB SATA disk. SSD had XP preinstalled, so I installed Slack on 15GB partition on SATA disk. Later, I installed Debian on SSD because I don't need Window$ and just wanted more then 4GB for Slack. I'm using Debian's GRUB for booting. The problem is that it boots very slowly. Time needed for GRUB selection screen to show is taking too long. XP used to boot very fast, but now it is taking forever. I don't mind slow booting on desktop, because I don't turn in off very often, but it is important on mobile device to have a reasonable short boot time. I tried to install Slack's LILO, but it didn't went OK. Uncomenting compat option removed long waiting period (the one with dots), but nothing else worked. Framebuffer didn't work, only vga = normal After booting, X could't start in Slackware and Debian didn't work at all, so I reverted back to GRUB. Executing /sbin/lilo gave me this: Code:
Warning: LBA32 addressing assumed Code:
boot = /dev/sdb One of the problems is that Debian is still using old kernel which maps SSD as /dev/hda, while Slack maps it as /dev/sdb and SATA disk is mapped as /dev/sdc. Another issue is that I had to use USB flash drive during installation (no cdrom on netbook), so installation process mapped USB stick as /dev/sda. It was major PITA during installation, I booted from USB several times until I hit right one in menu.lst. I guess I could do the same until I hit right marks in lilo, but there would be still that problem with X. So, is there anything I can do to speed up GRUB? Something like compat in LILO? |
then reinstall grub 2 ... with something like the RIPlinux live cd , has there an option to restore grub2 .
and edit your grub.cfg file from /boot and there where it has the setting of waiting time lower it to like 3 seconds , that's what i did , i only have ubuntu on my machine but need that to boot into another kernel if i want. |
No experience in GRUB. LILO should work.
The framebuffer and X drivers are not inside the boot loaders. It is ridiculous to blame the boot loader for that. If you really want to solve problems, please post your grub menu file. For your hda/sda problem, just use UUID instead of device name. . |
silvyus, I don't use grub2. It's Debian's grub legacy and Slackware also uses 0.97 version. It's not that wait period. As I sad, it is before grub selection screen. Message before that screen is
"Grub loading stage 1.5 grub loading please wait" and is taking about 30 seconds. @guanx Yes, it is ridiculous, but never the less, framebuffer works with grub and not with lilo. It shouldn't be related, but X in Slack doesn't work when it is booted with lilo and works when it is booted with grub. Nothing else is changed. I don't have any explanation for this, hence this thread. :) My menu.lst Code:
default 0 |
Quote:
|
For the Slackware installation, you are using the huge kernel in grub and the generic kernel in lilo. Can you try the huge kernel in lilo?
|
Actually, I don't use either. I use custom one, and huge is there in case something goes wrong with compiling. I copied generic by mistake during editing lilo.conf. It should be huge as well. As you can see, it misses initrd.
Edit: Googling is not helping, but the best guess is that boot hanging has something with boot loader talking with bios. It checks something stupid, and later goes with defaults when it finds nothing. Just how to go straight to that defaults...? |
Somewhat confused now ... Does your system not boot at all or boots but cannot run X? In either case, please record the error message.
You can start with the official 2.6.35.7 kernel. If that works, compile yours. . |
System boots when I use grub. Everything works just fine, except for the long boot time.
When I tried with lilo, X dont work. There is no error message, just "Starting up X11 session manager..." and it repeats after some time "Starting up X11 session manager... Starting up X11 session manager..." and so on. BTW, I just tried UUID. Debian works with it, grub and fstab, but when I change Slack entry in menu.lst in failed to mount root partition. Tells me to use /dev/sdc1 or /dev/sdc2 or... followed by kernel panic. I thought I turned off something important in my custom kernel, but same goes for huge kernel. |
As I asked you to do in my last post, please start with the official 2.6.35.7 kernel. For UUID mount, you need an initrd. Please man mkinitrd.
X may not start if you have an NVIDIA driver, for example, and forgot to recompile it after installing a new kernel. |
I tried with official 2.6.33.4 kernel and I made initrd. I went further this time. UUID is recognized but booting stoped. It asked me if I'm sure it is ext2 fs and then rebooted. Of course it is not. It it ext3, just as loaded module, so I don't know what is the problem this time. Nevermind, UUID is not a big problem as I already installed everything. Boot speed with grub and X with lilo are major issues.
This is netbook, so no nvidia here. Just good open source intel drivers. |
Quote:
Code:
append=" i915.modeset=1" |
The [hs]d[abc] issue is distro init-scripts/udev - blame Pat and the Debian devs. The BIOS (usually) always uses the same order - regardless of what "programming" makes it's way into the init-scripts.
The slow grub is likely a consequence of all this - what you installed to as hd0 is likely to be anywhere but. I prefer to go into command mode at the grub menu and do everything from there - at least that way you can get some idea of what the BIOS is passing to grub when in the actual boot sequence. You can use the "geometry" command to get an idea of what order the disks are presented in - if you feel you want to skip a device (to avoid the probe delay), grub accepts a "hdbias"; see the description for the "root" (sub-)command. |
Quote:
For the video problem, please refer to T3slider's reply. |
Quote:
I generate initrd with: Code:
cd /boot lilo.conf entry for generic Slack kernel: Code:
image = /boot/vmlinuz-generic-smp-2.6.33.4-smp Code:
The superblock could not be read or does not describe a correct ext2 Quote:
Code:
grub> geometry (hd0) Code:
title Debian GNU/Linux, kernel 2.6.26-2-686 |
All times are GMT -5. The time now is 07:06 AM. |