You are not logged in.

#401 2013-06-08 22:50:37

mfaridi
Member
Registered: 2010-12-15
Posts: 192

Re: filesystem Update Error /bin exists in filesystem

thanks
but I do not upgrade my system and do not upgrade packages and this problem happen for me, I only install some some packages for use AUR

karol wrote:

What have you done with regard to https://bbs.archlinux.org/viewtopic.php … 8#p1284628 ? Did you update your system?

Offline

#402 2013-06-08 22:54:04

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: filesystem Update Error /bin exists in filesystem

mfaridi, are you sure you can't chroot using a liveCD / liveUSB?

Please don't top post - write your reply under the quote, not above.

Offline

#403 2013-06-08 22:55:46

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: filesystem Update Error /bin exists in filesystem

mfaridi, if your system is unable to find all those binaries in their normal paths, obviously you upgraded at least some of the packages.  Otherwise, those files would be in place.  You really need to go try to fix your system with the advice given here instead of repeating the same barely parseable thing over and over again.

Offline

#404 2013-06-08 23:13:13

mfaridi
Member
Registered: 2010-12-15
Posts: 192

Re: filesystem Update Error /bin exists in filesystem

thank s all guys I will download livecd of arch linux and chroot it
but you must believe I do not upgrade packages and only install some packages
can I solve this problem without livecd or no

can I find another way to solve solve this problem

Last edited by mfaridi (2013-06-08 23:14:44)

Offline

#405 2013-06-08 23:15:48

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: filesystem Update Error /bin exists in filesystem

@mfaridi, read the thread and follow the instructions.  You have done nothing but say the same thing over and over again.  It doesn't matter what you think you did with your system, the way to fix it is clearly outlined in this thread.  READ IT!

Offline

#406 2013-06-09 00:17:59

tomisacat
Member
Registered: 2011-09-25
Posts: 43

Re: filesystem Update Error /bin exists in filesystem

I upgraded my system followed the notice but I forget to remove /bin /sbin /usr/sbin, so I failed to upgrade filesystem,after that I just reboot my computer and nightmare occurs! I cannot boot my system with systemd it shows kernel panic so I use rc.conf to boot my system,but when I run KDE it cannot run Plasma.Anybody could give me some advice?

Thank you for advance.

Offline

#407 2013-06-09 00:19:05

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: filesystem Update Error /bin exists in filesystem

Please search before posting.  There is a stickied thread about this already.

Offline

#408 2013-06-09 00:45:49

bruno321
Member
Registered: 2010-03-05
Posts: 89

Re: filesystem Update Error /bin exists in filesystem

I followed the instructions to correctly update. After updating filesystem, I get this message:

atención: los permisos de directorio difieren en /mnt/
sistema de archivos: 777  paquete: 755

which translated by me, it would read something as

warning: the directory permissions are different in /mnt
file system: 777 package: 755

What does this mean? Is this alright? Should I do anything about it?

FWIW, my /mnt directory only has three empty directories.

Thanks

Last edited by bruno321 (2013-06-09 00:49:41)

Offline

#409 2013-06-09 00:49:48

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: filesystem Update Error /bin exists in filesystem

Bruno, that should not be a problem - it's just a warning.

I gather that you changed the permissions on /mnt/ at some point, which is a reasonable thing* to do if you mount external media there that you want your user to be able to easily access.

* note: I seen arguments that one should only alter permissions of /media/ while leaving /mnt/ to only have root access.  I've never really got the point of those arguments though.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#410 2013-06-09 00:53:22

brandon88tube
Member
Registered: 2009-11-06
Posts: 84

Re: filesystem Update Error /bin exists in filesystem

