Forum
« how doI re-install grub2 »

Welcome Guest. Please Login or Register.
May 25, 2013, 2:01am



Return to or visit the SalineOS webpage

Forum :: General :: Installation and Setup Support :: how doI re-install grub2
   [Search This Thread] [Share Topic] [Print]
 AuthorTopic: how doI re-install grub2 (Read 717 times)
bootflag
New Member
*
member is offline

[avatar]

don't forget to set a boot flag


[homepage]

Joined: Apr 2011
Gender: Male
Posts: 27
Location: Columbia River Gorge
 how doI re-install grub2
« Thread Started on Apr 8, 2011, 9:45pm »

I want to dual boot with another boot loader, but need to install saline grub to its own partition. It is currently installed to the MBR.

They way I remember is
Code:
sudo grub-install /dev/sda3

but that doesn't work with grub2.
Link to Post - Back to Top  IP: Logged

deb http://ftp.us.debian.org/debian/ testing main contrib non-free
AMD64
Intel® Desktop Board D510MO
With integrated Intel® Atom™ processor D510
GeForce 6200
Richard
Elder Member
*****
member is offline

[avatar]



Joined: Jan 2011
Gender: Male
Posts: 598
Location: Venezuela
 Re: how doI re-install grub2
« Reply #1 on Apr 8, 2011, 10:36pm »

6. Reinstall grub 2: (mount root-directory if not mounted) [# update-grub afterwards]
# mkdir /mnt/sda1 && mount /dev/sda1 /mnt/sda1 # replace sda1 with your partition nº
# grub-install --root-directory=/mnt/sda1 /dev/sda
OR =/ /dev/sda if installing to the active distro.

or use chroot:
# mount --bind /proc /mnt/sda1/proc
# mount --bind /dev /mnt/sda1/dev
# mount --bind /sys /mnt/sda1/sys
# chroot /mnt/sda1
# update-grub
# umount /mnt/sda1/sys && umount /mnt/sda1/dev && umount /mnt/sda1/proc

Never used the chroot much but the grub-install works fine.
« Last Edit: Apr 8, 2011, 10:38pm by Richard »Link to Post - Back to Top  IP: Logged

SalineOS-2.0, Xfce4.8, w/3.2.0-4-686-pae
SalineOS-1.7, Xfce4.6.2, w/3.2.0-0.bpo.4-686-pae;
LinuxMint-14, Xfce4.10, w/3.5.0-17-generic
bootflag
New Member
*
member is offline

[avatar]

don't forget to set a boot flag


[homepage]

Joined: Apr 2011
Gender: Male
Posts: 27
Location: Columbia River Gorge
 Re: how doI re-install grub2
« Reply #2 on Apr 8, 2011, 11:19pm »

Thanks Richard. I got an "Installation successful" output, using the first method.
Link to Post - Back to Top  IP: Logged

deb http://ftp.us.debian.org/debian/ testing main contrib non-free
AMD64
Intel® Desktop Board D510MO
With integrated Intel® Atom™ processor D510
GeForce 6200
Anthony Nordquist
Administrator
*****
member is offline




[homepage]

Joined: Dec 2010
Gender: Male
Posts: 1,339
 Re: how doI re-install grub2
« Reply #3 on Apr 9, 2011, 3:50am »

I would like to add for anyone who comes across this, that the easiest way to install grub2 to root is to use the Remastersys Grub Restore under Applications > System. It basically does all the above for you, this is the same method the installer uses to install Grub2 in the first place.
« Last Edit: Apr 9, 2011, 3:51am by Anthony Nordquist »Link to Post - Back to Top  IP: Logged
fitus
New Member
*
member is offline

[avatar]

There is nothing like ~



Joined: Jan 2011
Gender: Male
Posts: 33
 Re: how doI re-install grub2
« Reply #4 on Apr 11, 2011, 4:00pm »


Quote:
I would like to add for anyone who comes across this, that the easiest way to install grub2 to root is to use the Remastersys Grub Restore under Applications > System. It basically does all the above for you, this is the same method the installer uses to install Grub2 in the first place.


I strongly recommend using the remastersys grub restore, when anyone has a grub problem, being a distro tester, I tend to test every single distro I see on distrowatch and as you have guess I mess my grub a lot sometimes I do it on purpose and sometimes the installers don't do what I tell them to do, and when that happens I just boot my salineos remaster and fix it with it.
Fitus
Link to Post - Back to Top  IP: Logged

There is nothing like ~
Arch | Debian | Bsd | Salineos
Intel Core i7-970 CPU, 12GB DDR3-PC1600 RAM, NVIDIA GTX570 1.2GB Video, GigaByte X58 USB3 & SATA-III MB, Kingston 30GB SSD, 1TB SATA-III 7200 RPM HD, Samsung 12X Blu-Ray Combo Drive, Azza Hurrican 2000 Case
" The perfect game machine "
murdock
Full Member
***
member is offline

[avatar]


[homepage]

Joined: Feb 2011
Gender: Male
Posts: 188
Location: Costa Rica
 Re: how doI re-install grub2
« Reply #5 on Apr 13, 2011, 1:02pm »

http://www.youtube.com/watch?v=gl8mfpZuDiM&feature=related
« Last Edit: Apr 13, 2011, 1:03pm by murdock »Link to Post - Back to Top  IP: Logged

No Artificial Ingredients
www.arenalbotanicalgarden.com
Skype : arenalgarden.
Anthony Nordquist
Administrator
*****
member is offline




[homepage]

Joined: Dec 2010
Gender: Male
Posts: 1,339
 Re: how doI re-install grub2
« Reply #6 on Apr 13, 2011, 1:32pm »

That video is well worth watching, though you should use the Remastersys grub restore utility to fix your grub install with SalineOS.
Link to Post - Back to Top  IP: Logged
   [Search This Thread] [Share Topic] [Print]



Anthony Nordquist, on behalf of the SalineOS project, is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com. As such, if you click the above banner and then make any purchase including digital downloads, a small percentage will be paid to the SalineOS project.
Click Here To Make This Board Ad-Free


This Board Hosted For FREE By ProBoards
Get Your Own Free Message Boards & Free Forums!
Terms of Service | Privacy Policy | Notice | FTC Disclosure | Report Abuse | Mobile