You are not logged in.

#1 2010-01-23 07:49:22

samsom
Member
Registered: 2009-07-17
Posts: 88

Filesystem check failed (SOLVED)

Hi,
I have been getting a filesystem check error since yesterday now and am unable to start Arch. Upon googling and searching the arch fora, I came upon some advice which I tried which has not worked yet. Hence the new post...

Basically, I was attempting to print something off and accidentally chose a printer that was not connected to my laptop. After half a minute or so, it repeatedly started giving me notifications that the printer was not connected...in excess of 200 messages that the printer was not working which continued to pop up despite me canceling the print job. The whole system got really sluggish  (for the first time in the last year) and I had to restart the laptop upon which the boot messages appear.
It gets to the point where its loading the various filesystems. It mounts root and says it fine. Then it says


/dv/sda3: clean, 171642/915712 files, 1837167/3662820 blocks
/dev/sda2 is mounted.  /dev/sda5 is mounted.

Filesystem check failed.
Please repair manually and reboot. Note that the root file system is currently mounted readonly. To remount it read-write type: mount -n -o remount  ,rw /
When you exit the maintenance shell the system will reboot automatically.

In my system,
/dev/sda3 is root
/dev/sda2 is boot
/dev/sda5 is home

I tried fsck which tells me that home and boot are still mounted.
So I booted up using an Ubuntu Live CD and checked and repaired each file system which it successfully did. Upon rebooting into Arch, I am getting the same message.
I have not installed anything new and had upgraded the whole system a few days before the problem started.
Not sure where to go from here.
Any help, please
Thanks

Samsom

Last edited by samsom (2010-01-24 22:42:41)


Samsom

Offline

#2 2010-01-23 09:44:22

zowki
Member
From: Trapped in The Matrix
Registered: 2008-11-27
Posts: 582
Website

Re: Filesystem check failed (SOLVED)

Try running fsck in the maintenence shell.


How's my programming? Call 1-800-DEV-NULL

Offline

#3 2010-01-23 10:16:50

samsom
Member
Registered: 2009-07-17
Posts: 88

Re: Filesystem check failed (SOLVED)

zowki wrote:

Try running fsck in the maintenence shell.

I did. But it keeps telling me that /dev/sda2 and /dev/sda5 are mounted. Do you want to proceed? ...May cause severe damage if run on a mounted system.
When I try to unmount the partitions. It just says

umount: /dev/sda5: not mounted

Not sure what this means, but when i run fsck after this, I get the same warning.

Samsom


Samsom

Offline

#4 2010-01-23 10:21:01

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: Filesystem check failed (SOLVED)

Use a live CD


~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#5 2010-01-23 10:27:19

samsom
Member
Registered: 2009-07-17
Posts: 88

Re: Filesystem check failed (SOLVED)

sHyLoCk wrote:

Use a live CD

I have used a live CD. Managed to unmount all the partitions and check and repair them successfully ( according to Gparted anyway).
Still no success.....


Samsom

Offline

#6 2010-01-23 16:12:58

fabertawe
Member
From: Lloegr
Registered: 2009-11-24
Posts: 279

Re: Filesystem check failed (SOLVED)

I had this problem a while ago. Repairing from the shell was successful (according to fsck) but Arch still failed with the same fsck error. The same happened with fsck from a live cd. Running check from GParted did fix it though, strangely.


Ryzen 9 5950X, X570S Aorus Pro AX, RX 6600, Arch x86_64

Offline

#7 2010-01-24 18:34:33

samsom
Member
Registered: 2009-07-17
Posts: 88

Re: Filesystem check failed (SOLVED)

Hi,
I have tried using an Ubuntu Live CD again and checked and repaired root, home and boot partitions.
I can mount all the partitions while using the Live CD. I have to log in as root to access my Arch Home folder...I am not sure why. As I can access my Arch Root folder without logging in as root.
I still cannot run fsck on the home and boot folder. When I run fsck, I get the message that the partition is mounted and I risk damage to the filesystem. When I try to unmount the home or boot partition, I get the messages

umount /dev/sda5: not mounted

I have rechecked my /etc/fstab file and it seems to be OK.
Also, when I run fsck from the Live CD, the filesystems seem OK. So why would it say in Arch, that its failing the check?
Is it possible to boot my Arch system without the filesystem check?
Samsom


Samsom

Offline

#8 2010-01-24 19:06:37

fabertawe
Member
From: Lloegr
Registered: 2009-11-24
Posts: 279

Re: Filesystem check failed (SOLVED)

Have you tried running GParted from the Ubuntu live cd?


Ryzen 9 5950X, X570S Aorus Pro AX, RX 6600, Arch x86_64

Offline

#9 2010-01-24 19:24:55

samsom
Member
Registered: 2009-07-17
Posts: 88

Re: Filesystem check failed (SOLVED)

fabertawe wrote:

Have you tried running GParted from the Ubuntu live cd?

Yup. And Gparted says that the filesystems are fine.
I am having to use Windows XP now sad


Samsom

Offline

#10 2010-01-24 22:42:18

samsom
Member
Registered: 2009-07-17
Posts: 88

Re: Filesystem check failed (SOLVED)

