You are not logged in.
Pages: 1
I did a very stupid mistake:
pacman -Rcns initscripts
now obviously the system freezes at boot.
Can´t do anything w/ the rescue cd, as don't have pacman available to restore initscripts.
How can I repair my system?
Offline
Boot from the CD and chroot into your root dir, then run pacman -S initscripts.
Offline
...and never do it again...
Offline
Put HoldPkg=initscripts in /etc/pacman.conf. Maybe it should be there by default, along with pacman and glibc?
Offline
Boot from the CD and chroot into your root dir, then run pacman -S initscripts.
I know that I sound utterly clueless, but:
#chroot /root
chroot: cannot execute /bin/sh: No such file or directory
Offline
No, you need to mount the installed root (/) directory, then chroot into it. For example:
mkdir /mnt/arch
mount /dev/discs/disc0/part1 /mnt/arch
chroot /mnt/arch /bin/bash
Change the partition as required.
Offline
you don't even need to use chroot:
-r, --root <path>
Specify alternative installation root (default is "/"). This
should not be used as a way to install software into e.g.
/usr/local instead of /usr. Instead this should be used if you
want to install a package on a temporary mounted partition,
which is "owned" by another system. By using this option you not
only specify where the software should be installed, but you
also specify which package database to use.
mkdir /mnt/arch
mount /dev/discs/disc0/part1 /mnt/arch
pacman --root /mnt/arch -Sy initscripts
Offline
mkdir /mnt/arch mount /dev/discs/disc0/part1 /mnt/arch chroot /mnt/arch /bin/bash
So far so good, but I think I don't have any network at this point, because:
$pacman -S initscripts
gethostbyname: Resource temporarily unavailable
error: cannot conect...
ifconfig doesn't work either.
Offline
Maybe there's still a package in your cache: /var/cache/pacman/pkg
EDIT: Or mount the install CD and get the package from there. You can also boot with a live CD (to get network working) and manually download the package from the server.
Offline
Ah, come on. Start the network manually. If in doubt how to do, start the install script as if you was installing from ftp, let the script modprobe the stuff it needs, and fetch for dhcp. Open another console session [don't ask: [F2] f.e.] and use it. Do your job there, and quit it all.
Frumpus ♥ addict
[mu'.krum.pus], [frum.pus]
Offline
@Alexo I would stronly suggest using my approach, as you then have a fully configured working filesystem, but I guess it's your choice.
btw.: is the network working on the live cd?
Offline
I really apreciate all the support I'm getting here, but nothing has worked so far. :?
I can´t find initscripts in the cache. For me the easiest way should be get network running and use pacman to get initscripts.
I'm using the arch install cd to boot the kernel. At that point I don't have network (DHCP, cable modem) and I don´t know how to start it manually. I've tried to let the install program fetch DHCP for me but it fails after an attemp to poll DHCP server. I'm running out of ideas but if someone could help me loading the network modules manually perhaps I'd get this issue solved.
It has been great to build and tweak my arch, considering I had many years dealing w/ mind dulling operative systems. I may be a bit clueless about linux but I won't quit my arch. I've learn more about computing since I'm with arch than ever before.
Thanks
Offline
Get another Live CD - one that autoprobes and autostarts your network, like Knoppix, Archie, whatever. When it's up and running, confirm you have net access, then do the mkdir-mnt-chroot thing above. That puts you in your Arch root file system. Now do the pacman thing.
Shutdown, lose the disc, reboot, and return to the wonderful world of Arch.
Offline
Pages: 1