b*****l 发帖数: 9499 | 1 想把 sda1 拷进 sdb1 去。先 fdisk 做一个 sdb1 出来,和 sda1 一样尺寸。然后:
dd if=/dev/sda1 bs=512 of=/dev/sdb1 conv=noerror,sync
结果 ID 和 system 都不同。sda1 是 de,Dell, sdb1 是 83, Linux。也就是得到的
fs 是 ext 格式的。。。
同学们,咋整啊?
fdisk -l /dev/sdb
Disk /dev/sdb: 750.1 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 8 64228+ 83 Linux
# fdisk -l /dev/sda
Disk /d |
z**r 发帖数: 17771 | 2 你fdisk sdb1的时候没有改filesystem?
的
【在 b*****l 的大作中提到】 : 想把 sda1 拷进 sdb1 去。先 fdisk 做一个 sdb1 出来,和 sda1 一样尺寸。然后: : dd if=/dev/sda1 bs=512 of=/dev/sdb1 conv=noerror,sync : 结果 ID 和 system 都不同。sda1 是 de,Dell, sdb1 是 83, Linux。也就是得到的 : fs 是 ext 格式的。。。 : 同学们,咋整啊? : fdisk -l /dev/sdb : Disk /dev/sdb: 750.1 GB, 750156374016 bytes : 255 heads, 63 sectors/track, 91201 cylinders : Units = cylinders of 16065 * 512 = 8225280 bytes : Device Boot Start End Blocks Id System
|
w*r 发帖数: 2421 | 3 file system info is in partition table. Therefore, when you dd sda1 to sdb1,
you did not copy the fs info from
one hd to another, try fidsk your destination and modify the file sys type
and unmount/remount, you might be
able to see all your data after the change.
的
【在 b*****l 的大作中提到】 : 想把 sda1 拷进 sdb1 去。先 fdisk 做一个 sdb1 出来,和 sda1 一样尺寸。然后: : dd if=/dev/sda1 bs=512 of=/dev/sdb1 conv=noerror,sync : 结果 ID 和 system 都不同。sda1 是 de,Dell, sdb1 是 83, Linux。也就是得到的 : fs 是 ext 格式的。。。 : 同学们,咋整啊? : fdisk -l /dev/sdb : Disk /dev/sdb: 750.1 GB, 750156374016 bytes : 255 heads, 63 sectors/track, 91201 cylinders : Units = cylinders of 16065 * 512 = 8225280 bytes : Device Boot Start End Blocks Id System
|
w*r 发帖数: 2421 | 4 also, dd can specify block size. You might want a big block size to help it
run faster.
sdb1,
【在 w*r 的大作中提到】 : file system info is in partition table. Therefore, when you dd sda1 to sdb1, : you did not copy the fs info from : one hd to another, try fidsk your destination and modify the file sys type : and unmount/remount, you might be : able to see all your data after the change. : : 的
|
b*****l 发帖数: 9499 | 5 没,专门没有设定任何 fs
后:
【在 z**r 的大作中提到】 : 你fdisk sdb1的时候没有改filesystem? : : 的
|
b*****l 发帖数: 9499 | 6 de 这个格式是 Dell 自己的,fdisk 好像没有啊。。。
mount 上之后能看见内容。
说实话,我也不知道 Dell 自己的这个分区是干啥的。。。
sdb1,
后:
【在 w*r 的大作中提到】 : file system info is in partition table. Therefore, when you dd sda1 to sdb1, : you did not copy the fs info from : one hd to another, try fidsk your destination and modify the file sys type : and unmount/remount, you might be : able to see all your data after the change. : : 的
|
b*****l 发帖数: 9499 | 7 是 512。。。 这个不是 Linux 界的硬性规定么?。。。
it
type
【在 w*r 的大作中提到】 : also, dd can specify block size. You might want a big block size to help it : run faster. : : sdb1,
|
g****d 发帖数: 3461 | 8 You can only duplication drives with the same geometry (cylinders, heads,
sectors) by:
dd if=/dev/hda of=/dev/hdb
dd writes device files directly. Unless the partitions are created with
the same geometry (on the same physical cylinders), it should not work.
的
【在 b*****l 的大作中提到】 : 想把 sda1 拷进 sdb1 去。先 fdisk 做一个 sdb1 出来,和 sda1 一样尺寸。然后: : dd if=/dev/sda1 bs=512 of=/dev/sdb1 conv=noerror,sync : 结果 ID 和 system 都不同。sda1 是 de,Dell, sdb1 是 83, Linux。也就是得到的 : fs 是 ext 格式的。。。 : 同学们,咋整啊? : fdisk -l /dev/sdb : Disk /dev/sdb: 750.1 GB, 750156374016 bytes : 255 heads, 63 sectors/track, 91201 cylinders : Units = cylinders of 16065 * 512 = 8225280 bytes : Device Boot Start End Blocks Id System
|
b*****l 发帖数: 9499 | 9 oops。。。
看来我所做的,就相当 cp 了一下。。。
后:
【在 g****d 的大作中提到】 : You can only duplication drives with the same geometry (cylinders, heads, : sectors) by: : dd if=/dev/hda of=/dev/hdb : dd writes device files directly. Unless the partitions are created with : the same geometry (on the same physical cylinders), it should not work. : : 的
|
w*r 发帖数: 2421 | 10 does the drive has to be identical???
say sda1 and sdb1 are identical, it should work too.
【在 b*****l 的大作中提到】 : oops。。。 : 看来我所做的,就相当 cp 了一下。。。 : : 后:
|
|
|
w*r 发帖数: 2421 | 11 the block size here means the number of bytes for each read/write
【在 b*****l 的大作中提到】 : 是 512。。。 这个不是 Linux 界的硬性规定么?。。。 : : it : type
|
b*****l 发帖数: 9499 | 12 之所以 dd,是因为 Dell 服务器自带的 HD 上的那个 de/Dell 分区,我不知道是啥格
式,fdisk 也没有。这次换盘,所以想 dd 过去算了。
要把 RHEL 从 250GB HD migrate 到 750GB HD 上去,而且把分区改成 LVM,本来打算
用张 Gentoo 盘把 LVM 做一下,然后 copy -ar 过去就成了。
没想到,关机失败,不得不硬关机,再启动后就报错,文件丢失,dbus 一直启动不成。
折腾了一夜。想想,重装系统算了。也就多装个 Matlab 而已。保险。
【在 w*r 的大作中提到】 : does the drive has to be identical??? : say sda1 and sdb1 are identical, it should work too.
|
w*r 发帖数: 2421 | 13 I do not think the drive has to be identical, as long as the partition is in
the exact same size. the partition type
for the recoverly is usually a FAT 32 variate. Use fdisk to open the drive,
you will see the partition type and its
code for the DELL partition. I used the same method to duplicate the
thinkpad's hidden recovery partition.
成。
【在 b*****l 的大作中提到】 : 之所以 dd,是因为 Dell 服务器自带的 HD 上的那个 de/Dell 分区,我不知道是啥格 : 式,fdisk 也没有。这次换盘,所以想 dd 过去算了。 : 要把 RHEL 从 250GB HD migrate 到 750GB HD 上去,而且把分区改成 LVM,本来打算 : 用张 Gentoo 盘把 LVM 做一下,然后 copy -ar 过去就成了。 : 没想到,关机失败,不得不硬关机,再启动后就报错,文件丢失,dbus 一直启动不成。 : 折腾了一夜。想想,重装系统算了。也就多装个 Matlab 而已。保险。
|
b*****l 发帖数: 9499 | 14 多谢。fdisk 显示的是: de, Dell Utilities。我先搁在那里了。
in
,
啥格
打算
【在 w*r 的大作中提到】 : I do not think the drive has to be identical, as long as the partition is in : the exact same size. the partition type : for the recoverly is usually a FAT 32 variate. Use fdisk to open the drive, : you will see the partition type and its : code for the DELL partition. I used the same method to duplicate the : thinkpad's hidden recovery partition. : : 成。
|
w*r 发帖数: 2421 | 15 Dell utility is just a variate of FAT 16. It is safe to just copy it over. I
believe there are special flags generated by dellboot.exe to hook up the
hot keys defined in bios during boot up to the first sector of this
partition. you might want to check it out here http://www.goodells.net/dellutility/recreate.htm
【在 b*****l 的大作中提到】 : 多谢。fdisk 显示的是: de, Dell Utilities。我先搁在那里了。 : : in : , : 啥格 : 打算
|
b*****l 发帖数: 9499 | 16 多谢!
over. I
the
http://www.goodells.net/dellutility/recreate.htm
【在 w*r 的大作中提到】 : Dell utility is just a variate of FAT 16. It is safe to just copy it over. I : believe there are special flags generated by dellboot.exe to hook up the : hot keys defined in bios during boot up to the first sector of this : partition. you might want to check it out here http://www.goodells.net/dellutility/recreate.htm
|