Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5294

Advanced users • Re: Image File Utilities

$
0
0

Code:

/dev/root on /var/hdd.log type ext4 (rw,noatime)

That is certainly unusual. Why is /dev/root mounted on /var/hdd.log? Have you tried unmounting /var/hdd.log?

As another user pointed out, that’s because of log2ram, a way not to grind my SD card by log writing. Stopping it does make such line disappear, but I still see /dev/root on /. I’m reading that’s a placeholder which gets there when initrd isn’t able to re-mount root FS.

Code:

$ grep -n 'mount | sed -n ' ./image-utils/image-backup120:ROOT_PART="$(mount | sed -n 's|^\(/dev/.*\) on / .*|\1|p')"150:    resize2fs "$(mount | sed -n 's|^\(/dev/.*\) on / .*|\1|p')"221:ROOT_PART="$(mount | sed -n 's|^\(/dev/.*\) on / .*|\1|p')"
Do you think would be a good idea commenting those lines out, and setting the variable to system’s actual root partition?

Thank you

Statistics: Posted by saaibo — Thu May 09, 2024 10:05 am



Viewing all articles
Browse latest Browse all 5294

Trending Articles