Boot Sequence Does Not Complete
Forum: HD Install
Topic: Boot Sequence Does Not Complete
started by: Juanito
Posted by Juanito on Mar. 25 2008,07:21I made a dumb mistake the other day - I added a task to bootlocal.sh with no definate end that was not backgrounded and thus the boot sequence could not complete.
As far as I could tell, the only way to get out of the situation was by using <ctrl-alt-del> which shut down the machine.
All that needed doing to fix the problem was to comment out one line in bootlocal.sh, but...
1. On a frugal-hd-lilo install, I cannot enter "base norestore" at the prompt (because there isn't one) so I was stuck in the loop.
2. After a floppy "fromusb" boot I edited bootlocal.sh in backup.tar.gz using emelFM, but this caused the file to be unreadable on the next frugal-hd-lilo boot
3. After another floppy "fromusb" boot I moved backup.tar.gz, effectively creating a "norestore" situation on the next frugal-hd-lilo boot, but then after manually unpacking and copying a bunch of files from backup.tar.gz I of course missed some...
Apart from not making dumb mistakes in the first place, there has to be a better/smarter/easier way to fix this kind of error - any suggestions for next time would be gratefully received
[NB: frugal-hd-lilo boot = 5mins, floppy "fromusb" boot = 10mins on this machine]
Posted by ^thehatsrule^ on Mar. 25 2008,14:00With Lilo, I think you'd be out of luck unless there is some way of interrupting init with some key codes (ctrl c? which probably won't work) or remoting in perhaps (one reason why I always start sshd)...
For your "fromusb" boot: why not use "fromhd" instead?
Or create your own specific rescue entry in lilo (or on a bootfloppy)...
Or you could use another bootloader (if you can).
Posted by curaga on Mar. 25 2008,14:42Well, I would've used a boot floppy with grub to boot your installation, only with the norestore option.
It is surprisingly handy; and you don't have to include DSL specifically in the menu, just go to the command line and use cat to look at all the options in lilo.conf, then adapt slightly for grub, and boot.
Posted by roberts on Mar. 25 2008,15:45I agree having grub boot floppy is a life saver, a must have tool. It has saved me from my oops many times.
Posted by Juanito on Mar. 27 2008,16:49'made myself a grub boot floppy, but:
- guess which kind of scsi adapter I have
Posted by curaga on Mar. 27 2008,18:05Oh. That clears me wondering why would you use lilo. Well, a boot partition works around that; or using the official DSL grub boot floppy, which includes the kernel and initrd on itself, so grub's limitations don't matter.
Posted by Juanito on Mar. 28 2008,10:05I'm thinking that this should be possible with grub, I've tried grub-0.95, 0.97, 1.91 and legacy (so far I cannot compile grub2) and all seem to be unable to find the boot partition.
I created the grub boot floppy like this:
My lilo conf looks like this:
At the grub boot prompt, I tried this:
- am I making a mistake somewhere?
Posted by ^thehatsrule^ on Mar. 28 2008,14:56If I get what curaga is getting at, the boot partition would be of a small size being the very first (i.e. sdb1) just to hold the kernels and inirtd's so that it may get around size limitations. I'm assuming you're only using the grub floppy disk to install the bootloader here, and not act as a DSL bootfloppy.
Not sure what you really want to do now, but you could also look into rescue disks.
Posted by Juanito on Mar. 28 2008,15:12
- all I want to do is to boot the dsl image on /mnt/sdb3 from a grub boot floppy so that I can pass dsl boot codes to it (eg base norestore) since I cannot from lilo.
I can already use a dsl boot floppy and boot "fromusb" to be able to access the frugal hd install and fix things, but it's very long on this old machine.
Anyway, progress is being made - I managed to compile grub2 (by replacing bison-1.875 in compile-3.3.5 with bison-2.15) and device.map at least mentions /dev/sdb which I never got in grub1.
Posted by curaga on Mar. 28 2008,15:35Oh. I hadn't noticed DSL4 does not have a grub boot floppy. DSL 3 has. One could be manually made..
Posted by curaga on Mar. 28 2008,16:05I made a grub bootfloppy for DSL 4. It's here:
< http://rapidshare.com/files/103060540/grubfloppy.img.html >
For your convenience, I included the aic7xxx scsi module in it
Posted by ^thehatsrule^ on Mar. 28 2008,19:19
I assume you already know the state of grub2 development.
Posted by curaga on Mar. 28 2008,19:58I haven't used lilo at all, but wouldn't a lilo floppy be equally useless as lilo on the HD?
Ie not being able to change options?
Posted by lucky13 on Mar. 28 2008,20:11
You can change lilo.conf, you just have to be able to run lilo to update the changes.
Posted by Juanito on Mar. 29 2008,04:50
- very much a work in progress, the boot floppy acts like grub1...
Posted by Juanito on June 07 2008,06:47Whilst playing around with linux from scratch (promted by curaga mentioning xorg-7.2 in beyond linux from scratch), I finally managed to get grub (grub-0.97) to write to a hd on my ancient scsi hd desktop.
I'd like to set grub up so it boots dsl-3.x from one hd, lfs from the other and dsl-n/dsl-4.x from usb sticks (in the same slot so they'd always be sdc1). So far, I've managed this as a grub menu:
A couple of questions:
1. Do I need to include "ramdisk_size=100000 init=/etc/init" in the dsl-3.x entry?
2. dsl-n will not boot with the error "hd(2,0) does not exist" - I guess this is because /linux first needs to load before it can "see" /dev/sdc1. What's the best way to get around this, copy /linux somewhere on a hd?
Posted by curaga on June 07 2008,14:27- makeactive is not needed
- you do need to include everything that's in DSL isolinux.cfg, including all ramdisk_size etc
edit: unless they wouldn't be needed there either, but that's another thing
About (hd2,0), you sure it's that? Did you see it in grub when typing hd( and tab?
If grub can't see it, the standard policy is indeed copying the kernel and initrd somewhere else. I use this often to boot cd's/usb's on comps that can't do so natively.
PS: Nice to see another LFS convert
Posted by Juanito on June 09 2008,14:32