Error writing a disk image - No space left on device

MarekW

New Member
Apr 29, 2023
16
0
1
Krakow
I am new to Proxmox and I have moderate experience with Linux environment.
I am trying to convert a physical hard drive (attached to the PVE machine) to an image to add it to my Windows VM.
I ran the following command:

Code:
root@pve:/dev/pve# dd if=/dev/sdb of=driveImage.img bs=1M status=progress

As a result I am getting this:

Code:
8203010048 bytes (8.2 GB, 7.6 GiB) copied, 21 s, 391 MB/s
dd: error writing 'driveImage.img': No space left on device
7899+0 records in
7898+0 records out
8282013696 bytes (8.3 GB, 7.7 GiB) copied, 21.5219 s, 385 MB/s

Proxmox was installed on a 1.8 TB disk, and it is practically empty (just one small test VM)
Code:
root@pve:/dev/mapper# pvesm status
Name             Type     Status           Total            Used       Available        %
local             dir     active        98497780         8532368        84915864    8.66%
local-lvm     lvmthin     active      1793077248        13806694      1779270553    0.77%

Could you please guide be a bit on how I can create my disk image file for the vm?

Thanks in advance!

Marek
 
Last edited:
I am new to Proxmox and I have moderate experience with Linux environment.
I am trying to convert a physical hard drive (attached to the PVE machine) to an image to add it to my Windows VM.
I ran the following command:

Code:
root@pve:/dev/pve# dd if=/dev/sdb of=driveImage.img bs=1M status=progress

As a result I am getting this:

Code:
8203010048 bytes (8.2 GB, 7.6 GiB) copied, 21 s, 391 MB/s
dd: error writing 'driveImage.img': No space left on device
7899+0 records in
7898+0 records out
8282013696 bytes (8.3 GB, 7.7 GiB) copied, 21.5219 s, 385 MB/s

Proxmox was installed on a 1.8 TB disk, and it is practically empty (just one small test VM)
Code:
root@pve:/dev/mapper# pvesm status
Name             Type     Status           Total            Used       Available        %
local             dir     active        98497780         8532368        84915864    8.66%
local-lvm     lvmthin     active      1793077248        13806694      1779270553    0.77%

Could you please guide be a bit on how I can create my disk image file for the vm?

Thanks in advance!

Marek
Actually, I came up with a workaround. I mapped a folder from my Synology server via NFS and I am creating the disk image there. Then I will try to import the image as advised here: https://pve.proxmox.com/wiki/Migration_of_servers_to_Proxmox_VE#VMware
 
root@pve:/dev/pve# dd if=/dev/sdb of=driveImage.img bs=1M status=progress
this indicates to me that you performed a "change directory" operation to /dev prior to executing the "dd". You are not specifying any path for the output file, so the file gets placed to /dev

/dev is a special purpose directory https://tldp.org/LDP/Linux-Filesystem-Hierarchy/html/dev.html :
Code:
df -h
Filesystem                       Size  Used Avail Use% Mounted on
udev                             1.9G     0  1.9G   0% /dev


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
  • Like
Reactions: MarekW