由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - dd 拷过去后 fs 不对啊。。。
相关主题
after repartition, /proc/partitions not updatedUsing losetup to create loopback block device problem
如何拷贝有Pogoplug 的系统的U盘请教grub的问题
再问个linux 的partition 问题谁能给个x61s vista下保留隐藏分区双系统硬盘安装ubuntu 的教程
请大牛帮忙看看问题出在什么地方了。两个IDE硬盘怎么无缘无故的crash了呢?
git真是耗内存啊。。。包子求助:ubuntu的grub找不到centos
问个swap space的问题mkfs.ntfs -f 错了分区
再问一个grub2的问题请教VM中Ubuntu 12.04 LTS增大硬盘容量的正确步骤
debian怎么mount一个很多partitions的硬盘我来示范一下自动mount硬盘和读写权限
相关话题的讨论汇总
话题: sdb1话题: dev话题: sda1话题: fdisk话题: dell
进入Linux版参与讨论
1 (共1页)
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 了一下。。。
:
: 后:

相关主题
问个swap space的问题Using losetup to create loopback block device problem
再问一个grub2的问题请教grub的问题
debian怎么mount一个很多partitions的硬盘谁能给个x61s vista下保留隐藏分区双系统硬盘安装ubuntu 的教程
进入Linux版参与讨论
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

1 (共1页)
进入Linux版参与讨论
相关主题
我来示范一下自动mount硬盘和读写权限git真是耗内存啊。。。
Device busy 该咋办?问个swap space的问题
大家帮我选个 dist 吧再问一个grub2的问题
猪头 IT 啊!debian怎么mount一个很多partitions的硬盘
after repartition, /proc/partitions not updatedUsing losetup to create loopback block device problem
如何拷贝有Pogoplug 的系统的U盘请教grub的问题
再问个linux 的partition 问题谁能给个x61s vista下保留隐藏分区双系统硬盘安装ubuntu 的教程
请大牛帮忙看看问题出在什么地方了。两个IDE硬盘怎么无缘无故的crash了呢?
相关话题的讨论汇总
话题: sdb1话题: dev话题: sda1话题: fdisk话题: dell