You are not logged in.

#376 2013-06-08 15:29:10

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

Re: filesystem Update Error /bin exists in filesystem

provide the full path to the shell for the chroot: /usr/bin/bash.  I had to do the same thing on one of my systems.


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

Offline

#377 2013-06-08 15:31:42

HeartsAlive
Member
Registered: 2013-06-08
Posts: 8

Re: filesystem Update Error /bin exists in filesystem

Tried that, same problem.

Offline

#378 2013-06-08 15:33:51

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,560

Re: filesystem Update Error /bin exists in filesystem

try reinstalling bash. Boot from the liveusb, mount your root partition to /mnt (mount /mnt/usr if you use a separate /usr), and use 'pacman --root /mnt -S bash'

Offline

#379 2013-06-08 15:53:47

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

Re: filesystem Update Error /bin exists in filesystem

That was one of the first things I did, the systemd fails miserably.

Offline

#380 2013-06-08 16:01:37

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,560

Re: filesystem Update Error /bin exists in filesystem

Why? "fails miserably" doesn't tell us much other than that it gets past the /sbin/init error.

Offline

#381 2013-06-08 16:12:57

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

Re: filesystem Update Error /bin exists in filesystem

Let's eliminate the init system.  What happens if you use init=/usr/bin/bash on the kernel command line.  Note that, if you find yourself in a usable shell you can fix some things, but do not expect it to be a fully functional system.  When you leave, issue two sync commands followed by closing the shell.  At that point, the system will panic then you try to kill process 1.


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

Offline

#382 2013-06-08 16:52:46

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

Re: filesystem Update Error /bin exists in filesystem

ewaller wrote:

Let's eliminate the init system.  What happens if you use init=/usr/bin/bash on the kernel command line.  Note that, if you find yourself in a usable shell you can fix some things, but do not expect it to be a fully functional system.  When you leave, issue two sync commands followed by closing the shell.  At that point, the system will panic then you try to kill process 1.

what sync commands? issuing

 init --system

  attempts to replace pid 1 but without success

Scimmia wrote:

Why? "fails miserably" doesn't tell us much other than that it gets past the /sbin/init error.

Only udev starts up properly, every other service fails.

Offline

#383 2013-06-08 18:08:05

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

Re: filesystem Update Error /bin exists in filesystem

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.

Last edited by ewaller (2013-06-08 18:09:14)


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

Offline

#384 2013-06-08 20:12:30

HeartsAlive
Member
Registered: 2013-06-08
Posts: 8

Re: filesystem Update Error /bin exists in filesystem

I'm getting an error trying to use pacman at all; failed to initialize alpm library (could not find or read directory)

Offline

#385 2013-06-08 20:14:59

HeartsAlive
Member
Registered: 2013-06-08
Posts: 8

Re: filesystem Update Error /bin exists in filesystem

Also, the shell I'm using is zsh, not sure if that could be causing any problems.

Offline

#386 2013-06-08 21:16:18

krork
Member
Registered: 2013-06-08
Posts: 29

Re: filesystem Update Error /bin exists in filesystem

Hi,
I've read the thread but I'm not quite clear on how to proceed:

I instinctively copied all (!) the files in /bin /sbin /usr/sbin to /usr/bin. My instinct sucks.

Now I get a whole lot of "file exists" errors when trying to run the update.

I think I read somewhere in this thread that this was not that big a deal, but that I just needed to update my file list in /var/lib/pacman/local , but the only instruction I have found so far for that is to manually reinstall the package for which this is the case, assuming it is the case for ONE package; however, I have a quazillion of packages with the "file exists" error. 

Man, I wish I had read this thread before thinking "I can do this".

Offline

#387 2013-06-08 21:30:36

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,560

Re: filesystem Update Error /bin exists in filesystem

HeartsAlive, that usually means you didn't mount all of the filesystems you need or you gave the wrong root.

Offline

#388 2013-06-08 21:51:02

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

Re: filesystem Update Error /bin exists in filesystem

I don't know if this would be the best idea, krork, but it wouldn't be quite the worst: use sed to fix all the file lists.

