Hello,
I'm a beginner with Raspbian using a Pi3B,
I installed it with a 16GB SDD, formatted that and wrote Noobs on it. Installed Raspbian, did the suggested updates, followed suggestions of
https://raspberry.tips/raspberrypi-eins ... -rechners/ including changing iptables. Up to that no problem.
Then I started to prepare for a image backup by formatting an 64GB USB stick on Window10 professional using 57,8GB available, NTFS, 4096Bytes, Volumebezeichnung: PiBackup, keine Schnellformatierung
When I used the Raspbian GUI I could open the USB drive but I could not save an edited file. I took me a while to find out that that USB drive can be found on /media/h-pi/PiBackup, and is was only readable. I did a chmod 1777 on that directory. I could then save an edited file. Well, after reboot it was read only again. This still needs to be fixed somehow. Anyhow, did a chmod 1777 again.
Now, found out , that since it is a NOOBS installation it has many partitions on the SDD. I guess I correctly found out that mmcblk0 is the whole SDD. Then I issued a dd command via PuTTY
sudo dd if=/dev/mmcblk0 of=/media/h-pi/PiBackup/backup.img bs=4M status=progress
# it seemed to work by updating below line after a few seconds:
9051308032 Bytes (9,1 GB, 8,4 GiB) kopiert, 1310,69 s, 6,9 MB/s
# I did some work on Windows while it worked but then got this error:
dd: Fehler beim Schreiben von '/media/h-pi/PiBackup/backup.img': Auf dem Gerät ist kein Speicherplatz mehr verfügbar
2159+0 Datensätze ein
2158+0 Datensätze aus
9053822976 Bytes (9,1 GB, 8,4 GiB) kopiert, 1312,3 s, 6,9 MB/s
after that the TAB did no more complete a command but issued instead a strange text.
well, since then I get this when I
sudo reboot
sudo: In die Datei »/var/lib/sudo/ts/h-pi« kann nicht geschrieben werden: Auf dem Gerät ist kein Speicherplatz mehr verfügbar
[sudo] Passwort für h-pi:
h-pi@pi3:~ $ sudo df -h
sudo: In die Datei »/var/lib/sudo/ts/h-pi« kann nicht geschrieben werden: Auf dem Gerät ist kein Speicherplatz mehr verfügbar
[sudo] Passwort für h-pi:
Dateisystem Größe Benutzt Verf. Verw% Eingehängt auf
/dev/root 13G 13G 0 100% /
devtmpfs 458M 0 458M 0% /dev
tmpfs 462M 0 462M 0% /dev/shm
tmpfs 462M 12M 450M 3% /run
tmpfs 5,0M 4,0K 5,0M 1% /run/lock
tmpfs 462M 0 462M 0% /sys/fs/cgroup
/dev/mmcblk0p6 65M 21M 45M 33% /boot
tmpfs 93M 0 93M 0% /run/user/1001
When I plug the USB device into windows it has no backup.img file on drive F
However, when I do
ls -la /media/h-pi/PiBackup
insgesamt 8841640
drwxrwxrwt 2 root root 4096 Jan 7 18:10 .
drwxrwxrwt+ 4 root root 4096 Jan 5 13:18 ..
-rw-r--r-- 1 root root 9053822976 Jan 7 18:32 backup.img
its there but obviously eating up the remaining SDD space!
Now, finaly my questions: Why didn't it write to USB drive but instead somewhere on the SDD?
I guess somewhere I missed some mount statement but it looked ok in the GUI, but I could see that saved file on windows as well
I'm puzzled why PiBackup is under /media/h-pi and not under /media directly. Is the GUI doing a mount but the terminal not?
What did I wrong with the dd command?
What needs to be done to fix all that?
h-pi@pi3:~ $ lsblk -f
NAME FSTYPE LABEL UUID MOUNTPOINT
sda
└─sda1 ntfs PiBackup 108A98168A97F706
mmcblk0
├─mmcblk0p1 vfat RECOVERY FAAB-8523
├─mmcblk0p2
├─mmcblk0p5 ext4 SETTINGS c57678ea-fbfa-48a6-b8b9-e2268e3ae8a9
├─mmcblk0p6 vfat boot CC86-C08B /boot
└─mmcblk0p7 ext4 root 456a78a1-60ab-4336-881b-91b369f0dd9a /
regards, HeL