Tech Support > Operating Systems > Linux / Variants > How to move whole Redhat installation on large hard disk.
How to move whole Redhat installation on large hard disk.
Posted by Tax Associate on February 3rd, 2004


I have one hard disk(20GB) where red hat 7.2 installed and I have
another hard disk(250GB) redhat 9.0 installed.

Following is what I created partition tables.

20-GB

Disk /dev/hda: 255 heads, 63 sectors, 2434 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 127 1020096 83 Linux
/dev/hda2 128 2294 17406427+ 83 Linux
/dev/hda3 2295 2434 1124550 82 Linux swap

And on 250 GB

Device Boot Start End Blocks Id System
/dev/hdc1 1 785 6305481 1b Hidden Win95 FAT32
/dev/hdc2 * 786 798 104422+ 83 Linux (Linux 9.0
grub boot)
/dev/hdc3 799 4622 30716280 93 Amoeba(Linux Redhat
9.0 but
partition id
changed)
/dev/hdc4 4623 30515 207985522+ f Win95 Ext'd (LBA)
/dev/hdc5 4623 4752 1044193+ 82 Linux swap
/dev/hdc6 4753 14753 80333032 83 Linux (New Linux
partition
e2label as / for
7.2)

Then I booted from 7.2 and transfer all files from 20GB to 250GB on
/dev/hdc6 after formatting and mounting using cpio.

Now I what should I do to make this 250GB hard disk bootable?

I was able to successfully copy files on new hard disk. But need to
know what files are required to be copy and how (I tried some simple
copy of grub file and config but it is not working).

I tried following grub.conf :

title Red Hat Linux 7.2(2.4.20-28.9)
root (hd0,1)
kernel /vmlinuz-2.4.9-e.3 ro root=LABEL=/
initrd /initrd-2.4.9-e.3.img

But this give me error 19 mounting ext3

I tried find /boot/grub/stage1 but it gives me file not found. (I must
be doing something wrong conceptually.)

Is it possible thing I am trying or I am trying impossible?

If possible can I have some guideline/pointer/step or how to do it?

Posted by Dances With Crows on February 3rd, 2004


On 3 Feb 2004 07:59:14 -0800, Tax Associate staggered into the Black Sun
and said:
You need to reinstall GRUB. Good docs on the subject are at
http://www.gentoo.org/doc/en/handboo...ap=9#doc_chap2
, so follow 'em.

Using filesystem labels instead of device nodes for root= can lead to
unexpected lossage, particularly if you have multiple Redhat distros
installed on the same machine. Make sure all your filesystem labels are
unique and this won't happen.

Kernel 2.4.9? Upgrade your kernel while you're at it. Initial RAMdisks
are a kludge. Build a kernel that's customized for your setup and you
won't need an initrd.

Was that a GRUB error, or a kernel error?

It's certainly possible; I've done it several times. Check the above
URL for good step-by-step directions or Google for author Dances With
Crows, keyword GRUB in comp.os.linux.* for the other bits of advice I've
written on this topic. HTH,

--
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin / mail: TRAP + SPAN don't belong
http://www.brainbench.com / Hire me!
-----------------------------/ http://crow202.dyndns.org/~mhgraham/resume


Similar Posts