OK, I'm one of "those" noobs that screwed something up. Even though I've been using linux for many years now, I still have very little clue as to what I'm doing half of the time. Anyways, the upgrade partially worked and it seemed to remove directories such as /bin etc., but it failed on the last part of installing filesystem. So, I didn't think anything of it at the time and chalked it up to another thing I have to research and exited rooted privileges... Now, I can't do anything because even su seems to be looking for /bin/bash. Unfortunately, I cannot create a symlink to /usr/bin which would solve some of the issues. If I missed something while I was skimming, please let me know before I reboot and end up really screwed.

Offline

#411 2013-06-09 00:55:21

bruno321
Member
Registered: 2010-03-05
Posts: 89

Re: filesystem Update Error /bin exists in filesystem

Trilby wrote:

Bruno, that should not be a problem - it's just a warning.

I gather that you changed the permissions on /mnt/ at some point, which is a reasonable thing* to do if you mount external media there that you want your user to be able to easily access.

* note: I seen arguments that one should only alter permissions of /media/ while leaving /mnt/ to only have root access.  I've never really got the point of those arguments though.

Thank you very much for a quick and reassuring answer!

Offline

#412 2013-06-09 01:02:27

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: filesystem Update Error /bin exists in filesystem

Merging with said sticky...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#413 2013-06-09 01:11:39

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: filesystem Update Error /bin exists in filesystem

brandon, if you still have a running terminal (tty or terminal emulator) then you can *hopefully* log in as root by specifying the full path to the shell:

/usr/bin/su -s /usr/bin/bash

Then, if that works you can finish the upgrade with pacman by, again, specifying the full path to pacman:

/usr/bin/pacman -Su

If these fail, there was something several pages back about calling the linker/loader's full path from the command line as a preface to any command - you may need that.

Failing any/all of these, you will probably need a live cd/usb to reboot into.

EDIT: I can't find the reference, but I believe to use the loader it would be:

/usr/lib/ld-linux.so.2 <command>

Last edited by Trilby (2013-06-09 01:22:16)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#414 2013-06-09 01:21:00

brandon88tube
Member
Registered: 2009-11-06
Posts: 84

Re: filesystem Update Error /bin exists in filesystem

Thanks Trilby, I was able to log in as root. However, pacman still says there is a conflict with filesystem and it failed to update. I must be misreading something or just don't understand well enough. I'll start by reading over this thread again.

EDIT: I ended up having to remove /sbin because it was still there for some reason even though /bin wasn't. Then I had to remove /usr/sbin because pacman was complaining. Did that and ran pacman -Su and all was good... I think

Last edited by brandon88tube (2013-06-09 01:37:00)

Offline

#415 2013-06-09 02:18:09

fluffy
Member
Registered: 2011-09-08
Posts: 6

Re: filesystem Update Error /bin exists in filesystem

HI,

I ran the update 48hrs ago as specified on the front page and when the update finished I lost xserver my screen went white then my box powered off (this becoming a regular occurrence as the cpu fan is dying and the cpu temp gets high).

I power cycle on the box and let it boot thinking all is right with the world, but during boot I get the message

ERROR: Root device mounted successfully, but /sbin/init does not exist.
Bailing out, you are on your own. Good luck.

sh: can't access tty; job control turned off
[rootfs /]#

so I panic, and have a beer.

all calmed and relaxed I troll the forums to see if others are having issues, I assumed correctly.

I rebooted the box and edited the grub kernel line to point to

init=/usr/lib/systemd/systemd

then continue to boot, things are looking up it gets past the previous error, but now I am greeted with a wall of failed status messages mixed in with some OK messages then it all comes to a grinding halt with

Failed to mount /boot.
See 'systemctl status boot.mount' for details.
"Dependency failed for local file system" 
10.504602 system-remount-fs[322]: /bin/mount for /dev/pts exited with exit status 1

Great I missed something during the update process and borked my install.

So I use a live cd and get in via chroot and mount all the partitions etc.. I do look at the file system only to see that /bin & /sbin are still there NOT symlinks.  I rename the to offending folders and create a symlink to point to /usr/bin for both then check my file system and NO symlinks, run the command again and it says I can't because they already exist.

