[SOLVED] fsck error2 (No such file or directory)while execut

Help with issues regarding installation of Debian

[SOLVED] fsck error2 (No such file or directory)while execut

Postby hughparker1 » 2016-02-13 23:12

I have just installed debian-live-8.3.0-i386-lxde-desktop+nonfree.iso on my old hp530 32-bit laptop

I am getting the following message when I boot my laptop...
Code: Select all
Loading, please wait...
fsck from util-linux 2.25.2
fsck error 2 (No such file or directory) while executing fsck.ext4 for /dev/sda1
fsck exited with status code 8
[  13.941532] systemd-fsck[145]: DEBIAN8: clean,140919/640848 files, 978992/2560942 blocks

... after about 30 seconds it boots ok

here is output for my fstab...
Code: Select all
hugh@hp530-Debian-8:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=a7cfc5df-3a0b-4f21-b24a-a4a86a41918c /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda7 during installation
UUID=8a11c0aa-cf07-48ad-a149-5fc68325ea12 none            swap    sw              0       0
hugh@hp530-Debian-8:~$

here is output for blkid...
Code: Select all
hugh@hp530-Debian-8:~$ sudo blkid
[sudo] password for hugh:
/dev/sda1: LABEL="DEBIAN8" UUID="a7cfc5df-3a0b-4f21-b24a-a4a86a41918c" TYPE="ext4" PARTUUID="84fc84fc-01"
/dev/sda3: LABEL="OE_SYSTEM" UUID="f75e6bcb-f5b8-45af-9ecc-2cce64fa6ed7" TYPE="ext4" PARTUUID="84fc84fc-03"
/dev/sda4: LABEL="OE_DATA" UUID="594c7f52-4e98-406d-9100-feb9afaf211b" TYPE="ext4" PARTUUID="84fc84fc-04"
/dev/sda5: LABEL="XUBUNTU" UUID="8dff0a35-a695-426f-8338-a4167bf2b699" TYPE="ext4" PARTUUID="84fc84fc-05"
/dev/sda6: LABEL="XUBUNTU-HOME" UUID="356e3488-d7e8-4426-b29b-6bfe0027d9f6" TYPE="ext4" PARTUUID="84fc84fc-06"
/dev/sda7: UUID="8a11c0aa-cf07-48ad-a149-5fc68325ea12" TYPE="swap" PARTUUID="84fc84fc-07"
/dev/sda8: LABEL="BACKUP" UUID="19931db4-b791-49ba-9b9d-49dad02b41fd" TYPE="ext4" PARTUUID="84fc84fc-08"
/dev/sda9: LABEL="LUBUNTU" UUID="d2e0f0e2-9893-4100-8782-08e92d8bcd2a" TYPE="ext4" PARTUUID="84fc84fc-09"
/dev/sda10: LABEL="LUBUNTU-HOME" UUID="b30a3420-44fc-4687-b306-396b315b32d7" TYPE="ext4" PARTUUID="84fc84fc-0a"
/dev/sda11: LABEL="DEBIAN" UUID="116e57be-4b58-4ace-b016-72d326267ed6" TYPE="ext4" PARTUUID="84fc84fc-0b"
/dev/sda12: LABEL="DEBIAN-HOME" UUID="6e664fa0-7884-4266-9334-81199adf9c50" TYPE="ext4" PARTUUID="84fc84fc-0c"
hugh@hp530-Debian-8:~$

I don't have enough technical knowledge to determine what is causing this error message, if anyone can help I would be grateful. I am still learning linux but I can use terminal if I know the correct syntax to use. Thanks in advance.
Last edited by hughparker1 on 2016-02-14 01:43, edited 1 time in total.
hughparker1
 
Posts: 176
Joined: 2014-10-09 21:53
Location: Paisley, United Kingdom

Re: fsck error 2 (No such file or directory)while executing

Postby ralph.ronnquist » 2016-02-14 00:18

Having spent a little bit of @dasein's billions, I've found a probably relevant documentation at
https://www.freedesktop.org/software/systemd/man/systemd-gpt-auto-generator.html

It suggests that there's systemd magic involved to mount other and more partitions than those mentioned in /etc/fstab.

A remedy against this magic would be the following command sequence:
Code: Select all
# mkdir -p /etc/systemd/system-generators
# ln -s /dev/null /etc/systemd/system-generators/systemd-gpt-auto-generator

