You are not logged in.

#1 2012-02-04 15:09:41

madper
Member
Registered: 2011-11-26
Posts: 11

After adding fsck hook in mkinitcpio.conf filesystem check still fail

Hi,
There is a problem:
After upgrade my computer, it say:
/dev/sda6 is mounted. e2fsck: Cannot continue, aborting.
Filesystem check failed.


My sda6 is mounted in /usr.
I follow this page "http://mailman.archlinux.org/pipermail/ … 24124.html" add fsck and shutdown in mkinitcpio.conf.
And now it is ```HOOKS="base udev fsck autodetect pata scsi sata filesystems usbinput shutdown" ```
But when I reboot it, it still say /dev/sda6 is mounted. e2fsck: Cannot continue, aborting.

What's wrong with me?
                                Thank you,
                                   madper
                                            China, Beijing

Offline

#2 2012-02-04 15:10:11

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: After adding fsck hook in mkinitcpio.conf filesystem check still fail

Because you didn't recreate your initramfs images after changing the config.

Offline

#3 2012-02-04 15:20:42

madper
Member
Registered: 2011-11-26
Posts: 11

Re: After adding fsck hook in mkinitcpio.conf filesystem check still fail

falconindy wrote:

Because you didn't recreate your initramfs images after changing the config.

Thanks for your reply!
Did you mean using "mkinitcpio -p linux"?
After I run this command, it say:
/usr/bin/mkinitcpio: line 95: /usr/bin/file: Permission denied
Error: invalid kernel specifier: `/boot/vmlinuz-linux'

Will you tell me how to fix it?
Thank you again!
                                         ---madper    from Beijing, China

Offline

#4 2012-02-04 16:57:13

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,536

Re: After adding fsck hook in mkinitcpio.conf filesystem check still fail

better

pacman -S --needed linux

That will recreate the initramfs correctly


do it good first, it will be faster than do it twice the saint wink

Offline

#5 2012-02-04 17:02:09

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: After adding fsck hook in mkinitcpio.conf filesystem check still fail

It will also do the exact same thing as calling 'mkinitcpio -p linux' directly...

Reinstall the 'file' package first, I suppose.

Offline

#6 2012-02-05 01:27:35

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,701

Re: After adding fsck hook in mkinitcpio.conf filesystem check still fail

Moderator:

Madper:  Welcome to Arch Linux.  Please review the rules and do not crosspost

https://bbs.archlinux.org/viewtopic.php … 6#p1052506


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#7 2012-02-05 02:19:15

madper
Member
Registered: 2011-11-26
Posts: 11

Re: After adding fsck hook in mkinitcpio.conf filesystem check still fail

TheSaint wrote:

better

pacman -S --needed linux

That will recreate the initramfs correctly

Thank you.
When I use ~~~ pacman -S --needed linux~~~ it say : "warning: linux-3.2.2-1 is up to date -- skipping   there is nothing to do"
It will be same by using "pacman -Sf --needed linux"
                                                   madper

Offline

#8 2012-02-05 02:51:38

madper
Member
Registered: 2011-11-26
Posts: 11

Re: After adding fsck hook in mkinitcpio.conf filesystem check still fail

falconindy wrote:

It will also do the exact same thing as calling 'mkinitcpio -p linux' directly...

Reinstall the 'file' package first, I suppose.

Thank you very much, sir.
I reinstall the file package but the "find" package also say "Permission denied". I try to use ~chmod a+x /usr/bin/find~ and then it say: "cannot execute binary file". Just the same with "file" package. And I can't use pacman reinstall it. (I can't connect to internet since I use pppoe but it can't work now.)
Is there some wrong with my /usr or all of my package? And how to fix it?

Offline

#9 2012-02-05 03:28:41

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,536

Re: After adding fsck hook in mkinitcpio.conf filesystem check still fail

That's so strange. It seems you don't have permissions to do anything on that installation.
Make sure you're in as root.
Otherwise, better to prepare for a new installation.


do it good first, it will be faster than do it twice the saint wink

Offline

#10 2012-02-06 16:25:47

IoanToo
Member
Registered: 2011-11-18
Posts: 2

Re: After adding fsck hook in mkinitcpio.conf filesystem check still fail

madper wrote:
falconindy wrote:

It will also do the exact same thing as calling 'mkinitcpio -p linux' directly...

Reinstall the 'file' package first, I suppose.

Thank you very much, sir.
I reinstall the file package but the "find" package also say "Permission denied". I try to use ~chmod a+x /usr/bin/find~ and then it say: "cannot execute binary file". Just the same with "file" package. And I can't use pacman reinstall it. (I can't connect to internet since I use pppoe but it can't work now.)
Is there some wrong with my /usr or all of my package? And how to fix it?



Have you remembered to remount the root partition read-write ?

Offline

#11 2012-03-23 07:38:38

t1nk3r3r
Member
From: The Pacific Northwest
Registered: 2011-03-22
Posts: 79

Re: After adding fsck hook in mkinitcpio.conf filesystem check still fail

madper wrote:

After I run this command, it say:
/usr/bin/mkinitcpio: line 95: /usr/bin/file: Permission denied
Error: invalid kernel specifier: `/boot/vmlinuz-linux'

Since fsck failed at boot, I assume you logged in as root?
If so, you'll likely have partitions that may not be mounted.  Ergo, limited functionality until you mount things manually.
To check, what's output of:
cat /etc/mtab
versus
cat /etc/fstab
?

Assuming the rest of your system can boot properly, edit /boot/grub/menu.lst:
kernel ... ... fastboot 3
to get around fsck temporarily.


--------------------------The only wasted day is one in which you learn nothing.--------------------------

Offline

Board footer

Powered by FluxBB