Problème Terminal

D’accord …

Il n’y a pas d’iso chroot truc machin chose, c’est un mode opératoire (en console) qui te permet de reprendre le contrôle sur ta bécane.

Quel live-cd as-tu ?

Désolé, j’suis un noob :smiley:

J’ai le cd d’install de Debian 7.5, ça devrait l’faire ?

EDIT: Ha nan, merde chui con, c’est pas un live-cd… Je dl l’iso qu’il y a sur ton lien

EDIT2 : Mon PC est en 64bits, il n’y a que des i386 dans ta liste, ce n’est pas grave?

Pas de souci. :wink:

Wheezy 7-5 fera l’affaire, boot sur ce dernier, lances un navigateur (iceweasel je pense) pour reprendre ton fil.

Une fois en session live, ouvres une console (user) et passes en root (en session live) comme suit

~ $ sudo -s ~ #

À la suite de quoi donnes les retours suivants.

[code]# fdisk -l

blkid

mount -l[/code]

[quote=“PascalObistro”]EDIT: Ha nan, merde chui con, c’est pas un live-cd… Je dl l’iso qu’il y a sur ton lien

EDIT2 : Mon PC est en 64bits, il n’y a que des i386 dans ta liste, ce n’est pas grave?[/quote]

Ok, alors amd64.

cdimage.debian.org/debian-cd/cur … so-hybrid/

PS : tant qu’a faire, une version desktop (graphique) de ton choix.

Je fais tout ça aprés manger. Merci beaucoup du temps que tu as consacré :wink:

J’ai démarré Debian live, j’suis dans la console. Aucun problème jusque là, mis à part le clavier qwerty.

Quel version (live-DVD) desktop as-tu ?

Le Gnome, je présume.

Oui Gnome.

[code]root@debian:/home/user# fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xa94aab9f

Device Boot Start End Blocks Id System
/dev/sda1 2048 3074047 1536000 27 Hidden NTFS WinRE
/dev/sda2 * 3074048 51902463 24414208 83 Linux
/dev/sda3 956289024 976773119 10242048 17 Hidden HPFS/NTFS
/dev/sda4 51904510 956289023 452192257 5 Extended
Partition 4 does not start on physical sector boundary.
/dev/sda5 949975040 956289023 3156992 82 Linux swap / Solaris
/dev/sda6 51904512 802691071 375393280 83 Linux

Partition table entries are not in disk order
[/code]

root@debian:/home/user# blkid /dev/sda1: LABEL="System" UUID="DA0CBACD0CBAA3C3" TYPE="ntfs" /dev/sda2: UUID="7bf07ffd-40a4-493b-a91d-4bcffcdd28a5" TYPE="ext4" /dev/sda3: LABEL="HDDRECOVERY" UUID="5E58CCB458CC8BE9" TYPE="ntfs" /dev/sda5: UUID="c300c23b-0b00-49d5-bcc6-dc68a28505df" TYPE="swap" /dev/sda6: UUID="773ab9cf-d483-4975-a59f-aa2772c6c679" TYPE="ext4" /dev/sr0: LABEL="Debian wheezy 20140723-17:40" TYPE="iso9660" /dev/loop0: TYPE="squashfs"

root@debian:/home/user# mount -l sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=1009480,mode=755) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=808988k,mode=755) /dev/sr0 on /lib/live/mount/medium type iso9660 (ro,noatime) [Debian wheezy 20140723-17:40] /dev/loop0 on /lib/live/mount/rootfs/filesystem.squashfs type squashfs (ro,noatime) tmpfs on /lib/live/mount/overlay type tmpfs (rw,relatime) tmpfs on /lib/live/mount/overlay type tmpfs (rw,noatime,mode=755) aufs on / type aufs (rw,relatime,si=2d08bed967d2230a,noxino) tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k) tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=1617960k) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)

Voila.

Alors, il me semble que …

La racine de Wheezy se situe en [mono]/dev/sda2[/mono] et ton /home en [mono]/dev/sda6[/mono].

Est-ce bien cela ?

Ha jai du mal a me souvenir desole… Il y a deux OS installer dessus, Linux Debian Wheezy qui occupe environ 300 Go, et Kali Linux (installer pour le fun :unamused: ) qui occupe 25 ou 30 Go.

Je sais pas si cq peut taider.

EDIT jai aussi un windows recovery system, ca doit etre le ntfs

EDIT2 Jai installe Gparted je te dis les differentes partitions

sda2 - Kali Linux
sda3 - hdd recovery
sda4 - extended (sda5 et sda6 sont a linterieur de cette partition)
|sda5 - linux swap
|sda6 - linux debian wheezy

À moins que …

L’installation de Wheezy (/dev/sda2) et Kali (/dev/sda6) sur racine .

Je veux dire par là, que tu n’as pas opté lors de ces install pour une partition racine (/) et /home séparée ?

Ben ben …