I srsly don't want to, nor can I afford to rebuild this box, this install has been going strong for 6 years.

Also I became complacent years ago and stopped performing backups b4 I did upgrades. so I really don't want to bite that bullet just yet.

I have 1 hdd with 4 partitions on it
/
/boot
/swap
/home

simple setup no lvm.

what I'm looking for is help around the whole symlink thing, am I going about this trouble shooting the right way or is there another approach?

At this level of booting is there a log dump I can check to see what's going on?

Thanks for your time reading this and any feedback or insight you may offer.

Offline

#416 2013-06-09 02:19:53

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: filesystem Update Error /bin exists in filesystem

Merging with the stickied thread...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#417 2013-06-09 03:08:45

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,130

Re: filesystem Update Error /bin exists in filesystem

You don't need to create the symlinks. Install/reinstall the filesystem package and it will take care of them for you.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#418 2013-06-09 04:23:57

yungtrizzle
Member
Registered: 2011-04-24
Posts: 139

Re: filesystem Update Error /bin exists in filesystem

ewaller wrote:
yungtrizzle wrote:

what sync commands?

SYNC(1)                          User Commands                         SYNC(1)



NAME
       sync - flush file system buffers

SYNOPSIS
       sync [OPTION]

DESCRIPTION
       Force changed blocks to disk, update the super block.

       --help display this help and exit

       --version
              output version information and exit

AUTHOR
       Written by Jim Meyering.

REPORTING BUGS
       Report sync bugs to bug-coreutils@gnu.org
       GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
       General help using GNU software: <http://www.gnu.org/gethelp/>
       Report sync translation bugs to <http://translationproject.org/team/>

COPYRIGHT
       Copyright  (C) 2013 Free Software Foundation, Inc.  License GPLv3+: GNU
       GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
       This is free software: you are free  to  change  and  redistribute  it.
       There is NO WARRANTY, to the extent permitted by law.

SEE ALSO
       sync(2)

       The  full documentation for sync is maintained as a Texinfo manual.  If
       the info and sync programs are properly installed  at  your  site,  the
       command

              info coreutils 'sync invocation'

       should give you access to the complete manual.



GNU coreutils 8.21                 May 2013                            SYNC(1)

issuing

init --system

  attempts to replace pid 1 but without success

What we have here is a failure to communicate.  I meant:  In your bootloader, find the kernel line.  Does it have an init= clause now?  If so, what does it say.  In any event, use init=/usr/bin/bash on the command line in the bootloader.  That tells the kernel to use bash as the init system.  It works, but bash does not really make a good init system and shutdown is inelegant.  issuing two sync commands in a row before exiting bash ensures your disks are left in a clean state.   This is an experiment to see if we can even get the system to boot and, if so, provide an environment to maybe fix things.

It boots into a shell but bash complains

 bash : cannot set terminal process (-1) inappropriate device
 bash : no job control in this shell

The sync commands produce no output and exit causes kernel panic (as expected)

Offline

#419 2013-06-09 05:28:40

fluffy
Member
Registered: 2011-09-08
Posts: 6

Re: filesystem Update Error /bin exists in filesystem

jasonwryan wrote:

Merging with the stickied thread...

Thanks for the assistance and moving to the correct place.

cfr wrote:

You don't need to create the symlinks. Install/reinstall the filesystem package and it will take care of them for you.

Thanks that did the trick ;-)

----------------------

This may be related but, now I can't get past my login GDM all is does is refresh the username is there anyway I can abort this as a 1 off instance so I can get to the shell/ console/ terminal and get via root and see what's going on?

or am I going to have to chroot in again and hunt down the config files and edit them.

If I need to create a new thread I will, I appreciate the help.

Login issue solved, ConsoleKit was causing the issue removed package and its BAU.

Thanks for all your help chaps.

This community is why I love Arch, well that and the distro is awesome ;-)

Last edited by fluffy (2013-06-09 11:28:45)

Offline

#420 2013-06-09 05:29:21

