You are not logged in.
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
Tried that, same problem.
Offline
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
That was one of the first things I did, the systemd fails miserably.
Offline
Why? "fails miserably" doesn't tell us much other than that it gets past the /sbin/init error.
Offline
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
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
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
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
I'm getting an error trying to use pacman at all; failed to initialize alpm library (could not find or read directory)
Offline
Also, the shell I'm using is zsh, not sure if that could be causing any problems.
Offline
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
HeartsAlive, that usually means you didn't mount all of the filesystems you need or you gave the wrong root.
Offline
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
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
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
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
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
They closed it because you opened a new thread after not following advice here.
Edit: This is what jasonwryan told you earlier:
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-1None of those packages are supported.
Merging with the stickied thread.
Last edited by WonderWoofy (2013-06-08 22:15:20)
Offline
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
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
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-1None of those packages are supported.
Merging with the stickied thread.
Offline
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
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
What have you done with regard to https://bbs.archlinux.org/viewtopic.php … 8#p1284628 ? Did you update your system?
Offline
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
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.
Offline