Results 1 to 1 of 1
Hi folks,
On a FC3 box it has following partitions;
FC3
/root on /dev/hda5
/swap on /dev/hda3
/home on /dev/hda5
BLFS
/root on /dev/hda6 (size=5G only taking up 1.5G)
/swap ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-11-2005 #1Linux Guru
- Join Date
- Sep 2004
- Posts
- 1,712
Partition cloning
Hi folks,
On a FC3 box it has following partitions;
FC3
/root on /dev/hda5
/swap on /dev/hda3
/home on /dev/hda5
BLFS
/root on /dev/hda6 (size=5G only taking up 1.5G)
/swap sharring with FC3 on /dev/hda3
/dev/hda7 with ext3 not occupied (size=2G)
Now I want to duplicate another BLFS on /dev/hda7
To my knowledge following command
dd if=/dev/hda6 of=/dev/hda7 bs=4096 conv=notrunc,noerror
only works on equal size partitions. I have been searching on Internet to confirm it without result. Please advise. TIA
If the abovementioned command does not work then can I apply following method to clone /dev/hda6 on /dev/hda7 ???
1) Boot up FC3
2) # dd if=/dev/hda6 of=/home/myimage.img
(can I use /home for keeping myimage.img? It has sufficient spare space)
3) # dd if=myimage.img of=/dev/hda7
4) Modify the Bootloader (grub) of the FC3 as follow;
/boot/grub/menu.lstaddingCode:title Fedora Core (2.6.12-1.1378_FC3) root (hd0,0) kernel /vmlinuz-2.6.12-1.1378_FC3 ro root=LABEL=/ rhgb quiet initrd /initrd-2.6.12-1.1378_FC3.img title Fedora Core (2.6.12-1.1376_FC3) root (hd0,0) kernel /vmlinuz-2.6.12-1.1376_FC3 ro root=LABEL=/ rhgb quiet initrd /initrd-2.6.12-1.1376_FC3.img title LFS 6.1 (2.6.11.12) root (hd0,5) kernel /boot/lfskernel-2.6.11.12 ro root=/dev/hda6 vga=795 title LFS 6.1 (2.6.11.12-sound) root (hd0,5) kernel /boot/bzImage-2.6.11.12-sound ro root=/dev/hda6 vga=795OR are there any better methods? TIACode:title LFS 6.1 (for LiveCD) (2.6.11.12-sound) root (hd0,6) kernel /boot/bzImage-2.6.11.12-sound ro root=/dev/hda7 vga=795
BR
satimis


Reply With Quote
