Telling grub to boot the second primary partition.
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.
Telling grub to boot the second primary partition.
Hi: I have just installed Slackware 14.2 64-bit to this machine, but the installer made a mistake when generating lilo.conf. He put boot=/dev/sda which is one of the USB port. So I edited it and put boot=/dev/mmcblk0 in its place. OK. But I'm running an Arch system, which has no lilo but only grub (or grub 2). So, how can I tell grub to boot the OS in the second partition? I.e. /dev/mmcblk0p2?
Hi: I have just installed Slackware 14.2 64-bit to this machine, but the installer made a mistake when generating lilo.conf. He put boot=/dev/sda which is one of the USB port. So I edited it and put boot=/dev/mmcblk0 in its place. OK. But I'm running an Arch system, which has no lilo but only grub (or grub 2). So, how can I tell grub to boot the OS in the second partition? I.e. /dev/mmcblk0p2?
You don't need to chainload lilo from within GRUB. GRUB can boot any correctly installed GNU/Linux partition directly (with the exception of booting a x64 linux from 32-bit GRUB, if I recall correctly).
Try going into GRUB rescue mode: press 'c' during the boot-up menu. If no menu appears, you have to specify a timeout in the /boot/grub/grub.cfg file.
When inside the rescue prompt, issue command: 'ls', and check if you can find your Slackware boot and root partitions within the list. Then go with, for example: 'set root=(HD0,gpt1)' or 'set root=/dev/sdb1'.
Then find your linux image from within that, and input something like: 'linux /boot/vmlinuz root=/dev/sdb1 ro' and finally run the command: 'boot'. If your /etc/fstab is set up correctly, and with some luck, you should boot into the correct partition.
If this works, just add the correct entries into your grub.cfg file for next time.
I've had a huge amount of trouble with one of those eMMC drives in a laptop. Actually found it impossible to overwrite the recovery partition by any means available to me. If the computer has a SATA, mSATA, or NVMe port, best course might be to just plug in a regular store-bought drive.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.