[gentoo-user] Problems moving /boot partiton

2006-04-30 Thread Mark Knecht

Hi,
  I am attempting to move my /boot partition on a specific machine to
make way for a Windows XP dual boot. This machine is the only one with
a graphics adapter that meets the requirements of my son's new game.

  and right now the machine is no longer booting.. Bummer

  OK, so I used to have

/dev/sda1 /boot
/dev/sda2 swap
/dev/sda3 /

and then some higher partitions, and a bunch of unused disk space. To
get ready to add Windows I created two new partitions:

/dev/sda9 /boot
/dev/sda10 swap

First I added the new swap to fstab, rebooted and made sure it was
picked up correctly. I then copied everything in the old boot
/dev/sda1 to the new boot /dev/sda9 and modified the grub.conf file on
the new boot partition to ensure it was getting called with new names
for the boot options after I rebooted. I also attempted to change the
boot options themselves to point at the new boot partition. The old
grub.conf and new grub.conf file examples are shown:

OLD:
title  2.6.16-gentoo-r2
root (hd0,0)
kernel (hd0,0)/boot/bzImage-2.6.16-gentoo-r2 root=/dev/sda3

NEW:

title  New Layot 2.6.16-gentoo-r2
root (hd0,8)
kernel (hd0,8)/boot/bzImage-2.6.16-gentoo-r2 root=/dev/sda3

When this was complete I ran grub using the commands

grub
root (hd0,8)
setup (hd0)
quit

My understand of the above is that the root (hd0,8) says place the
second part of grub on /dev/sda9 (drive 0, partition 8) while the
second says place the first part of grub in the MRB.

I then rebooted:

1) There is a long delay. I then get a message about the kernel file
not being found. Grub drops me into the grub choice screen which is
messed up text.

2) I do see the 'New Layout' names so it does seem to be finding
/dev/sda9 with the new text

3) None of the options work.

  I've now rebooted using the Gentoo 2006.0 install CD. The kernels
are on /dev/sda9 so it seems grub should be able to find them but it
isn't.

  Can anyone suggest what I'm missing here?

thanks,
Mark

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Problems moving /boot partiton

2006-04-30 Thread Farhan Ahmed
Try executing this command from the grub command line:

find /boot/bzImage-2.6.16-gentoo-r2

It'll return the partition where it finds the file.. It should be
something like (ab0,x).. Then as usual enter the grub commands..

root (ab0,x)
setup (ab0)
quit

Hope this helps,
Farhan Ahmed
-- 
Place   :  Bangalore, Karnataka, India
GPG Key :  8BE90E98
WengoPhone ID   :  farhanahmed
IRC Nick:  farhanahmed / farhanahmed06 (irc.freenode.net)


pgpp9KdAyOXlk.pgp
Description: PGP signature


Re: [gentoo-user] Problems moving /boot partiton

2006-04-30 Thread John Jolet

On Sunday 30 April 2006 16:01, Mark Knecht wrote:
 Hi,
I am attempting to move my /boot partition on a specific machine to
 make way for a Windows XP dual boot. This machine is the only one with
 a graphics adapter that meets the requirements of my son's new game.

and right now the machine is no longer booting.. Bummer

