LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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: 4,442

Rep: Reputation: 76
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: Slackware, Ubuntu, PCLinux,
Posts: 10,510

Rep: Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491
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,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
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: 393

Rep: Reputation: 81
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-15.0
Posts: 11,058

Rep: Reputation: Disabled
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,076

Rep: Reputation: 205Reputation: 205Reputation: 205
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; 04-18-2018 at 01:15 AM.
 
Old 04-17-2018, 11:12 PM   #7
Fat_Elvis
Member
 
Registered: Oct 2016
Distribution: FreeDOS 1.2
Posts: 309

Rep: Reputation: 92
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



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:01 AM.

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
Open Source Consulting | Domain Registration