LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-15-2018, 07:28 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,754

Rep: Reputation: 53
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?
 
Old 04-15-2018, 07:49 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,613

Rep: Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458
Take a look at the link below, Arch Linux Forums post 3 which explains how the person posting got it to boot. Has a sample menuentry also.

https://bbs.archlinux.org/viewtopic.php?id=97207
 
Old 04-15-2018, 07:59 PM   #3
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,159

Rep: Reputation: 795Reputation: 795Reputation: 795Reputation: 795Reputation: 795Reputation: 795Reputation: 795
Guys, did you realize the titanic effort made by @STF92 out of love for Slackware?

This guy tries since several weeks to install Slackware in his favorite 4GB partition from that eMMC drive...

Last edited by Darth Vader; 04-15-2018 at 08:08 PM.
 
2 members found this post helpful.
Old 04-16-2018, 12:20 AM   #4
perbh
Member
 
Registered: May 2008
Location: Republic of Texas
Posts: 304

Rep: Reputation: 55
Quote:
Originally Posted by Darth Vader View Post
Guys, did you realize the titanic effort made by @STF92 out of love for Slackware?

This guy tries since several weeks to install Slackware in his favorite 4GB partition from that eMMC drive...
*lol*
 
Old 04-16-2018, 12:52 AM   #5
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1 on Lenovo Thinkpad W520
Posts: 8,195

Rep: Reputation: 2977Reputation: 2977Reputation: 2977Reputation: 2977Reputation: 2977Reputation: 2977Reputation: 2977Reputation: 2977Reputation: 2977Reputation: 2977Reputation: 2977
deleted

Last edited by Didier Spaier; 04-16-2018 at 12:54 AM.
 
Old 04-17-2018, 07:38 PM   #6
rob.rice
Senior Member
 
Registered: Apr 2004
Distribution: slack what ever
Posts: 1,032

Rep: Reputation: 185Reputation: 185
Quote:
Originally Posted by stf92 View Post
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?
RTFM!
https://www.gnu.org/software/grub/gr...mentation.html

Last edited by rob.rice; Yesterday at 01:15 AM.
 
Old 04-17-2018, 11:12 PM   #7
Fat_Elvis
Member
 
Registered: Oct 2016
Distribution: FreeDOS 1.2
Posts: 209

Rep: Reputation: 56
Not very specific, but I'll give it a shot:

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.

Last edited by Fat_Elvis; 04-17-2018 at 11:14 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
An OS only can boot from primary partition? lwhat Linux - General 7 12-14-2009 04:32 PM
/boot partition - necessary to be primary ? Vilius Linux - Software 13 03-18-2009 11:24 AM
Moving primary(boot) partition to another HDD shukuboy Linux - Hardware 3 01-14-2009 11:05 AM
Grub chainloader boots from primary, but NOT from extended, partition PaulFXH Linux - General 3 11-27-2008 09:32 AM
Telling grub which partition should it boot pxumsgdxpcvjm Linux - Newbie 10 01-29-2007 04:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration