How to rescue the system

Non-Desktop related topics
Ответить
Cowboooy
Сообщения: 47
Зарегистрирован: 10 дек 2012, 12:30
Operating system: ROSA Marathon LTS

How to rescue the system

Сообщение Cowboooy » 18 янв 2013, 16:31

Hi everyone,

How can I rescue the Rosa Marathon 32 bit system using installation dvd option "rescue system"? because I uninstall some important things from system accidentally now desktop didn't come also kdm screen didn't come, stay in black screen after boot the system.

d_uragan
Сообщения: 505
Зарегистрирован: 23 ноя 2011, 21:27

Re: How to rescue the system

Сообщение d_uragan » 19 янв 2013, 18:35

You main purpose is to somehow login to your system - at least in console, without gui. Note that it is not necessary to use 'rescue' mode for that, you can just boot into the Live mode, mount your rot somewhere to live system and chroot to it.
And then try to install missing packages if you know their names...

Cowboooy
Сообщения: 47
Зарегистрирован: 10 дек 2012, 12:30
Operating system: ROSA Marathon LTS

Re: How to rescue the system

Сообщение Cowboooy » 20 янв 2013, 01:15

Can you tell me step by step how can I mount rot, or what is chroot? sorry but I don't know how can I will do that...

d_uragan
Сообщения: 505
Зарегистрирован: 23 ноя 2011, 21:27

Re: How to rescue the system

Сообщение d_uragan » 21 янв 2013, 10:03

1) Load in th Live mode
2) launch konsole
3) get root privileges:
$ su -
4) mount the partition where your ROSA is installed to some place, e.g. /mnt:
# mount /dev/sda1 /mnt
(replace /dev/sda1 with your device, if needed)
5) mount some additional folder, just for the case:
# mount -o bind /dev /mnt/dev
# mount -o bind /proc /mnt/proc
6) Here the "magic" comes:
# chroot /mnt/

from now on, you are logged in as root in your ROSA installation. You can use 'urpmi' to install packages.

If you are not sure which packages are missing, you can compare output of 'rpm -qa' in you chroot environment with output of 'rpm -qa' in the Live mode.

Cowboooy
Сообщения: 47
Зарегистрирован: 10 дек 2012, 12:30
Operating system: ROSA Marathon LTS

Re: How to rescue the system

Сообщение Cowboooy » 22 янв 2013, 15:39

When I wrote the "chroot /mnt/" it gives error

Код: Выделить всё

chroot: failed to run command `/bin/bash': Exec format error
 
is it normal? I tried 2 different Rosa live images but result same both of them...

d_uragan
Сообщения: 505
Зарегистрирован: 23 ноя 2011, 21:27

Re: How to rescue the system

Сообщение d_uragan » 22 янв 2013, 21:41

Maybe you have 64bit system installed but launching from 32bit live disc?

Cowboooy
Сообщения: 47
Зарегистрирован: 10 дек 2012, 12:30
Operating system: ROSA Marathon LTS

Re: How to rescue the system

Сообщение Cowboooy » 22 янв 2013, 23:30

Maybe but it's not possible because I tried to same Dvd which I installed the current system, 32 bit image, and 32 bit system. I searched on the internet and some people solve that problem with using same archictecture but my system and Dvd same architecture, there is no way to make a fail.

d_uragan
Сообщения: 505
Зарегистрирован: 23 ноя 2011, 21:27

Re: How to rescue the system

Сообщение d_uragan » 23 янв 2013, 11:35

What does 'file /mnt/bin/bash' say (after you mounted /dev/sdX to /mnt)?

Btw, maybe it is easier just to reinstall the system from scratch?:)

Cowboooy
Сообщения: 47
Зарегистрирован: 10 дек 2012, 12:30
Operating system: ROSA Marathon LTS

Re: How to rescue the system

Сообщение Cowboooy » 24 янв 2013, 00:09

Код: Выделить всё

# file /mnt/bin/bash
/mnt/bin/bash: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, BuildID[sha1]=0xdfcc58e3e13fe87aa5af84f6dac7d5e1b36bc7ca, stripped
[root@localhost ~]# 
It gives that outputs and I think it is 64 bit system right? But how? I always download 32 bit image from ftp, interesting :) but doesn't matter I try with same Dvd which I install system...

d_uragan
Сообщения: 505
Зарегистрирован: 23 ноя 2011, 21:27

Re: How to rescue the system

Сообщение d_uragan » 24 янв 2013, 11:05

Yeah, that means that you have 64bit version inside. You can also run file /bin/bash to check which version you have on live media.

But maybe you have somehow installed some 64bit packages in your native ROSA installation which was supposed to be 32bit (e.g., you enabled 64bit repo and installed something from there)? This would explain why you can't load ROSA anymore...

Cowboooy
Сообщения: 47
Зарегистрирован: 10 дек 2012, 12:30
Operating system: ROSA Marathon LTS

Re: How to rescue the system

Сообщение Cowboooy » 24 янв 2013, 15:30

Okay, I accept I want to kill my self :o again I'm wrong :( :x output same as the above, what happen now? any idea :)

Аватара пользователя
ДроноваЮ
Сообщения: 2636
Зарегистрирован: 01 июн 2011, 13:11
Operating system: Ubuntu/ROSA
Откуда: Москва

Re: How to rescue the system

Сообщение ДроноваЮ » 24 янв 2013, 17:56

Imo, reinstall. Save the data from home directory in case you don't have it on the separated partition and reinstall. :pardon:

Cowboooy
Сообщения: 47
Зарегистрирован: 10 дек 2012, 12:30
Operating system: ROSA Marathon LTS

Re: How to rescue the system

Сообщение Cowboooy » 25 янв 2013, 01:40

How can I separate the partitions and system settings stay same after reinstall systems again and again? is it enough to separate just home directory or do you advice another formula?

d_uragan
Сообщения: 505
Зарегистрирован: 23 ноя 2011, 21:27

Re: How to rescue the system

Сообщение d_uragan » 25 янв 2013, 12:09

Separate /home is enough to store almost all system settings. There can be also some application-specific setting in the /etc folder; don't place it on separate partition, but you may want to backup it and bring to the new system, as well.

Cowboooy
Сообщения: 47
Зарегистрирован: 10 дек 2012, 12:30
Operating system: ROSA Marathon LTS

Re: How to rescue the system

Сообщение Cowboooy » 26 янв 2013, 13:25

Thank you for everything d_uragan, It's ok for now :)
Best regards, take care :)

Ответить

Вернуться в «Marathon (LTS) General Software»