|
RapaNui
Anmeldungsdatum: Juli 16, 2007
Beiträge: 1926
Wohnort: Penco / Chile
|

1. August 2012 05:55
Das gefällt mir garnicht. Die bash brauchen wir und die muss sich eigtl. einbinden lassen. Anderer Versuch, abe dem Punkt wo wir sind. Aushängen der Ordner (Fehler ignorieren):
for i in /dev /dev/pts /proc /sys /run /home; do sudo umount $i /mnt$i; done Manuelles einbinden aller erforderlichen Ordner mit (auf Fehler achten):
sudo mount -o bind /dev /mnt/dev
sudo mount -o bind /sys /mnt/sys
sudo mount -o bind /home /mnt/home
sudo mount -t proc /proc /mnt/proc
sudo cp /proc/mounts /mnt/etc/mtab
sudo chroot /mnt /bin/bash Jetzt müssten wir im ofiziellen System sein. Daher ein
um das /home zu lokalisieren. EDIT
Ich hab den hier vergessen:
sudo mount -o bind /dev/pts /mnt/dev/pts vor dem sudo chroot /mnt /bin/bash Ich bin keine aufmerksame Hilfe
|
|
rammi22
(Themenstarter)
Anmeldungsdatum: Juli 5, 2012
Beiträge: 157
Wohnort: Cosquín/Argentinien
|

1. August 2012 06:09
Dieselbe Fehlermeldung chroot: Befehl >>/bin/bash" konnte nicht ausgeführt werden: Fehler im Format der Programmdatei
Doch biste, aber auch in Südamerika wird man müde mit vorgeschrittener Stunde
|
|
RapaNui
Anmeldungsdatum: Juli 16, 2007
Beiträge: 1926
Wohnort: Penco / Chile
|

1. August 2012 06:10
Jetzt muss ich doch mal nachfragen: Der Rechner, den den wir reparieren wollden, der läuft z.Zt. mit eine LiveCD und zwar mit dem selben System, also Precise - 12.04 UND der gleichen Architektur, also 32bit bzw. 64bit? Mir gehen nämlich langsam die Ideen aus.
|
|
rammi22
(Themenstarter)
Anmeldungsdatum: Juli 5, 2012
Beiträge: 157
Wohnort: Cosquín/Argentinien
|

1. August 2012 06:21
Und jetzt hoffe ich, das du mich nicht hängen lässt...ich hatte den stick mit dem 11.10, weil als erstes System hatte ich das, und total vergessen....Jetzt hab ich die Live CD 12.04 eingelegt und werde rasch die Schritte wiederhohlen, mil disculpe, de verdad...
|
|
RapaNui
Anmeldungsdatum: Juli 16, 2007
Beiträge: 1926
Wohnort: Penco / Chile
|

1. August 2012 06:22
concha tu madre.............  Also nun kannst Du mit dem Einzeiler loslegen:
for i in /dev /dev/pts /proc /sys /run /home; do sudo umount $i /mnt$i; done
sudo mount -o bind /etc/resolv.conf /mnt/etc/resolv.conf
sudo cp /proc/mounts /mnt/etc/mtab
sudo chroot /mnt /bin/bash Wenn wir dann im chroot sind, dann brauchen wir keinen sudo mehr, also erst mal den /home lokalisieren und den Inhalt anzeigen
ls -hal
ls -hal /home
ls -hal /home/rammi/.ICEauthority Die restl. Befehle muss ich daraufhin ändern. Vielleicht auch noch ein
posten. Wichtig, wichtig, wichtig für die Zukunft: Man repariert ein System immer mit der gleichen Architektur, möglichst die Installations-CD/-Stick. EDIT
Ich hab Dir eine PM geschickt, bei Gelegenheit bitte mal lesen - eilt nicht.
|
|
rammi22
(Themenstarter)
Anmeldungsdatum: Juli 5, 2012
Beiträge: 157
Wohnort: Cosquín/Argentinien
|