sed -i 's|^bin/|usr/bin/|' /var/lib/pacman/local/*/files
sed -i 's|^sbin/|usr/bin/|' /var/lib/pacman/local/*/files
sed -i 's|^usr/sbin/|usr/bin/|' /var/lib/pacman/local/*/files

EDIT: there are no leading slashes in the files files, I've modified the command appropriately.

Last edited by Trilby (2013-06-09 12:52:50)


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

Offline

#389 2013-06-08 21:53:42

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

Re: filesystem Update Error /bin exists in filesystem

I would say at the poit that krork has gotten himself to, doing this would certainly be no less sane than what he already did, and actually has the possibility of being beneficial.  I would say go for it... cautiously.

Offline

#390 2013-06-08 21:56:38

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,560

Re: filesystem Update Error /bin exists in filesystem

I would add the g flag to each of those sed commands or it will only replace the first one.

And while it's not a great solution, I don't have a better one. I'd say go for it. Most of them will be replaced after the update anyway, so they shouldn't matter too much.

Last edited by Scimmia (2013-06-08 21:59:13)

Offline

#391 2013-06-08 22:02:18

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

Re: filesystem Update Error /bin exists in filesystem

The g is irrelevant as there is only one file name per line in the files; but it wouldn't do any harm either.  The absence of the 'global' option does the replacement on the first instance in each line, not in each file.  And the ^ at the beginning ensures it only replaces at the beginning of the line anyways (to avoid replacing any good /usr/bin/s with /usr/usr/bin).

Last edited by Trilby (2013-06-08 22:03:34)


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

Offline

#392 2013-06-08 22:10:44

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

Re: filesystem Update Error /bin exists in filesystem

please see this link

https://bbs.archlinux.org/viewtopic.php?id=164795
I take photo when my system boot please see this

yesterday yesterdat when ireboot my system I see error about emergency mode. and I open another post but they close it please see this post
http://db.tt/CoKw3oZI

Last edited by mfaridi (2013-06-08 22:15:21)

Offline

#393 2013-06-08 22:14:33

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

Re: filesystem Update Error /bin exists in filesystem

They closed it because you opened a new thread after not following advice here.

Edit: This is what jasonwryan told you earlier:

jasonwryan wrote:
mfaridi wrote:

grub 0.97-21
gen-init-cpio 2.6.36-1
grub 0.97-21
sysvinit 2.88-9
consolekit 0.4.6-4
dcron 4.5-4
initscripts 2012.10.1-1
tcp_wrappers 7.7-1

None of those packages are supported.


Merging with the stickied thread.

Last edited by WonderWoofy (2013-06-08 22:15:20)

Offline

#394 2013-06-08 22:20:02

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

Re: filesystem Update Error /bin exists in filesystem

mfaridi, we do see your posts.  What do you want us to do when we see them?  Presumably you want advice on how to fix the problem ... but you've been given that already, and you clearly have not read/applied it.

Read this thread.  Apply the advice.  There is no magic wand we can wave to fix your computer for you over the internet.


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

Offline

#395 2013-06-08 22:22:22

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

Re: filesystem Update Error /bin exists in filesystem

thanks
but I do not know why system can not boot
after long time search,  I do not change my system and do not delete app and files and only inst tall some packages foruse AUR packages
I do not delete grub or other packages and do not modify files in /bin and /sbin
but I do not know why my system boot


WonderWoofy wrote:

They closed it because you opened a new thread after not following advice here.

Edit: This is what jasonwryan told you earlier:

jasonwryan wrote:
mfaridi wrote:

grub 0.97-21
gen-init-cpio 2.6.36-1
grub 0.97-21
sysvinit 2.88-9
consolekit 0.4.6-4
dcron 4.5-4
initscripts 2012.10.1-1
tcp_wrappers 7.7-1

None of those packages are supported.


Merging with the stickied thread.

Offline

#396 2013-06-08 22:25:58

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

Re: filesystem Update Error /bin exists in filesystem

mfaridi wrote:

I do not delete grub or other packages and do not modify files in /bin and /sbin
but I do not know why my system boot

That's exactly why it doesn't boot.  For &*@ sake, read the front page news, and this thread.  READ IT.

Unless you show some indication that you've at least tried to read the information that is available, I will not respond again.  If you really want help, read what has been written to help you.  I'm starting to suspect, though, that you don't really want help.

Last edited by Trilby (2013-06-08 22:27:24)


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

Offline

#397 2013-06-08 22:27:17

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

Re: filesystem Update Error /bin exists in filesystem

my problem is this why my system can not boot when I do not change it and do not delete packages and do not modify files and I don't upgrade packages pac,I only install some packages for use AUR packages

Offline

#398 2013-06-08 22:30:32

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

Re: filesystem Update Error /bin exists in filesystem

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

Offline

#399 2013-06-08 22:31:27

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

Re: filesystem Update Error /bin exists in filesystem

You are partaking in a thread that has the very answers you seek.  Not only that, but advice has already been given to you, which you apparently chose to ignore.  Your system will not boot because you chose to ignore this advice.  I don't know what more you really want.

Offline

#400 2013-06-08 22:31:30

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

Re: filesystem Update Error /bin exists in filesystem

This is your final warning: don't post here again until you have chrooted in, and tried  to fix your system according to the instructions that appear on pretty much every page of this thread.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB