You are not logged in.

#1 2008-10-05 09:59:58

jeroenv
Member
Registered: 2004-11-29
Posts: 36

pacman -Syu fscked up my system

I ran in a disk-full situation while running pacman -Syu. This totally and irreversably ruined my system sad. After downloading all packages (everything since the last full update of 20 august) it ran the usual pacman checks and then started installing the packages. After a few succesfull installs the / filesystem was full and installing failed from thereon. Yet pacman went on and on with the remaining packages, including a new kernel which also failed miserably and from there it went nasty. Messages from ldconfig about invalid ELF headers in libraries etc.. Yet pacman continued like nothing happened.

After it had finally finished, my system was unusable and also beyond repair. First i freed up some disk space (/bin/rm still worked). But pacman would not run anymore (segmentation error). Pacman --debug also crashed. Just about everything i tried to start, failed with /urs/lib/libetcetera errors about invalid ELF headers.

Finally i tried rebooting but that didn't work (it could not locate the root filesystem), which was no surprise having seen all the error messages during the installation of the kernel package.

I'm left with no alternative but to download a fresh iso image and continue from there.

With all the checks from pacman during its upgrades, apparently there is no check or warning for a safe marging of free diskspace. Wouldn't that be a nice feature? It also would be nice if pacman would just stop after the first failed package.

Offline

#2 2008-10-05 10:13:13

molom
Member
From: Australia
Registered: 2008-01-21
Posts: 264
Website

Re: pacman -Syu fscked up my system

Next time you install arch, use Clonezilla to make an image that will save you from re-installing arch, it would save your quota and time.

Offline

#3 2008-10-05 10:32:10

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 1,946
Website

Re: pacman -Syu fscked up my system

It suprises me there is no disk space check yet in pacman.  Indeed this is a must imho.  (And it already knows how much space the packages will take anyway so it should be easy to do)

Reported: http://bugs.archlinux.org/task/11658

Last edited by Dieter@be (2008-10-05 10:44:51)


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#4 2008-10-05 10:39:47

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 9,939
Website

Offline

#5 2008-10-05 11:06:48

jeroenv
Member
Registered: 2004-11-29
Posts: 36

Re: pacman -Syu fscked up my system

11639 is probably about the same issue. Although this person could still use pacman to repair his system. I can imagine more people could run into this situation.
I see pacman makes a estimate on required disk size before installation. Maybe just add some percentage extra as a safety margin?
And again, don't let pacman continue after the first failed package. A simple "Errors occured. Continue Y/n?" would be enough.

Offline

Board footer

Powered by FluxBB