You are not logged in.
Hello!
I've update my system yesterday (I forgot to check what was updated, shame for me) and the system does not boot up after reboot. It is boots to rootfs with message:
fsck.btrfs: Checking filesystem on /dev/sda3
/sbin/fsck.btrfs: line 53: btrfsck: not found
ERROR: Bailing out. Run 'fsck /dev/sda3' manually
*******FILESYSTEM CHECK FAILED*********
*
* Please run fsck manually. After leaving
* this maintance shell, the system will
* reboot automatically
**********************
sh: can't access tty; job control turned off
[rootfs /]#I tried to run "fsck /dev/sda3" manually, but it said "/sbin/fsck.btrfs: line 53: btrfsck: not found". I don't have "btrfsck" in my rootfs, but I have it on my /dev/sda3 partition.
I tried t mount this partition and add path "/new_root/bin" to my path (export PATH=$PATH:/new_root/bin) but I have message "error while loading shared libraries: libzo2.so.2": cannot open shared object file: No such file or directory
I also tried to "chroot /new_root /sbin/init" but I have message "Trying to run as user instance, but the system has not been booted with systemd"
I also tried to fix fsck.btrfs and add "exit 0" to the very beginning of script and then boot with "./init" or "chroot /new_root /sbin/init" but it does not work
And I tried to google a lot as well but it didn't helped me
I also tried to mount my other partitions and they work fine.
Do anybody have ideas how can fix that? I also can do new installation of arch (as I understand, I didn't lost my files because I have all my partitions fine) but I don't want to lose several days to edit configurations files of the system again...
Last edited by Shagabutdinov (2014-01-14 01:22:45)
Offline
Do you have /usr/bin/fsck.btrfs symlinked to /usr/bin/btrfsck?
Edit: I also don't know what you mean by "fix fsck.btrfs" as that really shouldn't exist at all. The only remotely acceptable thing would be to have fsck.btrfs as a copy or symlink to /usr/bin/true. But even that is something of a dirty hack to make some systems not complain.
Last edited by WonderWoofy (2014-01-13 05:33:26)
Offline
Thank you for your reply! I'm not able to do the symlink or edit this file, because it is rootfs partition and I don't know how can I edit and save the file. If I modify any file in this partition after reboot I lose all my modifications because rootfs mounts to the RAM of my computer. Do you have any ideas how can modify the files on rootfs and save for future usages?
Even when I fix this file, I run "./init" or "chroot /new_root /sbin/ini" and have this complain about "Trying to run as user instance, but the system has not been booted with systemd". And I also don't have btrfsck in my rootfs partition, only on the /dev/sda3 which is not mounted when system stacks in rootfs, so it is not able to create a symlink...
I agree to make symlink to /bin/true, but I don't know how to save it in rootfs for future boots.
Last edited by Shagabutdinov (2014-01-13 06:17:45)
Offline
What in the world do you mean "I also tried to fix fsck.btrfs and add "exit 0" to the very beginning of script..." That file shouldn't exist at all, what are you editing?
And what do you mean "rootfs mounts to the RAM of my computer"? That makes no sense. As long as the partition is mounted rw, you should be able to edit files on it. Get rid of btrfs.fsck and try again.
Edit: Ok, I think I see what you're saying. Somehow you generated an initramfs with some kind of screwy btrfs.fsck script. In that case, you need to boot from an install disk, chroot into the system, fix your mkinitcpio.conf, and regenerate the initramfs.
Edit2: Actually, try adding fsck.mode=skip to your kernel command line first, you may be able to get into the system that way. If you do, you can then fix your initramfs from there.
Last edited by Scimmia (2014-01-13 06:32:22)
Offline
"That file shouldn't exist at all, what are you editing?" - it does exists in my installation;
"That makes no sense" - therefore when I removing or edit this file it appears again unchanged after reboot.
As I understood correctly, you ask me to remove the file "fsck.btrfs" and do the reboot. This is the very first thing that I did when my system stoped to load and it doesn't work: file appears again after reboot.
Offline
See my edits above, you need to fix your initramfs. After you do that, you also need to figure out where the hell that script came from.
Offline
If you are using btrfs as the rootfs, then you really shouldn't be using the fsck hook anyway. Btrfs is not meant to be fscked all the time, or ever for that matter. At this point in development you should really only use btrfsck if you are explicitly told to do so by a btrfs dev.
You say that fsck.btrfs does exist in your system, so if this is the case you either put it there yourself or you are not using Arch Linux. After you use a live media to chroot into your system, remove the fsck hook and then regenerate the initramfs, you should go and delete that fsck.btrfs. You should also make sure that the pass number is zero for any btrfs filesystem in the fstab.
Offline
I just login to chroot and removed package btrfs-progs which added hook to /usr/local/initcpio/hooks, made new image with mkinitcpio but problem is still same; can you help me and tell where I have to dig to get rid of this? My /etc/mkinitcpio.conf looks pretty standard and there is nothing about btrfs package…
Offline
I've finally fixed it; what I did:
1. Booted with live cd
2. Removed package btrfs-progs
3. Removed /bin/fsck.btrfs
4. Run mkinicpio -p linux
4.1. Got message "fsck.btrfs not found, fsck will not run"
5. Rebooted the system
Thank you a lot, Scimmia and WonderWoofy!
P.S. WonderWoofy, you are right, I remembered that I've created this fsck.btrfs because I was annoyed of messages that system needs to check my disk for errors…
Offline
Problem solved.
Last edited by Shagabutdinov (2014-01-13 10:17:42)
Offline
Again, btrfs is not meant to be fsck'ed all the time. So you would see absolutely no warning messages if you removed the fsck hook like you should.
Edit: Please mark the thread as [Solved]. This can be done by editing the first post, which will allow you to edit the title as well.
Last edited by WonderWoofy (2014-01-13 16:48:33)
Offline
You might want to reinstall btrfs-progs. It had nothing to do with your problem and important utilities for working with btrfs.
Offline