Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

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

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
hughparker1
Posts: 177
Joined: 2014-10-09 21:53
Location: Paisley, United Kingdom

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

#1 Post by hughparker1 »

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.

User avatar
ralph.ronnquist
Posts: 342
Joined: 2015-12-19 01:07
Location: Melbourne, Australia
Been thanked: 6 times

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

#2 Post by ralph.ronnquist »

Having spent a little bit of @dasein's billions, I've found a probably relevant documentation at
https://www.freedesktop.org/software/sy ... rator.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.

spacex
Posts: 637
Joined: 2015-01-17 01:27

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

#3 Post by spacex »

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.

hughparker1
Posts: 177
Joined: 2014-10-09 21:53
Location: Paisley, United Kingdom

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

#4 Post by hughparker1 »

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.

spacex
Posts: 637
Joined: 2015-01-17 01:27

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

#5 Post by spacex »

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

Freigeist
Posts: 1
Joined: 2016-04-18 11:27

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

#6 Post by Freigeist »

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!

hughparker1
Posts: 177
Joined: 2014-10-09 21:53
Location: Paisley, United Kingdom

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

#7 Post by hughparker1 »

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

nacho-a
Posts: 1
Joined: 2017-03-20 22:21

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

#8 Post by nacho-a »

For me too was the update-initramfs -u the solution. Thank you very much!!

hughparker1
Posts: 177
Joined: 2014-10-09 21:53
Location: Paisley, United Kingdom

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

#9 Post by hughparker1 »

another happy customer @spacex :) that was a good call

TimKarl
Posts: 1
Joined: 2018-11-26 21:55

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

#10 Post by TimKarl »

@spacex save live time :D

Code: Select all

update-initramfs -u
After a change of any partitions from a SATA to a SSD I saw the same fsck.ext4 error message. Now it's ok.

Thank You very much

dennisbbb
Posts: 1
Joined: 2020-03-28 02:38

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

#11 Post by dennisbbb »

After moving from virtualbox to vmware, I started seeing the error 2 message.
Did sudo update-initramfs -u and my sinus is now cleared. Thanks @spacex!

Post Reply