OK, so I used to have

 /dev/sda1 /boot
 /dev/sda2 swap
 /dev/sda3 /

 and then some higher partitions, and a bunch of unused disk space. To
 get ready to add Windows I created two new partitions:

 /dev/sda9 /boot
 /dev/sda10 swap

 First I added the new swap to fstab, rebooted and made sure it was
 picked up correctly. I then copied everything in the old boot
 /dev/sda1 to the new boot /dev/sda9 and modified the grub.conf file on
 the new boot partition to ensure it was getting called with new names
 for the boot options after I rebooted. I also attempted to change the
 boot options themselves to point at the new boot partition. The old
 grub.conf and new grub.conf file examples are shown:

 OLD:
 title  2.6.16-gentoo-r2
 root (hd0,0)
 kernel (hd0,0)/boot/bzImage-2.6.16-gentoo-r2 root=/dev/sda3

 NEW:

 title  New Layot 2.6.16-gentoo-r2
 root (hd0,8)
 kernel (hd0,8)/boot/bzImage-2.6.16-gentoo-r2 root=/dev/sda3

 When this was complete I ran grub using the commands

 grub
 root (hd0,8)
 setup (hd0)
 quit

 My understand of the above is that the root (hd0,8) says place the
 second part of grub on /dev/sda9 (drive 0, partition 8) while the
 second says place the first part of grub in the MRB.

 I then rebooted:

 1) There is a long delay. I then get a message about the kernel file
 not being found. Grub drops me into the grub choice screen which is
 messed up text.

 2) I do see the 'New Layout' names so it does seem to be finding
 /dev/sda9 with the new text

 3) None of the options work.

I've now rebooted using the Gentoo 2006.0 install CD. The kernels
 are on /dev/sda9 so it seems grub should be able to find them but it
 isn't.

Can anyone suggest what I'm missing here?

 thanks,
 Mark
at the grub menu, can you get to the grub command line and do 
find /boot/grub/grub.conf?  what drives/partitions does it show that being 
on?

if you set this up right, it should find it on both.  also, remember in fdisk 
to set the /dev/sda9 partion's boot flag.
-- 
John Jolet
Your On-Demand IT Department
512-762-0729
www.jolet.net
[EMAIL PROTECTED]
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Problems moving /boot partiton

2006-04-30 Thread Mark Knecht

On 4/30/06, Farhan Ahmed [EMAIL PROTECTED] wrote:

Try executing this command from the grub command line:

find /boot/bzImage-2.6.16-gentoo-r2

It'll return the partition where it finds the file.. It should be
something like (ab0,x).. Then as usual enter the grub commands..

root (ab0,x)
setup (ab0)
quit

Hope this helps,
Farhan Ahmed


Hi Farhan and John,
  First, thanks for the quick responses.

1) I've booted again from the unversal Install CD. I have two consoles
open - one is in the install environment and the second is in the
chroot'ed environment.

2) In the install environment it tells me that I have /dev/sda3
mounted at /mnt/gentoo and /dev/sda9 mounted at /mnt/gentoo/boot

3) In the chroot'ed environment I run grub and then your find command. It says

Error 15: File not found
grub

4) In the install environment I can see the kernel file at
/mnt/gentoo/boot/bzImage-2.6.16-gentoo-r2

5) In the chroot'ed environment I can see the kernel file at
/boot/bzImage-2.6.16-gentoo-r2

6) I thoought grub supported tab completion but maybe that's only at
boot time. While running grub in a console in the chroot'ed
environment tabs are just moving the cursor to the right.

  Let me know what other info you might need to make another guess.

  Thanks again for your help!

Cheers,
Mark

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Problems moving /boot partiton

2006-04-30 Thread Benno Schulenberg
Mark Knecht wrote:
 5) In the chroot'ed environment I can see the kernel file at
 /boot/bzImage-2.6.16-gentoo-r2

How did you copy sda1 to sda9?  Probably on sda1 there was a 
symlink: boot - /, which you didn't preserve during copying.
Either create this symlink, or remove /boot from
kernel (hd0,8)/boot/bzImage-2.6.16-gentoo-r2.

Benno
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Problems moving /boot partiton

2006-04-30 Thread John Jolet
On Sunday 30 April 2006 16:57, Mark Knecht wrote:
 On 4/30/06, Farhan Ahmed [EMAIL PROTECTED] wrote:
  Try executing this command from the grub command line:
 
  find /boot/bzImage-2.6.16-gentoo-r2
 
  It'll return the partition where it finds the file.. It should be
  something like (ab0,x).. Then as usual enter the grub commands..
 
  root (ab0,x)
  setup (ab0)
  quit
 
  Hope this helps,
  Farhan Ahmed

 Hi Farhan and John,
