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.
創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎總結
以上是生活随笔為你收集整理的linux 空硬盘,linux – dd在整个磁盘上,但不想要空的部分的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 基于jsp+mysql+Spring+h
- 下一篇: 基于Java+SpringBoot+vu