axelectrik
Member
Registered: 2012-01-25
Posts: 126

Re: filesystem Update Error /bin exists in filesystem

This also happend to me, or something similiar
I tried booting with a Live CD, I copied /bin /sbin from the rootfs  and chroot on the system with the problem, then I reinstalled "filesystem"
It couldn't, so I deleted /bin and /sbin, and after reinstalling filesystem, everything was back to normal, obviously I recommend to make a backup from both dirs.

THis fixed a problem where the system couldn't find bash, and couldn't bind /sbin for booting

Offline

#421 2013-06-09 05:37:00

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: filesystem Update Error /bin exists in filesystem

Sorry I am jumping in and out of the forums today, a lot of things going on in the real world smile  Okay, the system is not hopeless.  When you boot again using bash as your init system, verify that /sbin is a link to /usr/bin and that /usr/bin/init exists and is a link to ../lib/systemd/systemd

ewaller$@$odin ~ 1032 %ls -l /sbin
lrwxrwxrwx 1 root root 7 May 31 11:40 /sbin -> usr/bin
ewaller$@$odin ~ 1033 %ls /usr/bin/init
/usr/bin/init
ewaller$@$odin ~ 1034 %ls -l /usr/bin/init 
lrwxrwxrwx 1 root root 22 May 30 05:55 /usr/bin/init -> ../lib/systemd/systemd
ewaller$@$odin ~ 1035 %

Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Online

#422 2013-06-09 07:47:44

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

Re: filesystem Update Error /bin exists in filesystem

WorMzy wrote:

Get a list of packages that owns files in /bin, /sbin, and /usr/sbin (tested in bash and zsh):

grep '^s\?bin/\|usr/sbin' /var/lib/pacman/local/*/files | cut -d ":" -f 1 | uniq | cut -d "/" -f 6

Find unpackaged files in /bin, /sbin, and /usr/sbin:

find /bin /sbin /usr/sbin -exec pacman -Qo -- {} + >/dev/null

Again, do NOT use pacman's --force flag to install the filesystem update.

Hi!

I did

pacman -Syu --ignore filesystem

followed by

pacman -Syu

resulting in

error: failed to commit transaction (conflicting files)
filesystem: /bin exists in filesystem
filesystem: /sbin exists in filesystem
filesystem: /usr/sbin exists in filesystem
Errors occurred, no packages were upgraded.
 grep '^s\?bin/\|usr/sbin' /var/lib/pacman/local/*/files | cut -d ":" -f 1 | uniq | cut -d "/" -f 6

gives

filesystem-2013.03-2
gen-init-cpio-2.6.36-1
grub-0.97-21
tcp_wrappers-7.6-12
tgt-1.0.26-2

and

 find /bin /sbin /usr/sbin -exec pacman -Qo -- {} + >/dev/null

gave

error: No package owns /sbin/lsmod

Can someone suggest what to do next?


archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

#423 2013-06-09 09:24:36

msthev
Member
Registered: 2012-04-05
Posts: 177

Re: filesystem Update Error /bin exists in filesystem

And why didn't you follow the instructions on the front page? The first command (with `pacman -Qm -`) would have given you the list of packages that need fixing.
Hint: remove those four unsupported packages (all from your list except filesystem), backup and remove /sbin/lsmod, then update. Don't forget to reinstall your bootloader (read about Syslinux if you want something simple).

Last edited by msthev (2013-06-09 09:27:25)

Offline

#424 2013-06-09 09:28:29

mfaridi
Member
Registered: 2010-12-15
Posts: 192

Re: filesystem Update Error /bin exists in filesystem

Can I use archbang for liveCD for fix this problem ? or use this iso file
http://mirror.aarnet.edu.au/pub/archlin … 1-dual.iso
if I download this ISO file ,can I fix my problem ?

Offline

#425 2013-06-09 09:36:12

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: filesystem Update Error /bin exists in filesystem

You were warned...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB