linux 空硬盘,linux – dd在整个磁盘上,但不想要空的部分

我有一个磁盘,比如/ dev / sda.

这是fdisk -l:

Disk /dev/sda: 64.0 GB,64023257088 bytes

255 heads,63 sectors/track,7783 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x0000e4b5

Device Boot Start End Blocks Id System

/dev/sda1 * 1 27 209920 83 Linux

Partition 1 does not end on cylinder boundary.

/dev/sda2 27 525 4000768 5 Extended

Partition 2 does not end on cylinder boundary.

/dev/sda5 27 353 2621440 83 Linux

/dev/sda6 353 405 416768 83 Linux

/dev/sda7 405 490 675840 83 Linux

/dev/sda8 490 525 282624 83 Linux

我需要制作一个图像存储在我们的文件服务器上,用于闪存我们正在制造的其他设备,所以我只想要使用的空间(只有大约4GB).我想保留mbr等…因为这个设备应该在复制完成后立即启动.

有任何想法吗?我以前一直在使用dd if = / dev / sda = [// fileserver / file],但那时,我的主副本是一个4GB的flash ide.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值