LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 02-10-2013, 03:53 PM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,613

Rep: Reputation: 47
install grub to a root partition instead of MBR using Live-CD


Hi

Howto install grub to a root partition instead of MBR using Live-CD?
 
Old 02-10-2013, 05:50 PM   #2
odiseo77
Member
 
Registered: Dec 2004
Location: London, UK
Distribution: Debian Sid, OpenSUSE 13.1
Posts: 992

Rep: Reputation: 294Reputation: 294Reputation: 294
First you need to chroot your linux install from the live-cd. Then simply execute grub-install from the chroot environment specifying the partition in which you want to install it to.

Hope this helps.
 
Old 02-11-2013, 06:35 PM   #3
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,822

Rep: Reputation: 748Reputation: 748Reputation: 748Reputation: 748Reputation: 748Reputation: 748Reputation: 748
On the Ubuntu site below, half-way down the page under 'via chroot':

https://help.ubuntu.com/community/Gr...iveCD_terminal

I don't use Debian so am not sure if it has sudo enabled so you may need to revise the commands just logged in as root user. The general process should be the same.

Last edited by yancek; 02-11-2013 at 06:37 PM.
 
Old 03-16-2013, 08:33 AM   #4
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,613

Original Poster
Rep: Reputation: 47
using Live CD:
Code:
# mount /dev/sda2 /mnt 
# grub-install --root-directory=/mnt /dev/sda2 --force
solved this problem!
 
  


Reply

Tags
grub, live-cd, root partition


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
12.4 new install grub 2 boot problem with grub put on it's own partition not on MBR james2b Ubuntu 14 12-07-2012 09:34 AM
grub-install via Live CD to GUID partition woow Linux - Newbie 4 06-28-2011 03:03 PM
cannot install Grub on the linux root partition cccc Debian 3 12-21-2009 09:18 PM
can I build a mbr in a ntfs partition and install grub to it rbees Linux - General 5 02-02-2008 07:22 PM
MBR or root partition? kintaroe Linux - Newbie 3 09-03-2004 10:15 PM


All times are GMT -5. The time now is 11:34 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration