小宾 大佬有话说 :
op的onecloud救援模式硬盘只有2G dd不够用怎么办?
本帖最后由 小宾 于 2023-1-15 14:34 编辑
开了救援模式,ddwin的时候提示硬盘只有2G,但DD需要2.1G,换了个1.4G的镜像,还是这个提示,有啥办法吗
root@rescue:~# wget –no-check-certificate -qO- ‘https://oss.sunpma.com/Windows/Win_Server2008R2_sp1_64_Administrator_nat.ee.gz’ | gunzip | dd of=/dev/sda
dd: writing to ‘/dev/sda’: No space left on device
4194305+0 records in
4194304+0 records out
2147483648 bytes (2.1 GB, 2.0 GiB) copied, 79.8417 s, 26.9 MB/s
看了一下非救援模式下硬盘应该是在/dev/sda1,但是我把dd的目录改成/dev/sda1,还是同样的提示
root@rescue:~# wget –no-check-certificate -qO- ‘https://oss.sunpma.com/Windows/Win_Server2008R2_sp1_64_Administrator_nat.ee.gz’ | gunzip | dd of=/dev/sda1
dd: writing to ‘/dev/sda1’: No space left on device
4192257+0 records in
4192256+0 records out
2146435072 bytes (2.1 GB, 2.0 GiB) copied, 80.8573 s, 26.5 MB/s
zc_cz 大佬有话说 :
dd的目标磁盘选错了。
小宾 大佬有话说 :
zc_cz 大佬有话说 : 2023-1-15 14:28
dd的目标磁盘选错了。
dd不是选dev/sda吗?但是我非救援模式下看硬盘应该是在dev/sda1
小宾 大佬有话说 :
有人知道吗
zxxx 大佬有话说 :
fdisk -l 看看那个是真正的硬盘
小宾 大佬有话说 :
zxxx 大佬有话说 : 2023-1-15 23:48
fdisk -l 看看那个是真正的硬盘
dev/sda1是真正的硬盘,但是dd的时候选择sda1也是同样的提示
zxxx 大佬有话说 :
| gunzip -c |
-c –stdout –to-stdout
Write output on standard output; keep original files unchanged.If there are several input files,theoutput
consists of a sequence of independently compressed members. To obtain better compression, concatenate all input
files before compressing them.
tomcb 大佬有话说 :
你那2G是内存吧
小宾 大佬有话说 :
tomcb 大佬有话说 : 2023-1-16 20:02
你那2G是内存吧
内存是8G的啊
orwtmc 大佬有话说 :
你其实可以无视这个提示的。。如果你用dd写过0就会知道这个提示并不一定是表面这个意思