{{Warning box|as the dd command is named "data destroyer" you need to be extremely prudent and sure of the name of source partition and/or destination. At first you should skip the dd command, Step 1 below, and attempt to install grub without it, see Step 2 below. If grub can be installed without using dd, then Step 1 can be discarded. }}
{{Warning box|as the dd command is named "data destroyer" you need to be extremely prudent and sure of the name of source partition and/or destination. At first you should skip the dd command, Step 1 below, and attempt to install grub without it, see Step 2 below. If grub can be installed without using dd, then Step 1 can be discarded. }}
−
# dd
+
*1.dd
[root@ ~]# '''dd if=/dev/sda1 of=/dev/sdb1'''
[root@ ~]# '''dd if=/dev/sda1 of=/dev/sdb1'''
−
## grub
+
*2.grub
[root@ ~]# '''grub'''
[root@ ~]# '''grub'''
Line 130:
Line 130:
completions of a device/filename.]
completions of a device/filename.]
−
grub> '''device (hd1) /dev/sdb'''
+
grub> '''device (hd0) /dev/sdb'''
−
grub> '''root (hd1,0)'''
+
grub> '''root (hd0,0)'''
Filesystem type is ext2fs, partition type 0xfd
Filesystem type is ext2fs, partition type 0xfd
−
grub> '''setup (hd1)'''
+
grub> '''setup (hd0)'''
Checking if "/boot/grub/stage1" exists... no
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... yes
Checking if "/grub/stage1" exists... yes
Line 142:
Line 142:
Running "embed /grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded.
Running "embed /grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded.
succeeded
succeeded
−
Running "install /grub/stage1 (hd1) (hd1)1+16 p (hd1,0)/grub/stage2 /grub/grub.conf"... succeeded
+
Running "install /grub/stage1 (hd0) (hd1)1+16 p (hd0,0)/grub/stage2 /grub/grub.conf"... succeeded