You are not logged in.

#1 2011-07-29 12:09:39

gregor
Member
From: /planet/tmpfs
Registered: 2011-06-20
Posts: 175

i did a stupid thing..... [SOLVED]

when i was playing around last night with some scripts ,i wanted to alter my "PATH" so i did.
not realizing afterwards that i deleted the /sbin part also 

# Set our default path
PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"
export PATH

NOW comes the screwup part ,not knowingly about.... i booted my laptop en did a update "sudo pacman -Syyu"
after the update was done i got the stange error... i didn't seems right so i saved the output ;

Proceed with installation? [Y/n] y
:: Retrieving packages from testing...
initscripts-2011.07.3-1-x86_64             19.0K  287.7K/s 00:00:00 [--------------------------------------]   0%
krb5-1.9.1-3-x86_64                       959.7K 1300.5K/s 00:00:01 [--------------------------------------]   1%
linux-3.0-2-x86_64                         37.6M    2.5M/s 00:00:15 [--------------------------------------]  79%
lirc-utils-1:0.9.0-5-x86_64                37.9M    2.4M/s 00:00:16 [--------------------------------------]  80%
:: Retrieving packages from extra...
libsoup-2.34.3-1-x86_64                    38.2M    2.4M/s 00:00:16 [--------------------------------------]  80%
libsoup-gnome-2.34.3-1-x86_64              38.2M    2.3M/s 00:00:16 [--------------------------------------]  80%
pygobject-devel-2.28.6-1-x86_64            38.4M    2.3M/s 00:00:17 [--------------------------------------]  81%
pygobject-2.28.6-1-x86_64                  38.7M    2.3M/s 00:00:17 [--------------------------------------]  81%
smbclient-3.5.10-1-x86_64                  47.2M    2.3M/s 00:00:21 [--------------------------------------]  99%
:: Retrieving packages from community...
lxterminal-0.1.11-1-x86_64                 47.3M    2.3M/s 00:00:21 [--------------------------------------]  99%
:: Retrieving packages from archlinuxfr...
volumeicon-0.4.2-2-x86_64                  47.3M    2.2M/s 00:00:21 [--------------------------------------] 100%
(11/11) checking package integrity                                   [--------------------------------------] 100%
(11/11) checking for file conflicts                                  [--------------------------------------] 100%
( 1/11) upgrading initscripts                                        [--------------------------------------] 100%
( 2/11) upgrading krb5                                               [--------------------------------------] 100%
( 3/11) upgrading libsoup                                            [--------------------------------------] 100%
( 4/11) upgrading libsoup-gnome                                      [--------------------------------------] 100%
( 5/11) upgrading linux                                              [--------------------------------------] 100%

>>> Updating module dependencies. Please wait ...
/tmp/alpm_vdu4OH/.INSTALL: line 49: depmod: command not found
>>> Generating initial ramdisk, using mkinitcpio.  Please wait...
/tmp/alpm_vdu4OH/.INSTALL: line 51: mkinitcpio: command not found
error: command failed to execute correctly

( 6/11) upgrading lirc-utils                                         [--------------------------------------] 100%
( 7/11) upgrading lxterminal                                         [--------------------------------------] 100%
( 8/11) upgrading pygobject-devel                                    [--------------------------------------] 100%
( 9/11) upgrading pygobject                                          [--------------------------------------] 100%
(10/11) upgrading smbclient                                          [--------------------------------------] 100%
(11/11) upgrading volumeicon   

HOW CAN I FIX MY F*CKUP.......

Last edited by gregor (2011-07-30 10:21:22)

Offline

#2 2011-07-29 12:17:32

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: i did a stupid thing..... [SOLVED]

just set up the PATH correctly and reinstall linux package


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2011-07-29 12:29:01

gregor
Member
From: /planet/tmpfs
Registered: 2011-06-20
Posts: 175

Re: i did a stupid thing..... [SOLVED]

hey "wonder" i fixed my PATH ,but how to reinstall the package since i can't boot my system boots in a RAMFS/#

gonna reboot now for the right output i'll post back....

Offline

#4 2011-07-29 12:32:06

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: i did a stupid thing..... [SOLVED]

gregor, please use code-tags when pasting logs on the forums, it greatly improves readability.


ᶘ ᵒᴥᵒᶅ

Offline

#5 2011-07-29 12:40:06

gregor
Member
From: /planet/tmpfs
Registered: 2011-06-20
Posts: 175

Re: i did a stupid thing..... [SOLVED]

try the part without  [--------------------------------------] 100%

>>> Updating module dependencies. Please wait ...
/tmp/alpm_vdu4OH/.INSTALL: line 49: depmod: command not found
>>> Generating initial ramdisk, using mkinitcpio.  Please wait...
/tmp/alpm_vdu4OH/.INSTALL: line 51: mkinitcpio: command not found
error: command failed to execute correctly

Last edited by gregor (2011-07-30 10:22:36)

Offline

#6 2011-07-29 12:51:36

