LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 04-06-2012, 11:22 AM   #1
jpr123
LQ Newbie
 
Registered: Aug 2009
Posts: 13

Rep: Reputation: 0
Installing GRUB2 to a dedicated partition


Hi all,

I want to install Grub2 to a dedicated partition - sda6
Grub2 will go to sda6 partition boot sector.
Grub2 files will also be in sda6
MBR will be unchanged.
I will chainload Grub2 from the Windows XP boot manager.

I will be installing from a Parted Magic Live CD (February 2012).

Which of the following are the right commands to use?

1. Found this one on the web, slightly changed. Not sure about the '/dev' usage.
Code:
mkdir /mnt/sda6/boot
mount /dev/sda6 /mnt/sda6
mount --bind /dev /mnt/sda6/dev
grub-install --boot-directory=/mnt/sda6/boot --force /dev/sda6
2.
Code:
mkdir /mnt/sda6/boot
mount /dev/sda6 /mnt/sda6
grub-install --boot-directory=/mnt/sda6/boot /dev/sda6
3.
Code:
grub-install /dev/sda6
Thanks.
 
Old 04-06-2012, 12:24 PM   #2
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
using thw live cd and from terminal #2 should work fine.
Quote:
mkdir /mnt/sda6/boot
mount /dev/sda6 /mnt/sda6
grub-install --boot-directory=/mnt/sda6/boot /dev/sda6
You will still need to create a grub.cfg file or boot from the grub prompt.
 
Old 04-08-2012, 10:44 PM   #3
jpr123
LQ Newbie
 
Registered: Aug 2009
Posts: 13

Original Poster
Rep: Reputation: 0
Unfortunately it did not work.
Code:
root@PartedMagic:~# mkdir /media/sda6
root@PartedMagic:~# mount /dev/sda6 /media/sda6
root@PartedMagic:~# mkdir /media/sda6/boot
root@PartedMagic:~# grub-install --boot-directory=/media/sda6/boot /dev/sda6
/usr/sbin/grub-setup: warn: Attempting to install GRUB to a partitionless disk or to a partition.  This is a BAD idea..
/usr/sbin/grub-setup: warn: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and their use is discouraged..
/usr/sbin/grub-setup: error: will not proceed with blocklists.
Code:
root@PartedMagic:~# grub-mkconfig -o /media/sda6/boot/grub/grub.cfg
/usr/sbin/grub-probe: error: cannot stat `aufs'.
Code:
root@PartedMagic:~# grub-install --version
grub-install (GRUB) 1.99
 
Old 04-09-2012, 03:56 AM   #4
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
You need to have a mbr of a h/d point to the grub particion.

grub-install --root-directory=/media/sda6/boot /dev/sda
 
  


Reply

Tags
boot, grub2, windows xp


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
grub2: Skipping one partition from OS detection eantoranz Linux - Software 11 09-04-2012 03:16 AM
[SOLVED] Installing GRUB2 On Its Own Partition golmschenk Linux - Newbie 5 01-30-2012 10:20 PM
Install grub2 in partition is possible? miros84 Linux - Software 1 11-14-2010 01:59 PM
create a dedicated /boot partition after install dibblethewrecke Linux - Software 7 06-23-2004 07:34 AM
Swap - is it still best to use a dedicated partition? ericcarlson Linux - Software 5 01-22-2002 05:31 AM


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