bootflag New Member
 member is offline
![[avatar] [avatar]](http://www.clbb.net/~chris/bf.png)
don't forget to set a boot flag
![[homepage] [homepage]](http://images.proboards.com/new/buttons/www_sm.png) 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.
|
|
|
Richard Elder Member
     member is offline
![[avatar] [avatar]](http://dl.dropbox.com/u/10332409/bender.gif)
Joined: Jan 2011 Gender: Male  Posts: 586 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.
|
SalineOS-1.7, Xfce4.6.2, w/ 3.2.0-0.bpo.4-686-pae; SalineOS-2.0, Xfce4.8, w/ 3.2.0-4-686-pae Fedora-18, Xfce4.10, w/ 3.8.x
|
|
bootflag New Member
 member is offline
![[avatar] [avatar]](http://www.clbb.net/~chris/bf.png)
don't forget to set a boot flag
![[homepage] [homepage]](http://images.proboards.com/new/buttons/www_sm.png) 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.
|
|
|
Anthony Nordquist Administrator
     member is offline
![[homepage] [homepage]](http://images.proboards.com/new/buttons/www_sm.png) Joined: Dec 2010 Gender: Male  Posts: 1,336
|  | 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.
| |
|
fitus New Member
 member is offline
![[avatar] [avatar]](http://www.debian.org/logos/officiallogo-nd-100.jpg)
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
|
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] [avatar]](http://images.proboards.com/avatars/greenhead.gif)
![[homepage] [homepage]](http://images.proboards.com/new/buttons/www_sm.png) Joined: Feb 2011 Gender: Male  Posts: 188 Location: Costa Rica
| |
Anthony Nordquist Administrator
     member is offline
![[homepage] [homepage]](http://images.proboards.com/new/buttons/www_sm.png) Joined: Dec 2010 Gender: Male  Posts: 1,336
|  | 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.
| |
|