First, thanks for the quick responses.

 1) I've booted again from the unversal Install CD. I have two consoles
 open - one is in the install environment and the second is in the
 chroot'ed environment.

 2) In the install environment it tells me that I have /dev/sda3
 mounted at /mnt/gentoo and /dev/sda9 mounted at /mnt/gentoo/boot

 3) In the chroot'ed environment I run grub and then your find command. It
 says

 Error 15: File not found
 grub

 4) In the install environment I can see the kernel file at
 /mnt/gentoo/boot/bzImage-2.6.16-gentoo-r2

 5) In the chroot'ed environment I can see the kernel file at
 /boot/bzImage-2.6.16-gentoo-r2

 6) I thoought grub supported tab completion but maybe that's only at
 boot time. While running grub in a console in the chroot'ed
 environment tabs are just moving the cursor to the right.

Let me know what other info you might need to make another guess.

Thanks again for your help!

 Cheers,
 Mark
the find command i meant for you to run was at boot time..hit e when the 
grub menu comes up, then c for command-line

Now, did you get into fdisk and make sure your hda9 had a * in the boot 
column?
-- 
John Jolet
Your On-Demand IT Department
512-762-0729
www.jolet.net
[EMAIL PROTECTED]
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Problems moving /boot partiton

2006-04-30 Thread Mark Knecht

On 4/30/06, Benno Schulenberg [EMAIL PROTECTED] wrote:

Mark Knecht wrote:
 5) In the chroot'ed environment I can see the kernel file at
 /boot/bzImage-2.6.16-gentoo-r2

How did you copy sda1 to sda9?  Probably on sda1 there was a
symlink: boot - /, which you didn't preserve during copying.
Either create this symlink, or remove /boot from
kernel (hd0,8)/boot/bzImage-2.6.16-gentoo-r2.

Benno



Benno,
  Thanks. That seems to have been the problem. I added the symlink in
and the machine booted fine:

lightning ~ # mount /boot/
lightning ~ # df
Filesystem   1K-blocks  Used Available Use% Mounted on
/dev/sda3  9614148   7521752   1604020  83% /
udev513756   304513452   1% /dev
/dev/sda6  3850292   2501984   1152720  69% /usr/src
/dev/sda7 11543016   3460680   7495968  32% /mnt/gentoo32
/dev/sda8 14428928  11624384   2071580  85% /home
shm 513756 0513756   0% /dev/shm
none513756 0513756   0% /tmp/jack
/dev/sda9   101086  8202 87665   9% /boot
lightning ~ #

  Thanks to everyone for all the help.

Cheers,
Mark

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Problems moving /boot partiton

2006-04-30 Thread Richard Fish

On 4/30/06, Mark Knecht [EMAIL PROTECTED] wrote:

When this was complete I ran grub using the commands

grub
root (hd0,8)
setup (hd0)
quit

My understand of the above is that the root (hd0,8) says place the
second part of grub on /dev/sda9 (drive 0, partition 8) while the
second says place the first part of grub in the MRB.


Looks like you solved your problem, but I think I can briefly explain
what the above commands really mean:

root (hd0,8): In this context, this tells grub that it can find the
files required for installation on the first drive, 9th partition. 
This partition should contain [/boot]/grub/stage1 [/boot]/grub/stage2,

[/boot]/grub/grub.conf, and also a stage1_5 for the filesystem.

setup (hd0): This tells grub to install itself onto the first hard
drive.  Normally it writes the stage1 file to the MBR, and the
stage1_5 to the blocks between the MBR and the start of the first
partition.  It also records the size of the stage1_5 and the root
device (hd0,8) in the MBR.

This is done so that at boot, the stage1 is loaded by the BIOS and
begins executing.  That in turn loads the stage1_5 from the known
physical location on the disk, and passes control to the stage1_5
loader.  That in turn looks at the filesystem (since it understands
how to read the filesystem) to load the stage2 and grub.conf files. 
When stage2 is executed, that is when you see the menu appear with the

entries from the grub.conf.

HTH,
-Richard

--
gentoo-user@gentoo.org mailing list