1. August 2012 06:56
root@ubuntu:/# ls -hal
insgesamt 92K
drwxrwxr-x 23 root rammi 4,0K Jul 16 15:50 .
drwxrwxr-x 23 root rammi 4,0K Jul 16 15:50 ..
drwxrwxr-x 2 root root 4,0K Jul 16 15:45 bin
drwxrwxr-x 3 root root 4,0K Jul 16 15:57 boot
drwxr-xr-x 15 root root 4,2K Jul 31 22:32 dev
drwxrwxr-x 146 root root 12K Aug 1 2012 etc
drwxr-xr-x 1 root root 60 Jul 31 22:31 home
lrwxrwxrwx 1 root root 33 Jul 16 15:50 initrd.img -> /boot/initrd.img-3.2.0-26-generic
lrwxrwxrwx 1 root root 33 Jul 14 18:21 initrd.img.old -> /boot/initrd.img-3.2.0-23-generic
drwxrwxr-x 24 root root 4,0K Jul 18 21:33 lib
drwxrwxr-x 2 root root 4,0K Jul 14 18:18 lib64
drwxrwxr-x 2 root root 16K Jul 14 18:17 lost+found
drwxrwxr-x 3 root root 4,0K Jul 31 00:03 media
drwxrwxr-x 2 root root 4,0K Apr 19 06:32 mnt
drwxrwxr-x 4 root root 4,0K Jul 26 21:46 opt
dr-xr-xr-x 205 root root 0 Jul 31 22:30 proc
drwxrwxr-x 11 root root 4,0K Jul 24 09:54 root
drwxr-xr-x 19 root root 680 Jul 31 22:33 run
drwxrwxr-x 2 root root 4,0K Jul 16 15:41 sbin
drwxrwxr-x 2 root root 4,0K Mär 5 14:54 selinux
drwxrwxr-x 2 root root 4,0K Jul 14 18:17 srv
drwxr-xr-x 13 root root 0 Jul 31 22:30 sys
drwxrwxr-t 6 root root 4,0K Aug 1 2012 tmp
drwxrwxr-x 11 root root 4,0K Jul 15 06:49 usr
drwxrwxrwx 14 root rammi 4,0K Jul 31 12:20 var
lrwxrwxrwx 1 root root 29 Jul 16 15:50 vmlinuz -> boot/vmlinuz-3.2.0-26-generic
lrwxrwxrwx 1 root root 29 Jul 14 18:21 vmlinuz.old -> boot/vmlinuz-3.2.0-23-generic
root@ubuntu:/# ls -hal /home
insgesamt 4,0K
drwxr-xr-x 1 root root 60 Jul 31 22:31 .
drwxrwxr-x 23 root rammi 4,0K Jul 16 15:50 ..
drwxr-xr-x 20 999 999 580 Jul 31 22:33 ubuntu
root@ubuntu:/# ls -hal /home/rammi/.ICEauthority
ls: Zugriff auf /home/rammi/.ICEauthority nicht möglich: Datei oder Verzeichnis nicht gefunden
root@ubuntu:/# id
uid=0(root) gid=0(root) Gruppen=0(root)
root@ubuntu:/# id rammi
uid=1000(rammi) gid=1000(rammi) Gruppen=1000(rammi),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),109(lpadmin),124(sambashare)
root@ubuntu:/#
|
|
RapaNui
Anmeldungsdatum: Juli 16, 2007
Beiträge: 1926
Wohnort: Penco / Chile
|

1. August 2012 07:02
Du hast das /home aber mit eingebunden? in dem Einzeiler aus dem Vorpost ist das drin. Kannst Du mal das /home genauer prüfen (das sieht nicht nach Deinem aus), ob dort Deine Dateien drin sind, z.B. mit EDIT:
Das hier ist z.Zt. i.O. root@ubuntu:/# ls -hal /home/rammi/.ICEauthority
ls: Zugriff auf /home/rammi/.ICEauthority nicht möglich: Datei oder Verzeichnis nicht gefunden
da wir hier einen Home für den User ubuntuhaben und das ist eigtl. das der LiveCD. Evtl. müssen wir noch ins Verzeichnis wechseln
|
|
rammi22
(Themenstarter)
Anmeldungsdatum: Juli 5, 2012
Beiträge: 157
Wohnort: Cosquín/Argentinien
|

