#1 Le 10/10/2006, à 21:26
- noun29
[Résolu] pb grub apres reinstall windows
J'ai reinstaller windows ce qui a supprimer le grub. J'ai donc suivi le tuto pour reinstaller le grub mais la console plante sur ubuntu@ubuntu:~$ sudo /sbin/grub-install /dev/hde
/dev/hde does not have any corresponding BIOS drive.
ubuntu@ubuntu:~$ sudo /sbin/grub-install /dev/hdf
/dev/hdf does not have any corresponding BIOS drive.
ubuntu@ubuntu:~$ sudo /sbin/grub-install /dev/hda
/dev/hda: Not found or not a block device.
ubuntu@ubuntu:~$ cp /proc/mounts /etc/mtab
cp: ne peut créer le fichier régulier `/etc/mtab': Permission non accordée
ubuntu@ubuntu:~$ sudo cp /proc/mounts /etc/mtab
ubuntu@ubuntu:~$ sudo mkdir /mnt/work
ubuntu@ubuntu:~$ sudo mkdir /mnt/work/boot
ubuntu@ubuntu:~$ fstab
bash: fstab : commande introuvable
ubuntu@ubuntu:~$ /mnt/root/etc/fstab
bash: /mnt/root/etc/fstab: Aucun fichier ou répertoire de ce type
ubuntu@ubuntu:~$ sudo /mnt/root/etc/fstab
sudo: /mnt/root/etc/fstab: command not found
ubuntu@ubuntu:~$ sudo fdisk -l
Disque /dev/hde: 203.9 Go, 203928109056 octets
255 têtes, 63 secteurs/piste, 24792 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Périphérique Amorce Début Fin Blocs Id Système
/dev/hde1 * 1 17061 137042451 7 HPFS/NTFS
/dev/hde2 17062 24537 60050970 83 Linux
/dev/hde3 24538 24792 2048287+ 82 Linux swap / Solaris
Disque /dev/hdf: 203.9 Go, 203928109056 octets
255 têtes, 63 secteurs/piste, 24792 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Périphérique Amorce Début Fin Blocs Id Système
/dev/hdf1 2 24792 199133707+ f W95 Etendu (LBA)
/dev/hdf5 2 24792 199133676 7 HPFS/NTFS
Disque /dev/sda: 81.9 Go, 81964302336 octets
255 têtes, 63 secteurs/piste, 9964 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 1 4864 39070048+ 7 HPFS/NTFS
/dev/sda2 4865 9964 40965750 f W95 Etendu (LBA)
/dev/sda5 4865 9964 40965718+ b W95 FAT32
ubuntu@ubuntu:~$ sudo mount /dev/hde2 /mnt/work
ubuntu@ubuntu:~$ mount -o bind /dev /mnt/work/dev
mount: seul l'usager ROOT peut faire cela
ubuntu@ubuntu:~$ sudo mount -o bind /dev /mnt/work/dev
ubuntu@ubuntu:~$ sudo mount -o bind /proc /mnt/work/proc
ubuntu@ubuntu:~$ sudo cp /proc/mounts /mnt/work/etc/mtab
ubuntu@ubuntu:~$ chroot /mnt/work/ /bin/bash
chroot: ne changer le répertoire racine vers /mnt/work/: Opération non permise
ubuntu@ubuntu:~$ sudo chroot /mnt/work/ /bin/bash
root@ubuntu:/# mount /dev/hde2 /boot/
root@ubuntu:/# /sbin/grub-install /dev/hde
/dev/hde does not have any corresponding BIOS drive.
root@ubuntu:/# /sbin/grub-install /dev/hda
/dev/hda: Not found or not a block device.
root@ubuntu:/# cp /proc/mounts /etc/mtab
root@ubuntu:/# /sbin/grub
Probing devices to guess BIOS drives. This may take a long time.
help please je veux pas perdre mon ubuntu snif snif
Hors ligne
#2 Le 10/10/2006, à 23:34
- Bubble's Talks
Re : [Résolu] pb grub apres reinstall windows
La méthode de reinstallation de Grub est bien plus simple que le paquet de commandes (dont certaines un peu hasardeuses) que tu as tappées ne te le laisse supposer.
Mais je voudrais quand-même bien savoir pourquoi ton disque /dev/hde commence à e ? (où sont les hda, hdb, hdc et hdb ?)
Commence néanmoins par lancer grub (à partir d'un live cd)
user@machine:~$ sudo grub
Password :
grub> find /boot/grub/stage1 (ceci permettra de localiser le repertoire de réinstallation)
Hors ligne