You are not logged in.
Hello i had a little issue when trying to retrieve accidentally moved the files from a usb stick ( 32Gb ) .
( First time trying KDE and i couldn't make a copy on another storage until this incident )
I used the command :
sudo ddrescue /dev/sdb1 disk.img Arrived at 99.97% i got an error telling me : " No space left on the device "
Anyone has an idea on how to avoid this error ?
( I didn't saw the answer after searching left and right and reading the documentation but i might have searched the wrong way or didn't notice the solution)
Thanks in advance.
Offline
Is it simply the device where you are creating the image is full?
Rlu: 222126
Offline
Is it simply the device where you are creating the image is full?
When i try to get back my files via the command above it basically tells me
ddrescue: disk.img: Write error: No space left on device (errno=28) I suppose it is due to the .img taking the bit of space i am missing to complete it.
Do you think i can put that .img somewhere else so i don't run in this issue ?
Last edited by Nyexa (2025-06-27 07:59:23)
Offline
You need to create the image file on a larger disk. Or if there is space, is there any other message?
Rlu: 222126
Offline
You need to create the image file on a larger disk. Or if there is space, is there any other message?
Here is the full DDrescue :
GNU ddrescue 1.29.1
Press Ctrl-C to interrupt
ipos: 31448 MB, non-trimmed: 0 B, current rate: 83357 B/s
opos: 31448 MB, non-scraped: 0 B, average rate: 4109 kB/s
non-tried: 8880 kB, bad-sector: 0 B, error rate: 0 B/s
rescued: 31448 MB, bad areas: 0, run time: 2h 7m 33s
pct rescued: 99.97%, read errors: 0, remaining time: 2s
time since last successful read: 0s
Copying non-tried blocks... Pass 1 (forwards)
ddrescue: disk.img: Write error: No space left on device (errno=28) Any idea on how to put the image file somewhere else ?
( Sorry but the more i search the more i feel lost )
I just found out i had to put the destination address before the .img file.
( me kinda stoupid )
Last edited by Nyexa (2025-06-27 08:04:07)
Offline
Without knowing your disk layout, you need to add a path to the output file
sudo ddrescue /dev/sdb1 /dev/sdb2/disk.img change sdb2 to the device to store the image file
Info here https://man.archlinux.org/man/ddrescue.1.en
Last edited by SimonJ (2025-06-27 08:05:52)
Rlu: 222126
Offline
Without knowing your disk layout, you need to add a path to the output file
sudo ddrescue /dev/sdb1 /dev/sdb2/disk.imgchange sdb2 to the device to store the image file
I found a second before you sent the solution lul.
Thanks.
I sent the file in my mvme - /home/USER
Since it's a usb 2.0 it's going to take a while before next update.
Last edited by Nyexa (2025-06-27 08:07:45)
Offline
Little update :
I tried the command :
sudo mount /home/disk.img /dev/sdb1 I got this error :
mount: /dev/sdb1: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error.
dmesg(1) may have more information after failed mount system call.
I also also tried :
sudo mount /home/disk.img Message :
mount: /home/disk.img: can't find in /etc/fstab. sudo mount /dev/sdb1/backup.img /mnt/recoverydata Result :
mount: /mnt/recoverydata: fsconfig() failed: /dev/sdb1/backup.img: Can't lookup blockdev.
dmesg(1) may have more information after failed mount system call. After trying to change the language my os decided to blow up so you will have to wait for a better version if I can, hopefully the USB didn't blow up too.
Edit : Changed language.
Any ideas ?
Last edited by Nyexa (2025-06-27 11:44:16)
Offline
Please prepend LC_ALL=C.UTF-8 to the command so the output will be in english.
See https://wiki.archlinux.org/title/Genera … s_and_code
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Please prepend LC_ALL=C.UTF-8 to the command so the output will be in english.
See https://wiki.archlinux.org/title/Genera … s_and_code
My bad.
I will try when I can, after changing it I tried to reboot but my computer doesn't start anymore, no bootable device.
( For the time being I will put a translation under the messages while arch reinstall )
After a few attempt i accidentally touched the usb stick and it decided to die.
Thanks y'all for your help.
Last edited by Nyexa (2025-06-28 05:04:27)
Offline