LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-24-2017, 11:47 PM   #1
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
A Question about Grub


I have a custom built Intel 64-bit desktop with 3 HDD's.

Voyager Linux is installed to the first HDD, a SSD /dev/sda which I want to replace with Zenwalk.

The second HDD, a WD /dev/sdb is Elementary OS that has Grub installed to the MBR and...
The third HDD, a Hitachi /dev/sdc is Gecko Linux which also has Grub installed to the MBR.

Zenwalk comes with the LILO Bootloader so during the install I plan to tell the installer "NOT" to install LILO.

When I reboot after the fresh install will I still have Grub?
 
Old 07-25-2017, 02:51 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,842

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
if MBR is installed into /dev/sdb and/or /dev/sdc they will remain intact. You can install Zenwalk onto /dev/sda with or without lilo, but finally you need to boot from /dev/sdb (or /dev/sdc). And obviously you need to update grub to recognize the OS on /dev/sda.
 
Old 07-25-2017, 03:38 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Try it and see.
If you mess it up, chroot in and fix it.
 
Old 07-25-2017, 07:20 AM   #4
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
Could also install grub to mbr of sda from the distro that you want to control booting before replacing with zenwalk.

Last edited by colorpurple21859; 07-26-2017 at 09:29 AM.
 
Old 07-25-2017, 08:13 PM   #5
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by pan64 View Post
if MBR is installed into /dev/sdb and/or /dev/sdc they will remain intact. You can install Zenwalk onto /dev/sda with or without lilo, but finally you need to boot from /dev/sdb (or /dev/sdc). And obviously you need to update grub to recognize the OS on /dev/sda.
Thanks pan64. I'll boot into the distribution that is on /dev/sdb and update grub that way.

I'll let you know how the install goes in a few days.
 
Old 07-25-2017, 08:15 PM   #6
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by colorpurple21859 View Post
Could also install grub to mbr of sda1 from the distro that you want to control booting before replacing with zenwalk.
Thanks collorpurple21859-

I would have to use a Live Linux CD to install grub to sda right?
 
Old 07-26-2017, 09:27 AM   #7
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
Quote:
I would have to use a Live Linux CD to install grub to sda right?
No just boot into your Elementary Os and run
Code:
grub-install /dev/sda
before you start the install of Zenwalk

Last edited by colorpurple21859; 07-26-2017 at 09:28 AM.
 
1 members found this post helpful.
Old 07-26-2017, 11:17 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,842

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
I do not understand you. You have already installed grub:
Quote:
The second HDD, a WD /dev/sdb is Elementary OS that has Grub installed to the MBR and...
That is fine. You install your Zenwalk onto /dev/sda, boot from the second disk and update grub to recognize this new os. That's all.
 
1 members found this post helpful.
Old 07-26-2017, 08:25 PM   #9
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by colorpurple21859 View Post
No just boot into your Elementary Os and run
Code:
grub-install /dev/sda
before you start the install of Zenwalk
Got it; thanks!-
 
Old 07-31-2017, 05:55 PM   #10
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
grub rescue

After installing Zenwalk and a reboot I do not have Grub.
All I have is a black screen with the grub rescue prompt.

I tried using a Live Linux Mint CD to install grub but it failed.
I got can't find /dev/sdc2/mnt in /etc/fstab or /etc/mtab.

How do I install Grub while at the grub rescue prompt?

Last edited by Ztcoracat; 07-31-2017 at 06:18 PM.
 
Old 07-31-2017, 07:47 PM   #11
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
this tell you how: https://www.howtoforge.com/tutorial/...h-grub-rescue/
 
Old 07-31-2017, 08:04 PM   #12
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by colorpurple21859 View Post
When I type ls it shows me (hd0) (hdo,msdos) (hdo,msdos1) (hd1) (hd1,msdos2) (hd1,msdos1) (hd2) (hd2,msdos2) (hd2,msdos1).

How do I know which one is the new Zenwalk install on /dev/sdc?
 
Old 07-31-2017, 08:27 PM   #13
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
Unless you installed grub when you install zenwalk, then you would want to find the partition that has elementary on it.
what you will need to do is find out which partition has /boot/grub/grub.cfg on it. May be able to do it with something like
Code:
ls (hd1,2)/boot/grub
 
Old 07-31-2017, 08:52 PM   #14
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by colorpurple21859 View Post
Unless you installed grub when you install zenwalk, then you would want to find the partition that has elementary on it.
what you will need to do is find out which partition has /boot/grub/grub.cfg on it. May be able to do it with something like
Code:
ls (hd1,2)/boot/grub
I typed 'set' in grub rescue mode and it told me this:
Code:
prefix=(hdo,msdos1)/boot/grub
Now I should be able to set prefix=(hdo,msdos1)/boot/grub than run these next 2 commands to get grub back right?
 
Old 07-31-2017, 08:59 PM   #15
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
Quote:
I typed 'set' in grub rescue mode and it told me this:
Code:

prefix=(hdo,msdos1)/boot/grub
That is where grub bootloader is looking for the /boot/grub files, first drive first partition. If grub files are on the second drive first partion then it would be
Code:
set prefix=(hd1,msdos1)/boot/grub
grub2 counts drives from 0 and partitions from 1b

grub-rescue means that what the prefix is set to doesn't have the grub files needed to continue the loading of grub.

Last edited by colorpurple21859; 07-31-2017 at 09:12 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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
Grub Question: How does the( find /boot/grub/stage1) command work? theKbStockpiler Linux - General 1 08-09-2011 10:37 PM
GRUB question. I want to delete the partition of the distro that installed GRUB... brjoon1021 Linux - General 2 09-29-2009 11:14 AM
Two things: (Probably Simple) Grub question, and a gDesklets question Wilffo Linux - Software 3 05-20-2006 01:33 PM
Not your regular GRUB question - just a short question for a fried MBR!! ziphem Linux - General 3 01-31-2005 01:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:58 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