You are not logged in.

#1 2013-06-03 16:23:12

pingpong
Member
From: Los Angeles
Registered: 2010-12-30
Posts: 104

[Solved] failed after upgrade filesystem

I followed the instructions on Binaries move to /usr/bin requiring update intervention, yet perhaps I did something wrong the last step

#pacman -Su

I still got error: failed to commit transaction (conflicting files)
filesystem: /bin exists in filesystem

Unfortunately, I reboot the system and it didn't boot into a console

the first error is something like systemd[1]: Failed to mount Huge Pages File System...

Need help on this badly, thanks in advance.

Last edited by pingpong (2013-06-03 18:41:48)

Offline

#2 2013-06-03 16:39:50

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

Re: [Solved] failed after upgrade filesystem

Why in the world you would reboot?

Whatever, now we have to deal with it. Do you have an Arch install disk around? Find out what's in /bin and fix that first. Then rm the /bin dir and install the filesystem package using pacman's --root option.

Last edited by Scimmia (2013-06-03 16:40:46)

Offline

#3 2013-06-03 16:49:34

pingpong
Member
From: Los Angeles
Registered: 2010-12-30
Posts: 104

Re: [Solved] failed after upgrade filesystem

You are absolutely right, why on earth would I reboot...

I don't have an Arch install disk around but can create one. Meanwhile, could you explain how to install the filesystem package using pacman's --root option?

Offline

#4 2013-06-03 16:54:00

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

Re: [Solved] failed after upgrade filesystem

pingpong wrote:

Meanwhile, could you explain how to install the filesystem package using pacman's --root option?

man pacman wrote:

       -r, --root <path>
           Specify an alternative installation root (default is /). This should not be used as a way to install software
           into /usr/local instead of /usr. This option is used if you want to install a package on a temporary mounted
           partition that is "owned" by another system.  NOTE: if database path or logfile are not specified on either the
           command line or in pacman.conf(5), their default location will be inside this root path.

Even if you don't have a functional Arch system, you can still look it up: https://bbs.archlinux.org/viewtopic.php?id=145382
http://manned.org/pacman.8

Offline

#5 2013-06-03 16:55:07

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

Re: [Solved] failed after upgrade filesystem

if you mount your root filesystem to /mnt (don't forget to mount all other partitions), you should be able to just do something like "pacman -S filesystem --root /mnt". This allows you to install something to a separate location without needing to chroot.

Offline

#6 2013-06-03 17:57:32

pingpong
Member
From: Los Angeles
Registered: 2010-12-30
Posts: 104

Re: [Solved] failed after upgrade filesystem

Thanks! Alright I boot into a prompt from the installation disk. I don't want to screw it this time...

I have 4 partitions: root, boot, home and swap
I mounted root, home. and boot to /mnt, /mnt/root, /mnt/boot (in that order). Do I need to mount swap? If so, where should I mount it to?
I checked my /bin and /sbin. /sbin is empty and /bin has only three files: checkpassword.login, login1 and login2. Do I need to do anything with them, or I can go ahead and removed those directories?
I suppose after removing those directories, all I need is to issue

"pacman -S filesystem --root /mnt"

and that should do it, right?

Offline

#7 2013-06-03 17:59:41

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

Re: [Solved] failed after upgrade filesystem

Not an Installation issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#8 2013-06-03 18:02:41

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

Re: [Solved] failed after upgrade filesystem

you don't need to mount swap.

/sbin should not exist, see if something still owns it with "pacman -Qo /mnt/sbin --root /mnt". Where did those files in /bin come from? If they're owned by a package (see previous command), that package needs to be removed to be reinstalled after it's fixed to put it's files in /usr/bin. If they're not owned by anything, you can delete or move them, whatever you want.

Once those two dirs are gone, check /usr/sbin as well. It should exist, be empty, and be owned by only filesystem. Once all of that is good, run that last command.

Last edited by Scimmia (2013-06-03 18:03:31)

Offline

#9 2013-06-03 18:34:47

pingpong
Member
From: Los Angeles
Registered: 2010-12-30
Posts: 104

Re: [Solved] failed after upgrade filesystem

okay 2 issues:
1) I checked /sbin was owned by fgetty, when I issued pacman -R fgetty --root/mnt, it not only removed fgetty but also deleted /sbin (in fact it deleted /bin as well. Note: I moved the 3 files in /bin to somewhere else)
2) after issuing pacman -S filesystem --root /mnt, it said
warning: /mnt/etc/profile installed as /mnt/etc/profile.pacnew
warning: directory permission differ on /mnt/proc/
filesystem: 755 package: 555
warning: director permission differ on /mnt/sys/
filesystem: 755 package: 555

should I go ahead and change the permission of both /proc and /sys back to 555

Offline

#10 2013-06-03 18:40:37

pingpong
Member
From: Los Angeles
Registered: 2010-12-30
Posts: 104

Re: [Solved] failed after upgrade filesystem

By the way, it boots up now. Thanks you all for the help.

Offline

#11 2013-06-03 18:46:32

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

Re: [Solved] failed after upgrade filesystem

pingpong, don't worry about those. They're not actually on disk.

Offline

Board footer

Powered by FluxBB