Open DrCWO opened 1 year ago
entered /mnt1/backup as destination
The image name is not meant to be a path but a filename only, at least it is handled like that. The image will always be created within the current directory, at least this is assumed. So navigate there first:
/mnt1
However, I checked and indeed when you enter an actual path, aside of the free space check, it should work mostly as intended. If the archive is created, it will probably have the directories added as well, though. I'll verify it and adjust the description in the menu. Easiest to assure that all happens as intended is probably to strip the path from the input and cd
to it.
Just some feedback for your information. My external drive I mounted on /mnt1 was a NTFS USB stick.
I did cd to /mnt1 and started from there --> Did not work, a lot of continuous error messages probably caused by NTFS
Can you paste the exact errors?
I would if I could but I am in the middle of building a new release and don't want to get back to this step. Will do it later...
This is what happens until I press CTRL-C and I pressed quick ;-)
root@DietPi:/mnt1# bash -c "$(curl -sSfL 'https://raw.githubusercontent.com/MichaIng/DietPi/dev/.build/images/dietpi-imager')"
[ OK ] DietPi-Imager | cd /mnt1
[ INFO ] DietPi-Imager | Checking for required APT packages: parted fdisk zerofree p7zip
[ INFO ] DietPi-Imager | Unmounting all filesystems below selected /dev/sda ...
[ INFO ] DietPi-Imager | MBR partition table detected
[ INFO ] DietPi-Imager | e2fsck -fpD /dev/sda2, please wait...
/dev/sda2: Inode 140078 extent tree (at level 1) could be shorter. IGNORED.
/dev/sda2: 109953/962880 files (0.5% non-contiguous), 948642/3855744 blocks
[ OK ] DietPi-Imager | e2fsck -fpD /dev/sda2
[ OK ] DietPi-Imager | mkdir /tmp/DietPi-Imager_mnt
[ OK ] DietPi-Imager | mount /dev/sda2 /tmp/DietPi-Imager_mnt
[ OK ] DietPi-Imager | rm -f /tmp/DietPi-Imager_mnt/root/.bash_history /tmp/DietPi-Imager_mnt/home/*/.bash_history /tmp/DietPi-Imager_mnt/var/lib/dhcp/*.leases
[ OK ] DietPi-Imager | sync
[ OK ] DietPi-Imager | sleep 1
[ OK ] DietPi-Imager | umount -R /tmp/DietPi-Imager_mnt
[ OK ] DietPi-Imager | partprobe /dev/sda
[ OK ] DietPi-Imager | partx -u /dev/sda
[ INFO ] DietPi-Imager | e2fsck -fpD /dev/sda2, please wait...
/dev/sda2: Inode 140078 extent tree (at level 1) could be shorter. IGNORED.
/dev/sda2: 109953/962880 files (0.5% non-contiguous), 948642/3855744 blocks
[ OK ] DietPi-Imager | e2fsck -fpD /dev/sda2
[ OK ] DietPi-Imager | tune2fs -O ^has_journal /dev/sda2
[ OK ] DietPi-Imager | sync
[ OK ] DietPi-Imager | sleep 1
[ OK ] DietPi-Imager | tune2fs -O has_journal /dev/sda2
[ OK ] DietPi-Imager | sync
[ OK ] DietPi-Imager | sleep 1
[ INFO ] DietPi-Imager | Shrinking last filesystem to minimum size...
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
Resizing the filesystem on /dev/sda2 to 974669 (4k) blocks.
Begin pass 2 (max = 187632)
Relocating blocks XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Begin pass 3 (max = 118)
Scanning inode table XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Begin pass 4 (max = 17011)
Updating inode references XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
The filesystem on /dev/sda2 is now 974669 (4k) blocks long.
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
Resizing the filesystem on /dev/sda2 to 967937 (4k) blocks.
Begin pass 2 (max = 6726)
Relocating blocks XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Begin pass 3 (max = 30)
Scanning inode table XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
The filesystem on /dev/sda2 is now 967937 (4k) blocks long.
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
Resizing the filesystem on /dev/sda2 to 967927 (4k) blocks.
Begin pass 2 (max = 10)
Relocating blocks XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Begin pass 3 (max = 30)
Scanning inode table XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
The filesystem on /dev/sda2 is now 967927 (4k) blocks long.
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
grep: resize2fs_out: No such file or directory
grep: resize2fs_out: No such file or directory
tee: resize2fs_out: Permission denied
resize2fs 1.46.2 (28-Feb-2021)
The filesystem is already 967927 (4k) blocks long. Nothing to do!
[ OK ] DietPi-Imager | rmdir /tmp/DietPi-Imager_mnt
root@DietPi:/mnt1#
tee: resize2fs_out: Permission denied
Looks like the NTFS drive is mounted read-only, and likely also the ntfs-3g driver for UNIX permissions emulation is not installed, respectively the drive is not mounted with emulated permissions. Did you mount it via dietpi-drive_manager
? Else
apt install ntfs-3g
Then add permissions
as another mount option.
It doesn't solve your issue, since you need to write to this drive anyway, but the resize2fs output is now stored to /tmp instead of the current directory, so you do not end up in a loop here: https://github.com/MichaIng/DietPi/commit/fc81aa1
Just a short question: Is there a chance to write a created image with dietpi-imager on a separate drive?
I mounted the external drive (/dev/sdb1) to /mnt1 and entered /mnt1/backup as destination. Backup source is /sda. But dietpi-imager says that there is not enough space???
Support would be appreciated. Best DrCWO