[quote=“PascalObistro”]sda2 - Kali Linux
sda3 - hdd recovery
sda4 - extended (linux debian wheezy est a linterieur de cette partition)
|sda5 - linux swap
|sda6 - linux debian wheezy[/quote]

Quel merdier !

Bref, passons au chroot.

[code]# mount -t ext4 /dev/sda6 /mnt/

mount --bind /dev /mnt/dev

mount --bind /dev/pts /mnt/dev/pts

mount --bind /sys /mnt/sys

mount -t proc /proc /mnt/proc

chroot /mnt/

[/code]
Retour ?

Ouais cest plutot le bordel.

Alors jai suivi aveuglement ce que tu mas mis.

Lorsque jai mis la commande suivante

root@debian:/home/user# mount -t ext4 /dev/sda6 /mnt/

Il a bien monter la bonne partition, cad celle de Debian Wheezy.

Les autres commandes se sont executes sans accrocs mais il ny a rien eu d apparent a l ecran. Sauf la derniere commande qui a mis un peu plus de temps a s executer. Voila.

Fais moi un copié/collé (de la console ) suite au chroot.

Et, … ce retour.

PS :

C’est une console, rien d’autre.

Ne t’attends pas à une session graphique !

tu aurais pu chrooter depuis kali :wink:

Ok.

root@debian:/home/user# mount -t ext4 /dev/sda6 /mnt/ root@debian:/home/user# mount --bind /dev /mnt/dev root@debian:/home/user# mount --bind /dev/pts /mnt/dev/pts root@debian:/home/user# mount --bind /sys /mnt/sys root@debian:/home/user# mount -t proc /proc /mnt/proc root@debian:/home/user# chroot /mnt/ root@debian:/#

Ensuite

root@debian:/# mount /dev/sda6 on / type ext4 (rw,relatime,user_xattr,barrier=1,data=ordered) udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=1009480,mode=755) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) /proc on /proc type proc (rw,relatime)

Merci … :033

[quote=“PascalObistro”]Ok.

root@debian:/home/user# mount -t ext4 /dev/sda6 /mnt/ root@debian:/home/user# mount --bind /dev /mnt/dev root@debian:/home/user# mount --bind /dev/pts /mnt/dev/pts root@debian:/home/user# mount --bind /sys /mnt/sys root@debian:/home/user# mount -t proc /proc /mnt/proc root@debian:/home/user# chroot /mnt/ root@debian:/#

Ensuite

root@debian:/# mount /dev/sda6 on / type ext4 (rw,relatime,user_xattr,barrier=1,data=ordered) udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=1009480,mode=755) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) /proc on /proc type proc (rw,relatime)[/quote]

[code]# pwd

cd /

ls -la[/code]

?

root@debian:/# pwd / root@debian:/# cd / root@debian:/# ls -la total 112 drwxr-xr-x 23 root root 4096 Jul 29 19:39 . drwxr-xr-x 23 root root 4096 Jul 29 19:39 .. drwxr-xr-x 2 root root 4096 Jul 29 23:34 bin drwxr-xr-x 3 root root 4096 Jul 30 13:34 boot drwxr-xr-x 15 root root 3320 Aug 4 19:55 dev drwxr-xr-x 145 root root 12288 Aug 4 19:44 etc drwxr-xr-x 3 root root 4096 Jul 6 23:37 home lrwxrwxrwx 1 root root 30 Jul 6 23:02 initrd.img -> /boot/initrd.img-3.2.0-4-amd64 drwxr-xr-x 20 root root 4096 Jul 29 19:39 lib drwxr-xr-x 2 root root 4096 Jul 29 19:39 lib64 drwx------ 2 root root 16384 Jul 6 22:58 lost+found drwxr-xr-x 4 root root 4096 Aug 4 19:33 media drwxr-xr-x 2 root root 4096 Mar 24 00:53 mnt dr-xr-xr-x 153 root root 0 Aug 4 19:48 proc drwx------ 2 root root 4096 Aug 4 17:33 .pulse -rw------- 1 root root 256 Jul 6 23:51 .pulse-cookie drwx------ 9 root root 4096 Jul 16 17:08 root drwxr-xr-x 2 root root 4096 Jul 6 23:37 run drwxr-xr-x 2 root root 12288 Jul 29 19:39 sbin drwxr-xr-x 2 root root 4096 Jun 10 2012 selinux drwxr-xr-x 2 root root 4096 Jul 6 22:59 srv drwxr-xr-x 13 root root 0 Aug 4 19:48 sys drwxrwxrwt 10 root root 4096 Aug 4 19:44 tmp drwxr-xr-x 10 root root 4096 Jul 29 19:39 usr drwxr-xr-x 12 root root 4096 Jul 6 23:32 var lrwxrwxrwx 1 root root 26 Jul 6 23:02 vmlinuz -> boot/vmlinuz-3.2.0-4-amd64

Ok, ça roule.

?