LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-10-2019, 07:44 AM   #16
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638

Ok, so you are using a regular BIOS through the "legacy bios" option, which is easier. Also, you have two HD's installed inside the laptop. The SATA port order is as of now unknown. Your disk order is however set in the BIOS at HDD then SSD.

Keep it that way and work with what you have. The problem here is highly likely to be a GRUB issue. First of all GRUB needs to know where it is! And secondly it needs to know the location of the boot disks. So if any of these HD0 and HD1 settings are incorrect, you will get these issues.

This issue would be a whole lot easier to solve with GRUB1 as you could just edit the config file and test with several options and several times with different config file settings. With GRUB2, you cannot rebuild GRUB unless you can boot into the distro which controls GRUB.
Seemingly in your first post GRUB cannot find itself. Later posts grub cannot find your Kernel, and in another post you are getting a Kernel panick.

These problems indicate not only an issue with GRUB and it's settings, but also an issue with the location of /boot. Due to the scope of these issues, I would recommend starting from scratch, if that is something you are willing to do. I assume you want to install your distro on the SSD disk. So before starting, put the SSD disk as the first in the boot order, and then never change it again. This could still be an issue, due to the physical disk location (hd0, hd1 etc). I am no expert on GRUB, but it should not be an issue, as this is most likely determined by the BIOS boot order, but I cannot guarantee that. The physical disk location could also play in here (sata-port1, sata-port2 etc).

1. Set your SSD to the highest boot priority in your BIOS
2. Install whatever distro you want to the SSD
3. Make sure /boot (if seperate) is on HD0 (sda/ssd) or that / is, if you are not using a seperate /boot
4. Install GRUB to MBR on sda (HD0)

5. Grub should also detect any Linux OS installed on sdb in addition to sda.
6. Check your grub config file after installation before rebooting, to see what GRUB chooses as HD0 and HD1 both for GRUB itself and for your distroes
7. Reboot and get GRUB2
8. Boot your distro

If this fails to work, I would recommend taking the Grub1 path as an alternative. Grub1 is more tolerant and easier to configure manually. It does not have all the "automagic" and building it's own scrips from scripts to be able to boot. With Grub1 you can easily change the config file as you please and very easily, to test out different Grub configuration options.

Perhaps also, instead of doing step 1-8 above, you can alternatively install GRUB1 directly, to your HDD MBR without changing the boot order of the disks in the BIOS. This will most likely create a chainload to the bootloader on the SSD which you have already installed, but this one might not work as intended.

PS. I recommend trying this with Manjaro

Last edited by zeebra; 01-10-2019 at 07:53 AM.
 
Old 01-10-2019, 12:53 PM   #17
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 780
Blog Entries: 1

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
I don't use grub, and will not be any help there... however, in both my fstab and my bootloader configurations, I have started using either File System Labels, or UUIDs, in the "root=" sections... this way, I don't have to worry about how the system identifies devices (as /dev/sda or /dev/sdb) -- this especially helps with portable ssds that you want to boot off of, as you don't know how many drives are present in any random machine that you plug your portable ssd into.

You can get the UUID of any file system on any partition, by using command "blkid <partition>", so like "blkid /dev/sda1" would give you the UUID of /dev/sda1. But as UUIDs are long and cryptic and hard to remember, I started using file system labels.

When I create, say an ext4 files system, I give it a label with the -L flag like this : "mkfs.ext4 -L hostnamezroot /dev/sdb1" or whatever partition I want to make an ext4 fs on for my root partition. Then in my bootloader configurations, I can say root=Label=hostnamezroot, which is easy to remember, and will be found. I can also use these labels in fstab. I can also append it to the kernel boot parameters -- I would try that in your case... make sure that you have "boot=yourbootdevice" in your boot parameters, whether you are using /dev/sd#, or root=uuid= or root=label= -- they all work! I'm sure there's a place in grub for boot parameters somewhere.

Furthermore, the linux kernel doesn't need bootloaders anymore. If you can build a kernel, you can specify hostname, rootfs, and path to initrd in the kernel, and bypass all bootloaders.
 
Old 01-22-2019, 11:54 PM   #18
sormazi
LQ Newbie
 
Registered: Jan 2019
Posts: 11

Original Poster
Rep: Reputation: Disabled
It was a simple fix, really. Just swapping out the HDD and the SSD did it. The SSD(where I wanted to install the OS) was sdb, so that was causing the problem. Reinstalling after the swap works perfectly.
 
Old 01-22-2019, 11:57 PM   #19
sormazi
LQ Newbie
 
Registered: Jan 2019
Posts: 11

Original Poster
Rep: Reputation: Disabled
Fixed

It was a simple fix, really. I swapped out the HDD and the SSD. The SSD(where I wanted to install the OS) was sdb which was causing the problem as the system boots sda first. Reinstalled OS after the swap and worked perfectly.
 
Old 01-23-2019, 03:00 PM   #20
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
Wish someone suggested that earlier

Thanks for the update.
 
1 members found this post helpful.
Old 01-24-2019, 02:03 AM   #21
sormazi
LQ Newbie
 
Registered: Jan 2019
Posts: 11

Original Poster
Rep: Reputation: Disabled
Just swapping out the HDD and the SSD solves the problem.
 
  


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
Install Linux in Toshiba u940 series with 32gb ssd and 750gb hdd I would like to have boot code in ssd only cvkchary Linux - Laptop and Netbook 4 08-31-2016 04:26 PM
[SOLVED] I have a SSD a 500GB drive and a 2TB drive and want to move Ubuntu from 500GB to SSD greatormesby Linux - Newbie 12 07-06-2015 09:58 AM
To SSD or not to SSD jlinkels Linux - Hardware 14 10-02-2012 07:36 AM
SSD raid1 vs SSD raid10 advice ? wonker Linux - Hardware 8 05-23-2012 01:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:05 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
Open Source Consulting | Domain Registration