You are not logged in.

#1 2013-04-07 15:49:21

theokvdm
Member
Registered: 2013-04-07
Posts: 19

arch crashed

Hello all,

I had an installation of arch on my laptop. Yesterday, a large pacman update came to apper. Apper crashed and I tried to redo this but it this didn't failed.
I tried then in a terminal session:

pacman -Syyu

This failed that it could not find core.db (and all other databases) on the mirrors i had selected.
As in windows, if something fails restart you computer :-( . But that was a bad decision the laptop appeared that it booted but it never came to the KDE prompt.
Boohoo. How can I get it in my laptop and fix this?
I never had this sort of situation.
What I do not want is a complete new installation because of the customization I've done.
 
Regards,

Theo

Offline

#2 2013-04-07 15:53:08

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: arch crashed

Is your network up?

Word to the wise: Linux != Windows -- don't blindly restart or you may be booting from your live media to chroot in and figure out what got borked.

Offline

#3 2013-04-07 15:57:07

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: arch crashed

You have not provided any useful information. We need to know what error messages you received.

If you want to recover the system, you will need to boot with a live CD and mount the partitions yourself, then check the log files to determine which errors occurred and fix them. Look at the output of /var/log/pacman.log.

You should also read this: https://bbs.archlinux.org/viewtopic.php?id=57205


My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone

Offline

#4 2013-04-07 15:57:49

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

Re: arch crashed

Boot to the CLI if you just don't get as far as KDM or whatever. Append systemd.unit=multi-user.target to your kernel command line.


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

#5 2013-04-07 21:18:18

theokvdm
Member
Registered: 2013-04-07
Posts: 19

Re: arch crashed

I wasn't paying attention while updating with apper. The whole thing was my fault.

I think the network is up I can ping to the laptop but it refuses an ssh connection.
That is may be because a firewall misconfiguration or something else.

I will mount the partitions with the live cd. That is the easiest I think and the safest.
I will report back tommorow late with the results of the logfile.

I do not know what is meant by "boot to the CLI", how do you do that?

Thanks in advance.

Tommorow more.

Last edited by theokvdm (2013-04-07 21:21:45)

Offline

#6 2013-04-08 00:46:54

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: arch crashed

theokvdm wrote:

I do not know what is meant by "boot to the CLI", how do you do that?

How did you install Arch in the first place. What CD/ISO did you use?


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#7 2013-04-08 02:28:09

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

Re: arch crashed

theokvdm wrote:

I do not know what is meant by "boot to the CLI",

You said you could not get to the KDE prompt. I assume you mean that KDM isn't starting. So don't boot to the graphical display manager - boot to the command line. That way, KDM won't try to start and you'll get a regular command line session.

theokvdm wrote:

how do you do that?

cfr wrote:

Append systemd.unit=multi-user.target to your kernel command line.


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

#8 2013-04-08 21:07:11

theokvdm
Member
Registered: 2013-04-07
Posts: 19

Re: arch crashed

I found out what the problem is.
While downloading all the packages it filled up my /var file system to 100% 8gig.
The whole file system is filled with old & new packages. But KDE also uses /var for the operation and crashes.

But I don't know for sure what the definite diskspace solution is.
Is this:
pacman -Sc
?

Or something smarter than this?

Last edited by theokvdm (2013-04-08 21:07:54)

Offline

#9 2013-04-08 21:59:49

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: arch crashed

If you don't need the installed packages cached as well, use -Scc. But for a "definite diskspace solution" you should proably ensure there is enough space on /, e.g. pacgraph can help to find packages to prune out (in case you have packages installed you don't really use anymore), the pacman cache folder can be changed in pacman.conf or you could resize /. Also have a look at your log folder - systemd's journal spammed my root partition badly with its default settings (10% of partition size).

Offline

#10 2013-04-08 22:21:27

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,551

Re: arch crashed

You could have a separate partition for /var/cache/pacman/pkg


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#11 2013-04-09 17:36:50

theokvdm
Member
Registered: 2013-04-07
Posts: 19

Re: arch crashed

File system /var was 100% in use

after:

pacman -Sc

File system /var is 32% in use

I think a crontab (or something) job to do once in 3 months a pacman -Sc.
Does this sounds reasonable?

Offline

#12 2013-04-09 18:46:39

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,551

Re: arch crashed

theokvdm wrote:

File system /var was 100% in use

after:

pacman -Sc

File system /var is 32% in use

I think a crontab (or something) job to do once in 3 months a pacman -Sc.
Does this sounds reasonable?

I don't know that you can trust a definite timeline. 
Packages get bigger and smaller and sometimes two or three times.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#13 2013-04-09 19:16:58

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: arch crashed

Pacman checks for insufficent disk space, AFAIK this shouldn't really happen anymore?

Offline

#14 2013-04-09 19:43:39

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

Re: arch crashed

Use e.g. paccache so that you can keep some old packages in order to downgrade easily if necessary.


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

#15 2013-04-10 16:51:06

theokvdm
Member
Registered: 2013-04-07
Posts: 19

Re: arch crashed

I have no idea (yet) how paccache works and what it does because the wikki sends met to the pacman page. There is no internet documentation about it. I will give paccache a try.

Maybe it is a good idea to extend pacman with a feature that it retains X number of previous versions on your local cache dir and deletes the older ones.
Now, if you have endless supply of diskspace you can have go back to the early beginnings of arch linux. Which makes no sense to me.

It is great that pacman checks for enough diskspace but now the problem is that you can not update to a newer release because your disk can not contain the update.
This is less serious, but can be a problem if you don't get why pacman refuses to update. I used apper to update and it told me nothing only that pacman crapped out.

Offline

#16 2013-04-10 17:05:25

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: arch crashed

theokvdm wrote:

I have no idea (yet) how paccache works and what it does

Run paccache -h

theokvdm wrote:

Maybe it is a good idea to extend pacman with a feature that it retains X number of previous versions on your local cache dir and deletes the older ones.
Now, if you have endless supply of diskspace you can have go back to the early beginnings of arch linux.

Assuming paccache does not do that (I cannot check currently), there are alternatives:

https://bbs.archlinux.org/viewtopic.php?id=122182
https://wiki.archlinux.org/index.php/CacheClean

Offline

#17 2013-04-10 23:48:39

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

Re: arch crashed

That is what paccache does.


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

Board footer

Powered by FluxBB