Quote:
Originally Posted by yakiza
I have a bootable USB and I know I can format my root partition as I have a different partition for my /Home but id like to salvage my installed applications.
I did try and do $ Huge.s root="/dev/sda2" (sda2) is my slackware partition.
But not sure what to do after that, I suppose I can mount the partition chroot, but then what?
|
The welcome screen of the installer mentions this command to load your Slackware installation on the hard disk:
Code:
huge.s root=/dev/sda1 rdinit= ro
Note the "rdinit= ro" at the end, you do not mention this but you should addd it. Also note that there's a SPACE between "rdinit=" and "ro"!
This will either only work if your installation is not broken, but from what I read it is currently broken.
What I think happened here:
* You have configured a Slackware-current mirror in /etc/slackpkg/mirrors (you do not mention 32bit or 64bit but that did not break your installation)
* You ran "slackpkg update" followed by "slackpkg upgrade-all". This goes against the recommendations for users of slackware-current (you should have run "slackpkg install-new" inbetween to avoid breakage). But this too will probably not have broken your computer this time. Read
https://docs.slackware.com/slackware:current and other documentation to understand the dangers of running -current as a newbie.
* Then you left your elilo configuration un-changed and rebooted.
What happened then:
* The computer booted according to what elilo told it. That is: to boot the older kernel which is present in /boot/efi/EFI/Slackware/ as installed by eliloconfig. This is a "huge" kernel which contains all the modules built-in that are needed to access the root partition (storage and USB hardware drivers, filesystem drivers) but the huge kernel does not contain drivers for keyboards (those are compiled as separate modules).
* The kernel finished booting and then loaded the root filesystem on your harddisk (your actual Slackware installation).
* The Slackware init system starts executing its rc scripts, which enables hardware probes (through UDEV) and then UDEV is supposed to load the kernel modules from /lib/modules/<kernel_version> to activate your computer's hardware like keyboard, network, display, mouse etc.
* UDEV looks in /lib/modules/<
kernel_version> Where 'kernel_version' is the version of that older kernel in /boot/efi/EFI/Slackware but that directory no longer exists... it was replaced by the newer kernel-modules package as /lib/modules/<
new_kernel_version> but that directory does not match the running kernel.
* The result is that your keyboard, mouse, network etc are not working after boot.
Solution: Fix your elilo configuration.
What you need to do:
* Boot from a Slackware installation medium.
* At the root prompt, enter the following commmands to 'chroot' into your Slackware installation:
Code:
mount /dev/sda1 /mnt
mount -o bind /dev /mnt/dev
mount -o bind /proc /mnt/proc
mount -o bind /sys /mnt/sys
chroot /mnt /bin/bash
See also
https://docs.slackware.com/howtos:sl...t_from_media?s[]=mount&s[]=bind&s[]=proc#chrooting
* Inside that chroot, fix your elilo. In your case (you never touched elilo after initial installation and you are not using a generic kernel), the easiest way is to simply run
and follow the prompts.
* Then run "exit" to exit the chroot environment
* Finally reboot, all should be OK now.