[SOLVED] Installing Slackware 15 (and 14.2), trouble with disks/booting, and kernel panics (and perhaps 'secureboot' issues).
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
From post 53 ( by the op ) it looks like he repartitioned the drive, if he did it for mbr, the second partition table will be there still. Thats why, yes I believe you can use GPT and lilo, but mbr and a left over partition table may be a problem.
OK, so much weirdness follows, but before that, I ran 'parted - l' and got a listing very similar to fdisk -l with three entries: the first my sda1 (single root [and boot] partition with slack installed), the second an empty ntfs data disk left over from the old install (successfully mounted by slackware installer), and the third the usb installer bootdisk.
The first, /dev/sda lists ATA Corsair Neutron (scsi), Partition Type gpt, flags: pmbr_boot, then number, start, end etc. ext4, with name 'LinuxRoot' (that I gave it).
The second, /dev/sdb (an empty ntfs-formatted drive, ssd, not the original windows install drive or partition) is listed as type gpt, with no flags on the drive, but msftdata flag set on the partition.
The third is /dev/sdc, the flash drive boot disk, irrelevant, I would think, to this discussion.
-----
So now the weirdness - after finding the above out, by logging in as root in konsole at the newly-installed kde desktop, and documenting it, I decided to reboot and see if avoiding the kernel panic and getting to the desktop was some kind of fluke, and indeed, I now get kernel panics, and cannot get back to kde (after changing nothing).
So I boot with the flash and get to the beginning of the install process and I say screw it, I'll try grub, so I mount /mnt/sda1 and chroot in and tried to install grub, as per:
I ran grub-install against /dev/sda , and regardless of whether or not I use the --modules=part_gpt option, I get errors about "/proc/devices: fopen failed, no file or [..]" and "warning, this GPT label contains no BIOS Boot partition, embedding will not be possible".
So I said, screw it, and used --force.
Now, I reboot, no usb disk in, and I get a grub prompt, which I have no idea how to use, but no matter which F11 Boot choice I pick with regards to disk, HDD or USB, I get grub controlling the operation, be it to launch the usb installer or the sda1-installed system.
If I pick the usb flash drive with the BIOS drive picker, I get a nice grub menu showing two slack 15.0 options, and I can launch them (but get different console font to previous experience).
However, picking the /dev/sda disk from the BIOS boot menu, leads to the barebones grub prompt, from which I could presumeably launch the supposedly installed kernel. Pressing <up> presents a long list of things too long to fit on one screen and that I cannot scroll back through to examine.
Before installing grub, the one time I successfully accessed the newly-installed OS via usb boot disk, I am pretty sure I used...
boot: huge.s root=/dev/sda1 initrd= ro
... as per the prompt.
It did not work the subsequent time, which makes me wonder about touchy hardware...
That grub howto told this: "If you want to use Grub 2, make sure you have a 'BIOS boot partition' (partition type EF02 in gdisk or cgdisk). This can be anywhere on disk though putting it at the start seems sensible. It is recommended that it be at least 1MiB."
I'm afraid so. lilo fits in a sector but grub2 is larger. I guess it's time to start from the beginning and make two partitions. One little for grub and a large one for linux.
I'm afraid so. lilo fits in a sector but grub2 is larger. I guess it's time to start from the beginning and make two partitions. One little for grub and a large one for linux.
A little GRUB2 partition could be added as well at the end of disk. It's a 10MB partition with the type BIOS Boot.
I thank everyone involved, LuckyCyborg included (a worthy Black Knight along the path, and a spur) - I have a working system.
In the end, the combination of things offered here that lead to success was a) overcoming the red herring of EFI given the previous install, (b) the 'parted' command to ensure the drive is properly seen, (c) the push to give up on lilo, the old faithful, no long trustworthy in these days of future past, (c.2) not depending on elilo, since ultimately the system is in legacy mode and not using efi (d) grub's need to have a little BIOS partition (code EF02) on the drive separate from the main root partition (default linux type), (e) the need to use the --modules=part_gpt flag on grub-install command to support the gpt partitions (which in itself require moving on from the old fdisk/cfdisk tools). (f) Lastly was enabling a provided-but-commented-out option in /etc/default/grub/ config file, GRUB_DISABLE_LINUX_UUID=true
It turns out I have no 'mkbindmounts' command on my system, but it was not needed as long as I had a small BIOS partition for grub to work with.
I now have grub starting nicely straight after boot, and can choose my installed slackware 15.0 OS. For some reason, this time, the default neuveau drivers allow my screen's full resolution, which it did not the one time it freak-booted. The machine is nice and fast. First time I've had access to eight CPU's. KDE on 15.0 works significantly snappier than it did on my previous at-work experiment on older hardware.
So, thanks again, everyone. I greatly appreciate your patience and knowledge.
By the way, mkbindmounts is there when you run the install image, for chrooting to the installed linux. You don't need to chroot if you are already in your system. /sbin/mkbindmounts in the install system:
Code:
#!/bin/bash
# Create bind mounts from / to /mnt for /dev/, /proc, and /sys.
# This may be useful for chrooting to a system partition mounted
# on /mnt (for example to run mkinitrd_command_generator.sh or to
# reinstall boot loaders).
mkdir -p /mnt/{dev,proc,sys}
mount -o bind /dev /mnt/dev
mount -o bind /proc /mnt/proc
mount -o bind /sys /mnt/sys
No problem. I guess you now booted to your new system (with root=/dev/sda2 or similar) and was able to install grub there. I mentioned mkbindmounts when you had booted to the setup image and from there chrooted to the hard drive and got "/proc/devices: fopen failed". That was because you chrooted to a system which had no /proc populated.
If I remember correctly, I zapped the drive, repartioned with the two parts; finished the install up until lilo options, then quit to shell, chrooted, and ran the grub install, calling mkbindmounts said no such executable, so I went on with grub-mkconfig. Then edited the GUID option. No major warnings beyond the 'may need to edit fstab' but that I presume is for modifying a changed system, but I went from scratch.
If I remember correctly, I zapped the drive, repartioned with the two parts; finished the install up until lilo options, then quit to shell, chrooted, and ran the grub install, calling mkbindmounts said no such executable, so I went on with grub-mkconfig. Then edited the GUID option. No major warnings beyond the 'may need to edit fstab' but that I presume is for modifying a changed system, but I went from scratch.
So thanks again.
Please correct me if I have got from this thread the following information wrong:
I should understand that the stock LILO failed to work in you particular computer sporting a motherboard with socket AM3+ and a 8 cores CPU?
BTW, I am very glad that you have sorted the issue. Good job!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.