1. August 2012 07:08
Das ist der komplette Baum:
ubuntu@ubuntu:~$ sudo mount /dev/sda6 /mnt
ubuntu@ubuntu:~$ for i in /dev /dev/pts /proc /sys /run /home; do sudo mount -B $i /mnt$i; done
ubuntu@ubuntu:~$ sudo cp /proc/mounts /mnt/etc/mtab
ubuntu@ubuntu:~$ sudo mount -o bind /etc/resolv.conf /mnt/etc/resolv.conf
ubuntu@ubuntu:~$ chroot /mnt /bin/bash
chroot: cannot change root directory to /mnt: Operation not permitted
ubuntu@ubuntu:~$ sudo chroot /mnt /bin/bash
root@ubuntu:/# ls -hal /mnt
insgesamt 8,0K
drwxrwxr-x 2 root root 4,0K Apr 19 06:32 .
drwxrwxr-x 23 root rammi 4,0K Jul 16 15:50 ..
root@ubuntu:/# ls -hal
insgesamt 92K
drwxrwxr-x 23 root rammi 4,0K Jul 16 15:50 .
drwxrwxr-x 23 root rammi 4,0K Jul 16 15:50 ..
drwxrwxr-x 2 root root 4,0K Jul 16 15:45 bin
drwxrwxr-x 3 root root 4,0K Jul 16 15:57 boot
drwxr-xr-x 15 root root 4,2K Jul 31 22:32 dev
drwxrwxr-x 146 root root 12K Aug 1 2012 etc
drwxr-xr-x 1 root root 60 Jul 31 22:31 home
lrwxrwxrwx 1 root root 33 Jul 16 15:50 initrd.img -> /boot/initrd.img-3.2.0-26-generic
lrwxrwxrwx 1 root root 33 Jul 14 18:21 initrd.img.old -> /boot/initrd.img-3.2.0-23-generic
drwxrwxr-x 24 root root 4,0K Jul 18 21:33 lib
drwxrwxr-x 2 root root 4,0K Jul 14 18:18 lib64
drwxrwxr-x 2 root root 16K Jul 14 18:17 lost+found
drwxrwxr-x 3 root root 4,0K Jul 31 00:03 media
drwxrwxr-x 2 root root 4,0K Apr 19 06:32 mnt
drwxrwxr-x 4 root root 4,0K Jul 26 21:46 opt
dr-xr-xr-x 205 root root 0 Jul 31 22:30 proc
drwxrwxr-x 11 root root 4,0K Jul 24 09:54 root
drwxr-xr-x 19 root root 680 Jul 31 22:33 run
drwxrwxr-x 2 root root 4,0K Jul 16 15:41 sbin
drwxrwxr-x 2 root root 4,0K Mär 5 14:54 selinux
drwxrwxr-x 2 root root 4,0K Jul 14 18:17 srv
drwxr-xr-x 13 root root 0 Jul 31 22:30 sys
drwxrwxr-t 6 root root 4,0K Aug 1 2012 tmp
drwxrwxr-x 11 root root 4,0K Jul 15 06:49 usr
drwxrwxrwx 14 root rammi 4,0K Jul 31 12:20 var
lrwxrwxrwx 1 root root 29 Jul 16 15:50 vmlinuz -> boot/vmlinuz-3.2.0-26-generic
lrwxrwxrwx 1 root root 29 Jul 14 18:21 vmlinuz.old -> boot/vmlinuz-3.2.0-23-generic
root@ubuntu:/# ls -hal /home
insgesamt 4,0K
drwxr-xr-x 1 root root 60 Jul 31 22:31 .
drwxrwxr-x 23 root rammi 4,0K Jul 16 15:50 ..
drwxr-xr-x 20 999 999 580 Jul 31 22:33 ubuntu
root@ubuntu:/# ls -hal /home/rammi/.ICEauthority
ls: Zugriff auf /home/rammi/.ICEauthority nicht möglich: Datei oder Verzeichnis nicht gefunden
root@ubuntu:/# id
uid=0(root) gid=0(root) Gruppen=0(root)
root@ubuntu:/# id rammi
uid=1000(rammi) gid=1000(rammi) Gruppen=1000(rammi),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),109(lpadmin),124(sambashare)
root@ubuntu:/# cd /home
root@ubuntu:/home# ls -hal
insgesamt 4,0K
drwxr-xr-x 1 root root 60 Jul 31 22:31 .
drwxrwxr-x 23 root rammi 4,0K Jul 16 15:50 ..
drwxr-xr-x 20 999 999 580 Jul 31 22:33 ubuntu
root@ubuntu:/home# cd..
cd..: Befehl nicht gefunden.
root@ubuntu:/home# cd ..
root@ubuntu:/#
|
|
RapaNui
Anmeldungsdatum: Juli 16, 2007
Beiträge: 1926
Wohnort: Penco / Chile
|

1. August 2012 07:10
Da ist der Fehler:
ubuntu@ubuntu:~$ chroot /mnt /bin/bash
chroot: cannot change root directory to /mnt: Operation not permitted Der Befehl muss ja auch noch mit sudo gemacht werden, also
sudo chroot /mnt /bin/bash
Dann müssten die lsse es richtig zeigen.
|
|
rammi22
(Themenstarter)
Anmeldungsdatum: Juli 5, 2012
Beiträge: 157
Wohnort: Cosquín/Argentinien
|

1. August 2012 07:22
ubuntu@ubuntu:~$ chroot /mnt /bin/bash
chroot: cannot change root directory to /mnt: Operation not permitted
ubuntu@ubuntu:~$ sudo chroot /mnt /bin/bash
root@ubuntu:/# ls -hal /mnt In der nächsten zeile mach ich das ja mit sudo...muss ich da alles vorhergehende wiederhohlen, wenn ich diesen Fehler gemacht habe?
|
|
RapaNui
Anmeldungsdatum: Juli 16, 2007
Beiträge: 1926
Wohnort: Penco / Chile
|