gregor
Member
From: /planet/tmpfs
Registered: 2011-06-20
Posts: 175

Re: i did a stupid thing..... [SOLVED]

so i got dropped in a recovery shell  [ramfs /]#     "WHATS NEXT"   how to fix my problem /?

Offline

#7 2011-07-29 13:00:56

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: i did a stupid thing..... [SOLVED]

Well it looks like you have to boot with a live cd and chroot into your existing installation. Something like this

mount /dev/sda1 /mnt
mount -o bind /dev /mnt/dev
mount -o bind /dev/shm /mnt/dev/shm
mount -o bind /proc /mnt/proc
mount -o bind /sys /mnt/sys
mount -o bind /run /mnt/run
chroot /mnt

Then I recommend to reinstall the base group, which should be enough to boot the machine. Then after you booted from the harddisk you can check, which packages need to be reinstalled. There are packages out there which can do that check for you, maybe even pacman itself. I don't know that, never had to deal with something like that. But since it looks like you still have access to the internet, I guess you can find out.

I hope this works for you!!! Please report it, so others got a clue how to act in such circumstances.

Last edited by Army (2011-07-29 13:02:01)

Offline

#8 2011-07-29 13:10:50

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: i did a stupid thing..... [SOLVED]

It looks like it's the initrd and only the initrd, in which case you don't need to chroot; instead, you can just use pacman's "-r" flag to install the "linux" package.  I'd try that first, in the hopes of not having to type out all the mount commands.  If it doesn't work, chroot.

Offline

#9 2011-07-30 07:46:37

gregor
Member
From: /planet/tmpfs
Registered: 2011-06-20
Posts: 175

Re: i did a stupid thing..... [SOLVED]

gonna try ,me is right back....

Offline

#10 2011-07-30 08:01:10

gregor
Member
From: /planet/tmpfs
Registered: 2011-06-20
Posts: 175

Re: i did a stupid thing..... [SOLVED]

well me is back ,must be i screwed up "pretty bad" i booted back in my archlinux and found myself in the [ramfs /]#
it doesn't recognize pacman at all !! ,gonna tryout the chroot and if that doesn't work !@$#%    "reinstall"

Last edited by gregor (2011-07-30 21:36:30)

Offline

#11 2011-07-30 09:31:34

gregor
Member
From: /planet/tmpfs
Registered: 2011-06-20
Posts: 175

Re: i did a stupid thing..... [SOLVED]

"WHOHAAA" i'm up and running again....

mount /dev/sda1 /mnt
mount -o bind /dev /mnt/dev
mount -o bind /dev/shm /mnt/dev/shm
mount -o bind /proc /mnt/proc
mount -o bind /sys /mnt/sys
mount -o bind /run /mnt/run   <<=====  don't have to use this
chroot /mnt

the chroot worked just fine ,and i re-installed the "linux" package which is the newest test kernel and automatically it fixed my problem

wonder wrote:

just set up the PATH correctly and reinstall "linux" package

the man was right.....but i needed to chroot first>

so thanks to ALL

Last edited by gregor (2011-07-30 09:34:19)

Offline

#12 2011-07-30 09:58:05

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: i did a stupid thing..... [SOLVED]

gregor wrote:

"WHOHAAA" i'm up and running again....

If you manage to fix your opening post too and mark your thread solved everybody will be happy. smile


ᶘ ᵒᴥᵒᶅ

Offline

#13 2011-07-30 10:24:55

gregor
Member
From: /planet/tmpfs
Registered: 2011-06-20
Posts: 175

Re: i did a stupid thing..... [SOLVED]

litemotiv wrote:

If you manage to fix your opening post too and mark your thread solved everybody will be happy. smile

so i did

Offline

#14 2011-07-30 11:26:17

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: i did a stupid thing..... [SOLVED]

gregor wrote:
mount /dev/sda1 /mnt
mount -o bind /dev /mnt/dev
mount -o bind /dev/shm /mnt/dev/shm
mount -o bind /proc /mnt/proc
mount -o bind /sys /mnt/sys
mount -o bind /run /mnt/run   <<=====  don't have to use this
chroot /mnt

Ok I just added that line, because I wasn't sure, since it's a new directory. Nice to see that it worked smile

Offline

#15 2011-07-30 11:39:41

gregor
Member
From: /planet/tmpfs
Registered: 2011-06-20
Posts: 175

Re: i did a stupid thing..... [SOLVED]

http://www.UnsTucC.de i checked out you're website ,mmmmh me like i'm a "machine head" fanboy

"keep up the good work"

Offline

#16 2011-07-30 12:31:22

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: i did a stupid thing..... [SOLVED]

*lol* Thanks big_smile Next week we'll go into the studio to record the next cd, so stay tuned smile

Offline

#17 2011-07-30 21:41:29

gregor
Member
From: /planet/tmpfs
Registered: 2011-06-20
Posts: 175

Re: i did a stupid thing..... [SOLVED]

metalheads with brains...... big_smile

Offline

Board footer

Powered by FluxBB