(Solved) Kernel panic at boot from CD to install GRUB.

You have a problem with Salix? Post here and we'll do what we can to help.
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: Kernel panic at boot from CD to install GRUB.

Post by Shador »

globetrotterdk wrote:
Shador wrote:I guess you don't have installed grub2 yet, on your Salix installation on the card?
How could I run this without any errors, and do I need to repeat it?

Code: Select all

grub-install --boot-directory=/mnt/sdc1/boot /dev/sdc
If you called it without errors, you don't need to call it again. Grub should be installed properly then. Just lacking a configuration file and thus menu still.
Image
User avatar
globetrotterdk
Posts: 435
Joined: 26. Oct 2010, 13:57
Location: Denmark

Re: Kernel panic at boot from CD to install GRUB.

Post by globetrotterdk »

Code: Select all

# dhcpcd eth0
and
# slapt-get -u
refuse to work, but Wicd and Gslapt work just fine. Unfortunately, continue getting this error

Code: Select all

# grub-mkconfig -o /boot/grub/grub.cfg
bash: grub-mkconfig: command not found
Weird.
Military justice is to justice what military music is to music. - Groucho Marx
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: Kernel panic at boot from CD to install GRUB.

Post by Shador »

globetrotterdk wrote:

Code: Select all

# grub-mkconfig -o /boot/grub/grub.cfg
bash: grub-mkconfig: command not found
Weird.
Not at all. You need to install grub2 INSIDE the chroot! I.e. on the flash memory card.
globetrotterdk wrote:

Code: Select all

# dhcpcd eth0
and
# slapt-get -u
refuse to work, but Wicd and Gslapt work just fine. Unfortunately, continue getting this error
Error messages? Output? (dhcpcd eth0 only works for WIRED ethernet (with DHCP) as I mentioned and only if eth0 is the name of your network interface)
Alternatively you can download grub2 and its dependencies put the packages into the root of the flash memory card and use spkg -i to install them.
Image
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Kernel panic at boot from CD to install GRUB.

Post by mimosa »

If you are connected, slapt-get -u should work. If I understand correctly, the sticking point is installing grub2. You could download the package on another machine (and those of any deps) and transfer them on a memory stick. That's rather cumbersome though. I don't understand why your internet connection is giving you trouble, even wired ... or is that, in the dim mists of time, the original problem you're trying to solve?

To connect manually according to Shador's instructions, check it really is eth0 you want. In fact if it isn't, that might explain any trouble with wicd, too:

Code: Select all

#ifconfig
EDIT

If gslapt works, just use it to install Grub2 and you're away!
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: Kernel panic at boot from CD to install GRUB.

Post by Shador »

mimosa wrote: If gslapt works, just use it to install Grub2 and you're away!
Gslapt is on the LiveCD outside of the chroot. So it's possible to install grub2 like that, but that won't install it inside the chroot! We're talking about two separate systems here! Anything that isn't run from that one window where you entered chroot ... is actually happening on the Live system and not on the installation on the flash memory card and thus useless here!
If you're not keeping to my instructions and their inherent assumptions, it's hard to help you. Actually you don't even tell me what you do and what you've already done, so unsurprisingly not every of my suggestions worked and it's a lot of guesswork. Like I was assuming you already had installed grub2 on the flash card system by lack of information otherwise.
Actually by a higher degree of interactivity or if I did this myself, this should be a matter of minutes. But I can't create a step-to-step guide without assumptions (like wired ethernet) because there would be far too many branches.

I can't provide you with a step-to-step guide as that would require me to do or at least have done exactly this setup once (not very portable either). But I'm in doubt whether that would help you either.
Image
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Kernel panic at boot from CD to install GRUB.

Post by mimosa »

@Shador

Just pointing out that last post was me not Globetrotter! Right so Gslapt doesn't have the flexibility needed here. But in any case, if it is working, so should slapt-get. Or else fix internet as described above.

As you say none of this is really that complex but it is hard at a remove. :)
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: Kernel panic at boot from CD to install GRUB.

Post by Shador »

mimosa wrote:Right so Gslapt doesn't have the flexibility needed here.
No the problem is just that you have to bring up networking separately in a chroot or you copy /etc/resolv.conf from outside the chroot into e.g. /mnt/sdc1/etc/resolv.conf.
Image
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Kernel panic at boot from CD to install GRUB.

Post by mimosa »

If I understand what's going on at Globetrotter's end, the chroot is inside a terminal. So the graphical package manager isn't the right tool. But even the command line one isn't working, because the network needs to be set up separately inthe chroot, as you say. Maybe it actually would be easier to transfer the package and deps from elsewhere!

#slapt-get -d grub2

... should place the package for grub2 in /var/slapt-get/salix/a

