SueD Posted June 1, 2007 Share Posted June 1, 2007 After I was done the installation, I removed the DVD and rebooted, expecting to see Slackware's bootloader screen. Nuh uh. It went through the boot process then acted like it was looking for a CD. Naturally it didn't find one so I was left with a screen of 99s.And my day was going so well up until this. Right now I'm using PCLos Final as a LiveCD. What did I do wrong this time? Quote Link to comment Share on other sites More sharing options...
Bruno Posted June 1, 2007 Share Posted June 1, 2007 Hi SueWhere did you put the Mandriva bootloader ?? . . . . Did you maybe overwrite the MBR ??Anyway . . . . here is what you do, imagine the Slack / partition is on hdaXIn PCLos ( live ) do: $ su# mkdir /mnt/hdaX# mount /dev/hdaX /mnt/hdaX# chroot /mnt/hdaX# /sbin/lilo# exit# reboot NOTES:1). At the "chroot" command your prompt should change 2). the "/sbin/lilo" command can spit out a few errors . . . don't panic.3). At the "exit" command your prompt should change back4). After the reboot command you should see the Slackware Lilo againB) Bruno Quote Link to comment Share on other sites More sharing options...
SueD Posted June 1, 2007 Author Share Posted June 1, 2007 I put Slack in the MBR and Madriva in its /. That's what I normally do. But if Mandriva had accidentally written over the MBR, wouldn't I still be able to boot into it?Off to do your commands now.Ok, problem right off the bat... [root@localhost guest]# mkdir /mnt/hdb1mkdir: cannot create directory `/mnt/hdb1': File exists Quote Link to comment Share on other sites More sharing options...
Bruno Posted June 1, 2007 Share Posted June 1, 2007 That is okay proceed with the second command ;) Bruno Quote Link to comment Share on other sites More sharing options...
SueD Posted June 1, 2007 Author Share Posted June 1, 2007 Ok, here's everything... [root@localhost guest]# mkdir /mnt/hdb1mkdir: cannot create directory `/mnt/hdb1': File exists[root@localhost guest]# mount /dev/hdb1 /mnt/hdb1[root@localhost guest]# chroot /mnt/hdb1bash: fortune: command not found[root@localhost /]# /sbin/liloWarning: '/proc/partitions' does not exist, disk scan bypassedAdded windowsAdded linux *Added alt_linuxAdded linux-nonfbFatal: Image name, label, or alias is too long: 'vmlinuz-ide_2.4.33.3'Safe to reboot? Quote Link to comment Share on other sites More sharing options...
Bruno Posted June 1, 2007 Share Posted June 1, 2007 Yep looks like it did the trick . . . crossing my fingers ! BrunoPS: A bit worried about "Image name, label, or alias is too long: 'vmlinuz-ide_2.4.33.3' though . . . maybe we have to adapt the lilo.conf . . . or even make a symlink in /boot from vmlinuz-ide_2.4.33.3 to vmlinuz so we can make the "image-name" smaller in the lilo.conf Quote Link to comment Share on other sites More sharing options...
SueD Posted June 1, 2007 Author Share Posted June 1, 2007 Yep looks like it did the trick . . . crossing my fingers ! BrunoPS: A bit worried about "Image name, label, or alias is too long: 'vmlinuz-ide_2.4.33.3' though . . . maybe we have to adapt the lilo.conf . . . or even make a symlink in /boot from vmlinuz-ide_2.4.33.3 to vmlinuz so we can make the "image-name" smaller in the lilo.confIt didn't work. This is the message I get at boot..Searching for Boot Record from CDROM...Not FoundSearching for Boot Record from Floppy...Not FoundSearching for Boot Record from IDE-0...OKThen half a page of 99s. Quote Link to comment Share on other sites More sharing options...
Bruno Posted June 1, 2007 Share Posted June 1, 2007 Okay here is what you do:Boot PCLos . . mount the Slackware partition and look at the /mnt/hdb1/etc/lilo.conf and see what comes after: windows linux * alt_linux linux-nonfbAnd has a long name with 'vmlinuz-ide_2.4.33.3' . . . . as long as it is not Slackware: comment that section out.In case it IS Slackware do: # ln -s /mnt/hdb1/boot/vmlinuz-ide_2.4.33.3 /mnt/hdb1/boot/vmlinuz After that you can change the /etc/lilo.conf and replace the line with 'vmlinuz-ide_2.4.33.3' with 'vmlinuz'After that chroot the partition again and run /sbin/lilo again . . . and don't forget the "exit" and the "reboot" ;)I have to go away for an hour and 30 minutes . . . but will be back after to get you out of this mess ( yes we can !! . . . but with the above instructions you can too ) Bruno Quote Link to comment Share on other sites More sharing options...
SueD Posted June 1, 2007 Author Share Posted June 1, 2007 (edited) (This is more a log of what I'm doing...just ignore)Ok, I didn't find vmlinuz-ide_2.4.33.3 anywhere near Slackware so I've commented that section out. [root@localhost /]# /sbin/liloWarning: '/proc/partitions' does not exist, disk scan bypassedAdded windowsAdded linux *Added alt_linuxDuplicate entry 'label' at or above line 35 in file '/etc/lilo.conf'Rebooting now. Edited June 1, 2007 by SueD Quote Link to comment Share on other sites More sharing options...
V.T. Eric Layton Posted June 1, 2007 Share Posted June 1, 2007 I'd fill in for Bruno while he's gone, Sue, but I don't know anything about LILO or how it works. Quote Link to comment Share on other sites More sharing options...
SueD Posted June 1, 2007 Author Share Posted June 1, 2007 I'd fill in for Bruno while he's gone, Sue, but I don't know anything about LILO or how it works. Thanks Eric. I know you'd help if you could. Quote Link to comment Share on other sites More sharing options...
SueD Posted June 1, 2007 Author Share Posted June 1, 2007 me, i just read and learn...one day i'll be posting helpful thots too... [crowd shudders at that thot!] So you and I will continue reading and reading and....reading some more. Some of it has got to be sinking in by now. Then when we've read half of what we're supposed to, we'll both be throwing those thoughts out to the crowd.Wow, that is scary! Quote Link to comment Share on other sites More sharing options...
Bruno Posted June 1, 2007 Share Posted June 1, 2007 Hi Sue . . can you show me that lilo.conf ?? # cat /mnt/hdb1/etc/lilo.conf# ls -al /mnt/hdb1/boot Bruno Quote Link to comment Share on other sites More sharing options...
SueD Posted June 1, 2007 Author Share Posted June 1, 2007 # cat /mnt/hdb1/etc/lilo.conf# File generated by DrakX/drakboot# WARNING: do not forget to run lilo after modifying this filedefault="linux"boot=/dev/hdamap=/boot/mapinstall=menuvga=773menu-scheme=wb:bw:wb:bwcompactpromptnowarntimeout=1200message=/boot/boot_message.txtother=/dev/hda1 label="windows" table=/dev/hdaimage=/boot/vmlinuz label="linux" root=/dev/hdb1 initrd=/boot/initrd.img append=" resume=/dev/hdb5 splash=silent" vga=788image=/boot/vmlinuz label="alt_linux" root=/dev/hdb1 append=" resume=/dev/hdb5" read-onlyimage=/boot/vmlinuz label="linux-nonfb" root=/dev/hdb1 initrd=/boot/initrd.img append=" resume=/dev/hdb5"image=/boot/vmlinuz-ide_2.4.33.3 label="vmlinuz-ide_2.4.33.3" root=/dev/hdb1 initrd=/boot/initrd-ide-2.4.33.3.img append=" resume=/dev/hdb5 splash=silent" vga=788image=/boot/vmlinuz label="failsafe" root=/dev/hdb1 initrd=/boot/initrd.img append=" failsafe" [root@localhost guest]# ls -al /mnt/hdb1/boottotal 6520drwxr-xr-x 3 root root 4096 Jun 1 16:58 ./drwxr-xr-x 20 root root 4096 Jun 1 07:49 ../-rw-r--r-- 1 root root 512 Jun 1 04:11 boot.0300-rw-r--r-- 1 root root 209 Jun 1 04:11 boot_message.txt-rw-r--r-- 1 root root 41810 Jun 1 04:10 config-rw-r--r-- 1 root root 77460 Mar 23 14:03 config-2.6.17-13mdv-rw-r--r-- 1 root root 41810 Sep 1 2006 config-ide-2.4.33.3-rw-r--r-- 1 root root 5032 Aug 8 2006 diag1.imgdrwxr-xr-x 2 root root 4096 Jun 1 07:51 grub/-rw-r--r-- 1 root root 751222 Jun 1 08:04 initrd-2.6.17-13mdv.img-rw-r--r-- 1 root root 714094 Jun 1 08:04 initrd-ide-2.4.33.3.imglrwxrwxrwx 1 root root 23 Jun 1 08:04 initrd.img -> initrd-2.6.17-13mdv.i mg-rw------- 1 root root 30720 Jun 1 04:11 maplrwxrwxrwx 1 root root 37 Jun 1 03:49 README.initrd -> /usr/doc/mkinitrd- 1.0.1/README.initrd-rw-r--r-- 1 root root 612778 Jun 1 04:10 System.map-rw-r--r-- 1 root root 669593 Mar 23 14:03 System.map-2.6.17-13mdv-rw-r--r-- 1 root root 629105 Sep 1 2006 System.map-ide-2.4.33.3-rw-r--r-- 1 root root 0 Jun 1 08:05 us.kltlrwxrwxrwx 1 root root 20 Jun 1 08:03 vmlinuz -> vmlinuz-2.6.17-13mdv-rw-r--r-- 1 root root 1709352 Mar 23 14:03 vmlinuz-2.6.17-13mdv-rw-r--r-- 1 root root 1313255 Sep 1 2006 vmlinuz-ide-2.4.33.3 Quote Link to comment Share on other sites More sharing options...
Bruno Posted June 1, 2007 Share Posted June 1, 2007 Give me e minute to compose a new lilo.conf . . this one is a bit of a mess Bruno Quote Link to comment Share on other sites More sharing options...
SueD Posted June 1, 2007 Author Share Posted June 1, 2007 Give me e minute to compose a new lilo.conf . . this one is a bit of a mess BrunoA bit?I have my laptop with PCLos Jr up and running so I decided to take a gander at that one. Holy liftin', there's next to nothing in there! Quote Link to comment Share on other sites More sharing options...
Bruno Posted June 1, 2007 Share Posted June 1, 2007 See . . you have in the /boot of Slackware all kind of kernels . . also that one of Mandriva and that makes it complicated . . . but let us try this:Remove the RED partAdd the BLUE part: # WARNING: do not forget to run lilo after modifying this filedefault="linux"boot=/dev/hdamap=/boot/mapinstall=menuvga=773menu-scheme=wb:bw:wb:bwcompactpromptnowarntimeout=1200message=/boot/boot_message.txtother=/dev/hda1 label="windows" table=/dev/hdaimage=/boot/vmlinuz label="linux" root=/dev/hdb1 initrd=/boot/initrd.img append=" resume=/dev/hdb5 splash=silent" vga=788image=/boot/vmlinuz label="alt_linux" root=/dev/hdb1 append=" resume=/dev/hdb5" read-onlyimage=/boot/vmlinuz label="linux-nonfb" root=/dev/hdb1 initrd=/boot/initrd.img append=" resume=/dev/hdb5"image=/boot/vmlinuz-ide_2.4.33.3 label="vmlinuz-ide_2.4.33.3" root=/dev/hdb1 initrd=/boot/initrd-ide-2.4.33.3.img append=" resume=/dev/hdb5 splash=silent" vga=788image=/boot/vmlinuz label="failsafe" root=/dev/hdb1 initrd=/boot/initrd.img append=" failsafe"image=/boot/vmlinuz-ide-2.4.33.3 label="Slackware" root=/dev/hdb1 vga=788read-only And show me the "cat /mnt/hdb1/etc/lilo.conf" again please. Bruno Quote Link to comment Share on other sites More sharing options...
SueD Posted June 1, 2007 Author Share Posted June 1, 2007 And show me the "cat /mnt/hdb1/etc/lilo.conf" again please. BrunoBefore or after I reboot?In the meantime, I'll fix that up. Quote Link to comment Share on other sites More sharing options...
Bruno Posted June 1, 2007 Share Posted June 1, 2007 Before or after I reboot? Before the reboot . . . I want to check if it looks okay before we write it to the MBR Bruno Quote Link to comment Share on other sites More sharing options...
SueD Posted June 1, 2007 Author Share Posted June 1, 2007 [root@localhost guest]# cat /mnt/hdb1/etc/lilo.conf# File generated by DrakX/drakboot# WARNING: do not forget to run lilo after modifying this filedefault="linux"boot=/dev/hdamap=/boot/mapinstall=menuvga=773menu-scheme=wb:bw:wb:bwcompactpromptnowarntimeout=1200message=/boot/boot_message.txtother=/dev/hda1 label="windows" table=/dev/hdaimage=/boot/vmlinuz-ide-2.4.33.3label="Slackware"root=/dev/hdb1vga=788 Quote Link to comment Share on other sites More sharing options...
Bruno Posted June 1, 2007 Share Posted June 1, 2007 Okay now do: # chroot /mnt/hdb1# /sbin/lilo# exit And show me the result before you reboot . . . Bruno Quote Link to comment Share on other sites More sharing options...
SueD Posted June 1, 2007 Author Share Posted June 1, 2007 Ok... [root@localhost guest]# chroot /mnt/hdb1bash: fortune: command not found[root@localhost /]# /sbin/liloWarning: '/proc/partitions' does not exist, disk scan bypassedAdded windowsAdded SlackwareFatal: Default image doesn't exist.[root@localhost /]# exitexit Quote Link to comment Share on other sites More sharing options...
Bruno Posted June 1, 2007 Share Posted June 1, 2007 Sorry I forgot somethingmake that blue section read: image=/boot/vmlinuz-ide-2.4.33.3 label="linux" root=/dev/hdb1 vga=788read-onlyNext run /sbin/lilo againB) Bruno Quote Link to comment Share on other sites More sharing options...
SueD Posted June 1, 2007 Author Share Posted June 1, 2007 No more fatal error. [root@localhost /]# /sbin/liloWarning: '/proc/partitions' does not exist, disk scan bypassedAdded windowsAdded linux *Wish me luck! Quote Link to comment Share on other sites More sharing options...
Bruno Posted June 1, 2007 Share Posted June 1, 2007 Now it will work :DSee you in Slackware. . . . We will add Mandriva laterB) Bruno Quote Link to comment Share on other sites More sharing options...
SueD Posted June 1, 2007 Author Share Posted June 1, 2007 I'm on the laptop right now...not good. Looks like there was an attempted murder happening on my desktop.Kernel panic: Attempted to kill init! Quote Link to comment Share on other sites More sharing options...
Bruno Posted June 1, 2007 Share Posted June 1, 2007 See . . what you did Sue . . was: You copied ALL files from Mandriva spring /boot over to the /boot of Slackware . . and in that process it over-wrote essential files that have the exact same name in the /boot of Slack . . . . . So now your Slackware is killed, missing essential files that got replaced by files that are not Slacks . . . you will have to install it again.Also . . . you will not be able to boot Mandriva at this moment . . . you will have to finish the Slack install first.Now, let us make this deal: you re-install Slackware and wait for me to add the Mandriva stuff . . we will do it together. Is that Okay ?? BrunoPS: To illustrate . . this is what originally is in Slack /boot: lrwxrwxrwx 1 root root 37 2006-10-04 01:07 README.initrd -> /usr/doc/mkinitrd-1.0.1/README.initrd-rw-r--r-- 1 root root 612778 2006-10-04 01:21 System.map-rw-r--r-- 1 root root 629105 2006-09-01 08:51 System.map-ide-2.4.33.3-rw-r--r-- 1 root root 41810 2006-10-04 01:21 config-rw-r--r-- 1 root root 41810 2006-09-01 08:51 config-ide-2.4.33.3-rw-r--r-- 1 root root 5032 2006-08-08 07:34 diag1.img-r-------- 1 root root 1276633 2006-10-04 01:21 vmlinuz-rw-r--r-- 1 root root 1313255 2006-09-01 08:51 vmlinuz-ide-2.4.33.3And this are the files you copied in there . . the double names will replace the slack files with the Mandriva ones: lrwxrwxrwx 1 root root 19 Jun 1 22:47 config -> config-2.6.17-13mdv-rw-r--r-- 1 root root 77460 Mar 23 20:03 config-2.6.17-13mdv-rw-r--r-- 1 root root 528384 May 31 20:05 gfxmenudrwxr-xr-x 2 root root 1024 Jun 1 01:09 grub/-rw-r--r-- 1 root root 745944 May 31 20:05 initrd-2.6.17-13mdv.imglrwxrwxrwx 1 root root 23 May 31 20:04 initrd.img -> initrd-2.6.17-13mdv.imglrwxrwxrwx 1 root root 27 Jun 1 22:47 kernel.h -> /boot/kernel.h-2.6.17-13mdv-rw-r--r-- 1 root root 1493 May 31 20:19 kernel.h-2.6.17-13mdvlrwxrwxrwx 1 root root 23 May 31 20:55 System.map -> System.map-2.6.17-13mdv-rw-r--r-- 1 root root 669593 Mar 23 20:03 System.map-2.6.17-13mdvlrwxrwxrwx 1 root root 20 May 31 20:04 vmlinuz -> vmlinuz-2.6.17-13mdv-rw-r--r-- 1 root root 1709352 Mar 23 20:03 vmlinuz-2.6.17-13mdv Quote Link to comment Share on other sites More sharing options...
SueD Posted June 1, 2007 Author Share Posted June 1, 2007 Sounds like a plan!Thank you Bruno. Without your help, patience and encouragement, I'd probably be rebooting XP for the umpteenth time today. This is more fun. Quote Link to comment Share on other sites More sharing options...
Bruno Posted June 1, 2007 Share Posted June 1, 2007 I am finished for today . . . so take your time on the Slackware install, there is no rush, make it a nice job.Place the Slack lilo in the MBR and you will be able to boot and enjoy / tweak it.Tomorrow we will take it from there. Bruno Quote Link to comment Share on other sites More sharing options...
SueD Posted June 1, 2007 Author Share Posted June 1, 2007 Good night Bruno...sleep well. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.