pi: pi 2 os: respberrian jessie sd: sandisk 64gb
when i tried to install xvfb on my pi i started getting strange errors from the os, tried apt-get install -f and apt-get upgrade``` and ``apt-get clean autoclean` so clean worked install -f didn't do anything and autoclean and upgrade both get me back to the same strange situation.
i suspected sd card issue. it's a 64bg sdcard from sandisk (class 10). but unlike a PC i can't unmount the root file system and can't reload it as readonly as it's always "busy" so i tried to fsck on the next boot but could not find a method that works (boot was booting too fast).
below u can see the output of the command when trying to install lsof to see which files or seevices i need to stop in order to remount ro so i can use fsck.
Fetched 365 kB in 1s (318 kB/s) Selecting previously unselected package libperl4-corelibs-perl. dpkg: unrecoverable fatal error, aborting: reading files list for package 'javascript-common': Input/output error E: Sub-process /usr/bin/dpkg returned an error code (2) E: Failed to write temporary StateFile /var/lib/apt/extended_states.tmp pi@gal-pi:~ $ ls -bash: /bin/ls: No such file or directory pi@gal-pi:~ $ df -bash: /bin/df: No such file or directory pi@gal-pi:~ $ mount -bash: mount: command not found pi@gal-pi:~ $ bash -bash: /bin/bash: No such file or directory pi@gal-pi:~ $ cd -bash: sed: command not found pi@gal-pi:~ $ cd / -bash: sed: command not found -bash: printf: write error: Broken pipe pi@gal-pi:~ $
- anyone experienced it with his pi ?
- anyone has a good advise how to make forced test with raspberian jessie ? i'm pretty sure it works on systemd but debian made sure systemd will still call old initd scripts at least for some of them... so anyway to force fsck ?
- last possibility : should i cehck the sd using fsck on a linux system ( i have mint 17.4)
10x!
fsck.mode=forceto/boot/cmdline.txt, but remember that file should be all one line, spaces between fields.