I don't know about any deps because on my system there were apparently none; however when I then installed it, os-prober and sg2conf were mentioned as "suggested". I'd try without first.
User avatar
globetrotterdk
Posts: 435
Joined: 26. Oct 2010, 13:57
Location: Denmark

Re: Kernel panic at boot from CD to install GRUB.

Post by globetrotterdk »

Shador wrote:
globetrotterdk wrote:

Code: Select all

# grub-mkconfig -o /boot/grub/grub.cfg
bash: grub-mkconfig: command not found
Weird.
Not at all. You need to install grub2 INSIDE the chroot! I.e. on the flash memory card.
I used the the --boot directory option, so it is strange that the above command didn't work.
Shador wrote:
globetrotterdk wrote:

Code: Select all

# dhcpcd eth0
and
# slapt-get -u
refuse to work, but Wicd and Gslapt work just fine. Unfortunately, continue getting this error
Error messages? Output? (dhcpcd eth0 only works for WIRED ethernet (with DHCP) as I mentioned and only if eth0 is the name of your network interface)
Alternatively you can download grub2 and its dependencies put the packages into the root of the flash memory card and use spkg -i to install them.
This bit seems to be working for the moment, but it is extremely odd that it was possible to get the wired network functioning and update slapt-get through the gui, but not the command line. At this time, both work.
Military justice is to justice what military music is to music. - Groucho Marx
User avatar
globetrotterdk
Posts: 435
Joined: 26. Oct 2010, 13:57
Location: Denmark

Re: Kernel panic at boot from CD to install GRUB.

Post by globetrotterdk »

Actually, the problem seems to be connected with chroot

Code: Select all

# dhcpcd eth0
dhcpcd[3298]: version 5.2.12 starting
dhcpcd[3298]: eth0: broadcasting for a lease
dhcpcd[3298]: timed out
dhcpcd[3298]: allowing 8 seconds for IPv4LL timeout
dhcpcd[3298]: eth0: probing for an IPv4LL address
dhcpcd[3298]: eth0: checking for 169.254.164.94
dhcpcd[3298]: eth0: using IPv4LL address 169.254.164.94
dhcpcd[3298]: forked to background, child pid 3339
root[one]# slapt-get -u
Retrieving package data [http://salix.enialis.net/i486/slackware-13.37/]...Done
Retrieving patch list [http://salix.enialis.net/i486/slackware-13.37/]...Done
Retrieving checksum list [http://salix.enialis.net/i486/slackware-13.37/]...Done
Retrieving checksum signature [http://salix.enialis.net/i486/slackware-13.37/]...Done
Verifying checksum signature [http://salix.enialis.net/i486/slackware-13.37/]...No key for verification
Retrieving ChangeLog.txt [http://salix.enialis.net/i486/slackware-13.37/]...Done
Reading Package Lists...Done
Retrieving package data [http://salix.enialis.net/i486/slackware-13.37/extra/]...Done
Retrieving patch list [http://salix.enialis.net/i486/slackware-13.37/extra/]... Done
Retrieving checksum list [http://salix.enialis.net/i486/slackware-13.37/extra/]...Done
Retrieving checksum signature [http://salix.enialis.net/i486/slackware-13.37/extra/]...Done
Verifying checksum signature [http://salix.enialis.net/i486/slackware-13.37/extra/]...No key for verification
Retrieving ChangeLog.txt [http://salix.enialis.net/i486/slackware-13.37/extra/]...Done
Reading Package Lists...Done
Retrieving package data [http://salix.enialis.net/i486/13.37/]...Done
Retrieving patch list [http://salix.enialis.net/i486/13.37/]...Done
Retrieving checksum list [http://salix.enialis.net/i486/13.37/]...Done
Retrieving checksum signature [http://salix.enialis.net/i486/13.37/]...Done
Verifying checksum signature [http://salix.enialis.net/i486/13.37/]...No key for verification
Retrieving ChangeLog.txt [http://salix.enialis.net/i486/13.37/]...Done
Reading Package Lists...Done
root[one]# mkdir /mnt/sdc1
root[one]# mkdir /mnt/proc
root[one]# mkdir /mnt/sys
root[one]# mkdir /mnt/dev
root[one]# mount --bind /proc /mnt/proc
root[one]# mount --bind /sys /mnt/sys
root[one]# mount --bind /dev /mnt/dev
root[one]# mount /dev/sdc1 /mnt/sdc1
root[one]# chroot /mnt/sdc1
root[/]# slapt-get -u
Retrieving package data [http://salix.enialis.net/i486/slackware-13.37/]...Failed to download: Couldn't resolve host name
Retrieving package data [http://salix.enialis.net/i486/slackware-13.37/extra/]...Failed to download: Couldn't resolve host name
Retrieving package data [http://salix.enialis.net/i486/13.37/]...Failed to download: Couldn't resolve host name
Sources failed to download, correct sources and rerun --update
Military justice is to justice what military music is to music. - Groucho Marx
Post Reply