1. August 2012 07:25
Das was Du mir gepostet hast ist in Ordnung, da war das sudo bei den Verzeichnissen mit drin. Ab sofort sind wir in Deinem System drin daher nur noch normale Befehle. Jetzt brauch ich die Ausgaben (ohne das mnt)
|
|
rammi22
(Themenstarter)
Anmeldungsdatum: Juli 5, 2012
Beiträge: 157
Wohnort: Cosquín/Argentinien
|

1. August 2012 07:33
root@ubuntu:/# ls -hal
insgesamt 92K
drwxrwxr-x 23 root rammi 4,0K Jul 16 15:50 .
drwxrwxr-x 23 root rammi 4,0K Jul 16 15:50 ..
drwxrwxr-x 2 root root 4,0K Jul 16 15:45 bin
drwxrwxr-x 3 root root 4,0K Jul 16 15:57 boot
drwxr-xr-x 15 root root 4,2K Jul 31 23:05 dev
drwxrwxr-x 146 root root 12K Aug 1 2012 etc
drwxr-xr-x 1 root root 60 Jul 31 22:31 home
lrwxrwxrwx 1 root root 33 Jul 16 15:50 initrd.img -> /boot/initrd.img-3.2.0-26-generic
lrwxrwxrwx 1 root root 33 Jul 14 18:21 initrd.img.old -> /boot/initrd.img-3.2.0-23-generic
drwxrwxr-x 24 root root 4,0K Jul 18 21:33 lib
drwxrwxr-x 2 root root 4,0K Jul 14 18:18 lib64
drwxrwxr-x 2 root root 16K Jul 14 18:17 lost+found
drwxrwxr-x 3 root root 4,0K Jul 31 00:03 media
drwxrwxr-x 2 root root 4,0K Apr 19 06:32 mnt
drwxrwxr-x 4 root root 4,0K Jul 26 21:46 opt
dr-xr-xr-x 204 root root 0 Jul 31 22:30 proc
drwxrwxr-x 11 root root 4,0K Jul 24 09:54 root
drwxr-xr-x 19 root root 680 Jul 31 22:33 run
drwxrwxr-x 2 root root 4,0K Jul 16 15:41 sbin
drwxrwxr-x 2 root root 4,0K Mär 5 14:54 selinux
drwxrwxr-x 2 root root 4,0K Jul 14 18:17 srv
drwxr-xr-x 13 root root 0 Jul 31 22:30 sys
drwxrwxr-t 6 root root 4,0K Aug 1 2012 tmp
drwxrwxr-x 11 root root 4,0K Jul 15 06:49 usr
drwxrwxrwx 14 root rammi 4,0K Jul 31 12:20 var
lrwxrwxrwx 1 root root 29 Jul 16 15:50 vmlinuz -> boot/vmlinuz-3.2.0-26-generic
lrwxrwxrwx 1 root root 29 Jul 14 18:21 vmlinuz.old -> boot/vmlinuz-3.2.0-23-generic
root@ubuntu:/# ls -hal /home
insgesamt 4,0K
drwxr-xr-x 1 root root 60 Jul 31 22:31 .
drwxrwxr-x 23 root rammi 4,0K Jul 16 15:50 ..
drwxr-xr-x 20 999 999 580 Jul 31 22:33 ubuntu
|
|
RapaNui
Anmeldungsdatum: Juli 16, 2007
Beiträge: 1926
Wohnort: Penco / Chile
|

1. August 2012 07:37
Jetz machen wir es auf die radikale Tour , ich finde einfach Dein home nicht, sorry. Wir suchen nach dem Verzeichnis mit einem Befehl, der kann einige Zeit dauern. find / -name rammi 2>/dev/null
|
|
rammi22
(Themenstarter)
Anmeldungsdatum: Juli 5, 2012
Beiträge: 157
Wohnort: Cosquín/Argentinien
|

1. August 2012 07:48
Na ja, wiedermal Zeit, es scheint, da bleibt keine Sparte aus hier in dieser Ecke der Welt...traaaaaaaaaanquilo.... das Ergebniss:
/var/lib/sudo/rammi
/var/lib/AccountService/users/rammi
|
|
RapaNui
Anmeldungsdatum: Juli 16, 2007
Beiträge: 1926
Wohnort: Penco / Chile
|

1. August 2012 07:52
Das ist nicht das erwartete Ergebnis. Machen wir nochmal folgendes:
Wenn dabei die sda6 als Linux mit einer ID 83 angezeigt wird, dann mkdir /media/linux
mount /dev/sda6 /media/linux Wenn das ohne Fehler ablief, dann die hal-Befehle
|