Fixed the problem.
The /dev/sda2 and /dev/sda5 were being mounted in the wrong place.
Instead of being mounted in /home and /boot as per /etc/fstab, they were being mounted in new directories in /media called /media/usbhd-sda2 and /media/usbhd-sda5. Upon deleting those folders, everything has gone back to normal.
I have no idea how those new folders got created...but problem solved now.

Thanks for the help, guys
Samsom


Samsom

Offline

#11 2010-01-26 18:38:24

fabertawe
Member
From: Lloegr
Registered: 2009-11-24
Posts: 279

Re: Filesystem check failed (SOLVED)

Glad you got is sorted. I had a mysterious /media/usbhd-sda? folder appear as well. Also, recently, my IDE drive changed from sdb to hda and my dvd drives changed to hdc and hdd! Don't know what the change was (udev?) but the trays won't stay out as well.


Ryzen 9 5950X, X570S Aorus Pro AX, RX 6600, Arch x86_64

Offline

#12 2010-02-01 15:58:44

m4h
Member
Registered: 2010-02-01
Posts: 1

Re: Filesystem check failed (SOLVED)

samsom wrote:

Fixed the problem.
The /dev/sda2 and /dev/sda5 were being mounted in the wrong place.
Instead of being mounted in /home and /boot as per /etc/fstab, they were being mounted in new directories in /media called /media/usbhd-sda2 and /media/usbhd-sda5. Upon deleting those folders, everything has gone back to normal.
I have no idea how those new folders got created...but problem solved now.

Thanks for the help, guys
Samsom

The problem in udev that do automount to filesystems that he find.
The config laying in /etc/udev/rules.d <--- there is some file with extention *.rules
The first string in the file is "KERNEL!="sd[a-z][0-9]", GOTO="media_by_label_auto_mount_end"
Mostly main fs mounted from device /dev/sda... to make udev ignore /dev/sda just change the string to:
"KERNEL!="sd[b-z][0-9]", GOTO="media_by_label_auto_mount_end
If you have more that two physical hdds sdb\sdc\sdd make the changes in config.
That help me to solve the same problem that samson had.

Last edited by m4h (2010-02-01 16:00:00)

Offline

#13 2010-09-12 23:40:35

puer
Member
From: Maine, USA
Registered: 2007-02-26
Posts: 8

Re: Filesystem check failed (SOLVED)

I think I've run into a similar problem as you samson.

can you explain in more detail how you were able to fix this?

when I'm logged into root, there isn't much filesytem to work with, just some basic .bashrc folders and such.  how were you able to access your /media partitions?

Thanks in advance.

Offline

#14 2010-09-13 06:01:46

samsom
Member
Registered: 2009-07-17
Posts: 88

Re: Filesystem check failed (SOLVED)

puer wrote:

when I'm logged into root, there isn't much filesytem to work with, just some basic .bashrc folders and such.  how were you able to access your /media partitions?

Thanks in advance.

I am assuming that you have used a Live CD and checked all your filesystems.
How come you don't have any filesystem under root? Are you checking from withins roots home folder as opposed to root itself?
So when you cd to / and then ls -a , do you not get the whole filesystem with all the home, var, bin, etc, media...... folders?

Samsom


Samsom

Offline

#15 2010-09-17 10:06:26

puer
Member
From: Maine, USA
Registered: 2007-02-26
Posts: 8

Re: Filesystem check failed (SOLVED)

I ended up trying out Knoppix, which allowed me to delete those usbhd-1 folders.  Upon restart, everything was back to normal.

Yay!

Offline

#16 2011-05-18 11:52:54

delphaber
Member
Registered: 2010-09-24
Posts: 9

Re: Filesystem check failed (SOLVED)

This happened to me this morning after an udev update!!!!!
I booted a livecd and fsck reported all ok.

I'll try to delete those folders smile

Offline

#17 2011-05-18 11:56:33

delphaber
Member
Registered: 2010-09-24
Posts: 9

Re: Filesystem check failed (SOLVED)

It worked!!!!!!!!

Deleted those usb-hdd* folders and arch booted again smile

Offline

#18 2011-05-30 18:50:13

Grimn
Member
Registered: 2006-12-23
Posts: 136

Re: Filesystem check failed (SOLVED)

I also had/still have the usbhdd folders and when I tried to delete one of them I noticed my hdd was making noise so figured out it was actually erasing data from it sad
Now grub fails to boot because it lost some critical file, any suggestion to avoid a full system re-install? :\

edit: Im also clueless about how to use LiveCD to perform a fsck on my disks

Last edited by Grimn (2011-05-30 18:52:09)

Offline

#19 2011-05-30 20:16:52

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Filesystem check failed (SOLVED)

That's unfortunate. Next time check a folder's contents before you go ahead and delete it.

Do you have a separate /boot partition ? Maybe it was mounted and you accidentally erased GRUB along with all the config files.


To do an fsck from a LiveCD (which can also be a USB stick), run blkid or (sudo) fdisk -l to find out what the heck you want to "fsck" and then run fsck /dev/sdb3

PS: You should open up a new topic, because this one has the SOLVED tag, meaning people will generally not bother since the OP found a solution.


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

Board footer

Powered by FluxBB