Clone redhat 9 to larger disk; part 3, Eureka!

From: Ohmster (notareal_at_emailaddress.com)
Date: 04/11/05


Date: Mon, 11 Apr 2005 02:54:27 GMT


[posted and mailed]

Okay for anyone following the "Clone redhat 9 to larger disk" saga, here
is the latest info...

...it is finished and working now!

I have the new 80Gb drive installed in the machine, used Ghost 8.0 to
copy the 27Gb original hard drive to the new 80Gb hard drive. The drive
appeared to copy successfully, however, grub would not boot the drive.

I started the machine with a knoppix live CD, used Alt-F1 to get out of
the graphical mode (Could not get back in again afterwards, not even with
Alt-F7), made a directory in /mnt called realroot...

cd /mnt
mkdir realroot

Mounted the new hard drive root partition at /mnt/realroot...

mount /dev/hda2 /mnt/realroot

chrooted the mounted drive partition...

chroot /mnt/realroot

Got my strange root prompt, changed directory to /sbin...

cd /sbin

Ran the grub console...

./grub

Told grub where to find the kernel...

root (hd0,0)

Got back the ok filesystem type response...

"Filesystem type is ext2fs, partition type 0x83"

Told grub to install and setup...

setup (hd0)

...and kept my fingers crossed. It appeared to work! Quit the grub
console...

quit

Exited my chroot shell...

exit

Unmounted my hard disk partition...

umount /mnt/realroot

Halted the system...

halt

Took out the knoppix CD, closed the CD drawer, the unit powered down. I
turned it back on, keeping fingers crossed. Holy Crap, not only did it
boot, but I had my old grub menu back, complete with splash image and
both installed kernels! Wow, that really was not that hard at all.

Put the covers back on the computer and slid it back into place between
my wife and my desks. Here are the results...

Before the /home and / drives...

[ohmster@ohmster ohmster]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 27G 22G 4.2G 84% /
/dev/hda1 99M 15M 80M 15% /boot
/dev/hdb1 28G 18G 8.8G 67% /home
none 756M 1.4M 755M 1% /dev/shm
//missy/ohmster_music 74G 43G 31G 59% /mnt/ohmster_music
//cindy/cindy_music 26G 17G 9.3G 64% /mnt/cindy_music
[ohmster@ohmster ohmster]$

After the new drives...

[ohmster@ohmster ohmster]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 73G 22G 48G 31% /
/dev/hda1 99M 15M 80M 15% /boot
/dev/hdb1 74G 18G 53G 26% /home
none 756M 0 756M 0% /dev/shm
//missy/ohmster_music 74G 43G 31G 59% /mnt/ohmster_music
//cindy/cindy_music 26G 17G 9.2G 64% /mnt/cindy_music
[ohmster@ohmster ohmster]$

I am so happy that I could just crap. :)

Have to say thank you to everyone that tried to and did help very much.
Special thanks to Jason L. Woodruff who wrote this very informative
redhat disk copy HOWTO:
http://home.centurytel.net/jlw-tech/copy.htm

I already had the disk copied with Ghost, just needed to know what to do
about grub, that page gave me all I needed. Grub is pretty scary if you
never have messed with it before, lot of finger crossing here but it was
not that bad, not that bad, after all.

Cheers Maties!

-- 
~Ohmster
ohmster at newsguy dot com


Relevant Pages

  • Clone redhat 9 to larger disk; part 3, Eureka!
    ... Ran the grub console... ... Unmounted my hard disk partition... ... [ohmster@ohmster ohmster]$ df -h ... After the new drives... ...
    (linux.redhat)
  • Clone redhat 9 to larger disk; part 3, Eureka!
    ... Ran the grub console... ... Unmounted my hard disk partition... ... [ohmster@ohmster ohmster]$ df -h ... After the new drives... ...
    (alt.os.linux)
  • Re: [opensuse] Booting Problem After Drive Replacement
    ... This error is returned if there is a disk read error when trying to ... The drive I'm replacing holds only DVD movies. ... The other two drives contain ... and try sorting out the GRUB errors that way. ...
    (SuSE)
  • Re: Installing Debian on second hard disk
    ... I need to know whether your hard disk was hda ... will debian still boot or will it refuse to boot? ... grub from the first one when I want to boot an OS on the second disk, ... > drives listed and that switches the machine to boot off the second drive. ...
    (Debian-User)
  • Re: Okay to clone drive to larger size drive?
    ... > You will probably need to reinstall your boot loader after cloning the ... I use grub to boot. ... that I might just have to clone both 30Gb hard drives to 80Gb hard drives ... [ohmster@ohmster ohmster]$ df -h ...
    (alt.os.linux)