In systemd speak (with AU-SE accent), that will set up an "override" for the systemd-gpt-auto-generator unit with the effect of avoiding the default implementation.

Note, it might resolve your fsck issue, and otherwise you should revert until it's resolved.
User avatar
ralph.ronnquist
 
Posts: 298
Joined: 2015-12-19 01:07
Location: Melbourne, Australia

Re: fsck error 2 (No such file or directory)while executing

Postby spacex » 2016-02-14 01:19

fstab looks fine as far as I can tell. I can't find the source now, but I think I recall that rebuilding the initramfs solved it for a user.

As root, or by sudo:

Code: Select all
update-initramfs -u


Then reboot...

Probably not going to work, but it can't hurt either.
spacex
 
Posts: 633
Joined: 2015-01-17 01:27

Re: fsck error 2 (No such file or directory)while executing

Postby hughparker1 » 2016-02-14 01:41

spacex wrote:fstab looks fine as far as I can tell. I can't find the source now, but I think I recall that rebuilding the initramfs solved it for a user.
As root, or by sudo:
Code: Select all
update-initramfs -u

Then reboot...
Probably not going to work, but it can't hurt either.

I entered the code you suggested ....
Code: Select all
hugh@hp530-Debian-8:~$ sudo update-initramfs -u
[sudo] password for hugh:
update-initramfs: Generating /boot/initrd.img-3.16.0-4-686-pae
live-boot: core filesystems devices utils udev wget blockdev.
hugh@hp530-Debian-8:~$

now when I reboot there is no error in the onscreen message, all looks normal ....
Code: Select all
Loading, please wait...
fsck from util-linux 2.25.2
DEBIAN8: clean,144024/640848 files, 1011533/2560942 blocks


Thanks spacex for your suggestion, you didn't think it would solve the problem but I'm glad you suggested it anyway. I appreciate your help on getting this issue resolved.
hughparker1
 
Posts: 176
Joined: 2014-10-09 21:53
Location: Paisley, United Kingdom

Re: fsck error 2 (No such file or directory)while executing

Postby spacex » 2016-02-15 00:33

hughparker1 wrote:Thanks spacex for your suggestion, you didn't think it would solve the problem but I'm glad you suggested it anyway. I appreciate your help on getting this issue resolved.


:lol: Hehe, I had a certain idea that it might work. It wasn't all out of the blue. But I covered myself from ridicule in case it didn't. I wasn't sure enough to put my rep on it :lol:

Anyway, nice to see that it worked. It raises my confidence :D
spacex
 
Posts: 633
Joined: 2015-01-17 01:27

Re: [SOLVED] fsck error2 (No such file or directory)while ex

Postby Freigeist » 2016-04-18 11:32

For your confidence:

I had the same problem and was able to use the same solution ;)

Thinkpad E325 with SSD Harddisc
debian-live-8.3.0-i386-xfce-desktop+nonfree.iso

thank you!
Freigeist
 
Posts: 1
Joined: 2016-04-18 11:27

Re: fsck error 2 (No such file or directory)while executing

Postby hughparker1 » 2016-04-18 14:51

spacex wrote:fstab looks fine as far as I can tell. I can't find the source now, but I think I recall that rebuilding the initramfs solved it for a user.
As root, or by sudo:
Code: Select all
update-initramfs -u

Then reboot...
Probably not going to work, but it can't hurt either.

another happy customer spacex ! that was a good guess :D
hughparker1
 
Posts: 176
Joined: 2014-10-09 21:53
Location: Paisley, United Kingdom

Re: [SOLVED] fsck error2 (No such file or directory)while ex

Postby nacho-a » 2017-03-20 22:26

For me too was the update-initramfs -u the solution. Thank you very much!!
nacho-a
 
Posts: 1
Joined: 2017-03-20 22:21

Re: [SOLVED] fsck error2 (No such file or directory)while ex

Postby hughparker1 » 2017-03-21 09:38

another happy customer @spacex :) that was a good call
hughparker1
 
Posts: 176
Joined: 2014-10-09 21:53
Location: Paisley, United Kingdom


Return to Installation

Who is online

Users browsing this forum: Lysander and 4 guests

fashionable