Code: Alles auswählen
/ 1
/home/ 2
/srv/ 3
Code: Alles auswählen
touch /forcefsck
Code: Alles auswählen
# cat /run/initramfs/fsck.log
Log of fsck -C -a -T -t ext4 /dev/sda1
Wed Mar 7 15:57:12 2018
system: clean, 38966/521216 files, 376684/2096896 blocks
Code: Alles auswählen
cat /var/log/syslog | grep -A3 -B2 fsck
Mar 7 16:28:20 apu kernel: [ 2.862831] rtc_cmos 00:01: setting system clock to 2018-03-07 15:28:16 UTC (1520436496)
Mar 7 16:28:20 apu kernel: [ 2.862959] PM: Hibernation image not present or could not be loaded.
Mar 7 16:28:20 apu systemd-fsck[305]: user: clean, 21/521216 files, 53645/2097152 blocks
Mar 7 16:28:20 apu kernel: [ 2.869549] Freeing unused kernel memory: 1416K
Mar 7 16:28:20 apu kernel: [ 2.869552] Write protecting the kernel read-only data: 12288k
Mar 7 16:28:20 apu systemd-fsck[306]: share: clean, 1475/2621440 files, 943103/10485760 blocks
Mar 7 16:28:20 apu kernel: [ 2.871771] Freeing unused kernel memory: 1940K
Mar 7 16:28:20 apu kernel: [ 2.885175] Freeing unused kernel memory: 1228K
--
Mar 7 16:57:15 apu systemd[1]: Starting File System Check on /dev/disk/by-uuid/778df4f7-36f2-47da-87d7-4d974798eaf5...
Mar 7 16:57:15 apu systemd[1]: Starting File System Check on /dev/disk/by-uuid/aed0a2f1-dbd2-4973-88c3-b006449163ed...
Mar 7 16:57:15 apu systemd-fsck[300]: Please pass 'fsck.mode=force' on the kernel command line rather than creating /forcefsck on the root file system.
Mar 7 16:57:15 apu systemd-fsck[303]: Please pass 'fsck.mode=force' on the kernel command line rather than creating /forcefsck on the root file system.
Mar 7 16:57:15 apu systemd[1]: Started File System Check Daemon to report status.
Mar 7 16:57:15 apu systemd-fsck[303]: user: 21/521216 files (0.0% non-contiguous), 53645/2097152 blocks
Mar 7 16:57:15 apu systemd[1]: Started File System Check on /dev/disk/by-uuid/aed0a2f1-dbd2-4973-88c3-b006449163ed.
Mar 7 16:57:15 apu systemd[1]: Mounting /home...
Mar 7 16:57:15 apu systemd[1]: Mounted /home.
Mar 7 16:57:15 apu systemd-fsck[300]: share: 1475/2621440 files (0.4% non-contiguous), 943103/10485760 blocks
Mar 7 16:57:15 apu systemd[1]: Started File System Check on /dev/disk/by-uuid/778df4f7-36f2-47da-87d7-4d974798eaf5.
Mar 7 16:57:15 apu systemd[1]: Mounting /srv...
Unter Jessie war das noch einfach, da stand das alles im Verzeichnis /var/log/fsck/ in 2 Files.
Soll ich da jetzt wirklich nur für einen fsck extra temporär mit einem Kernel-Parameter booten - das kanns doch nicht sein?
(und widerspricht auch allen man-pages zu mount, fstab, )
EDIT:
den Kernel mit einer Option zu booten ist ja furchtbar umständlich, entweder
a) Serielle Konsole anschließen, im GRUB-Menu dann "edit" ...
b) das ganze temporär in die grub.cfg schreiben, update-grub und nacher wieder retour ???
Gruß,
Ingo