#1 Le 22/02/2007, à 00:26
- amarock85
problème de grub
Bonsoir à tous,
Je n'arrive pas à installer ubuntu sur mon pc après 2 jours de bataille...
Je m'explique en parcourant le forum je n'ai pas trouvé de solutions adaptées à ma confiq... A chaque fois j'ai une "erreur 17" et si j'essaye d'installer le grub ailleurs ça ne marche pas ...Voici ma configuration au niveau de mes disques durs:
Disk /dev/hdc: 122.9 GB, 122942324736 bytes
16 heads, 63 sectors/track, 238216 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/hdc1 1 31335 15792808+ 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/hdc2 * 132489 235971 52155022+ 83 Linux
Partition 2 does not end on cylinder boundary.
/dev/hdc3 235971 238202 1124550 5 Extended
Partition 3 does not end on cylinder boundary.
/dev/hdc4 31350 132489 50974245 b W95 FAT32
Partition 4 does not end on cylinder boundary.
/dev/hdc5 235971 238202 1124518+ 82 Linux swap / Solaris
Partition table entries are not in disk order
Disk /dev/hdd: 41.1 GB, 41174138880 bytes
255 heads, 63 sectors/track, 5005 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdd1 2 5005 40194630 c W95 FAT32 (LBA)
Je vois bien "Partition x does not end on cylinder boundary" et " Partition table entries are not in disk order"
Qu'est ce que cela veut dire et comment puis-je réparer tout çà et devenir un utilisateur convaincu de UBUNTU ,
Merci de votre aide
#2 Le 22/02/2007, à 00:56
- best_friend_fr
Re : problème de grub
Salut
Peux-tu nous donner le contenu de ton fichier
/boot/grub/menu.lst
sudo apt-get replace langage_sms by grammaire orthographe ponctuation
La documentation est avant tout faite pour ceux qui posent les questions, et non ceux qui y répondent
Best_friend_fr
Hors ligne
#3 Le 22/02/2007, à 01:05
- amarock85
Re : problème de grub
salut best_friend_fr
Quand je tape la commande j'obtiens ça:
bash: /boot/grub/menu.lst: No such file or directory
Merci de ton aide
#4 Le 22/02/2007, à 01:07
- best_friend_fr
Re : problème de grub
C'est le contenu du fichier qui m'intéresse...
Tappe
gedit /boot/grub/menu.lst
dans une console et copie le ici
Dernière modification par best_friend_fr (Le 22/02/2007, à 01:09)
sudo apt-get replace langage_sms by grammaire orthographe ponctuation
La documentation est avant tout faite pour ceux qui posent les questions, et non ceux qui y répondent
Best_friend_fr
Hors ligne
#5 Le 22/02/2007, à 01:13
- amarock85
Re : problème de grub
Le problème c'est que le fichier est vierge.... menu.lst page blanche....
#6 Le 22/02/2007, à 01:15
- best_friend_fr
Re : problème de grub
que te donnes
ls -l /boot/grub
sudo apt-get replace langage_sms by grammaire orthographe ponctuation
La documentation est avant tout faite pour ceux qui posent les questions, et non ceux qui y répondent
Best_friend_fr
Hors ligne
#7 Le 22/02/2007, à 01:17
- amarock85
Re : problème de grub
ça:
ls: /boot/grub: No such file or directory
#8 Le 22/02/2007, à 01:19
- best_friend_fr
Re : problème de grub
cd /
ls
cd boot
ls
sudo apt-get replace langage_sms by grammaire orthographe ponctuation
La documentation est avant tout faite pour ceux qui posent les questions, et non ceux qui y répondent
Best_friend_fr
Hors ligne
#9 Le 22/02/2007, à 01:21
- amarock85
Re : problème de grub
cela a mieux réagit:
ubuntu@ubuntu:/$ ls
bin dev initrd media proc sbin target var
boot etc initrd.img mnt rofs srv tmp vmlinuz
cdrom home lib opt root sys usr
ubuntu@ubuntu:/$ cd boot
ubuntu@ubuntu:/boot$ ls
abi-2.6.17-10-generic System.map-2.6.17-10-generic
config-2.6.17-10-generic vmlinuz-2.6.17-10-generic
memtest86+.bin
ubuntu@ubuntu:/boot$
#10 Le 22/02/2007, à 01:22
- best_friend_fr
Re : problème de grub
Ben, ou est ton grub?
Le package grub est-il installé?
sudo apt-get replace langage_sms by grammaire orthographe ponctuation
La documentation est avant tout faite pour ceux qui posent les questions, et non ceux qui y répondent
Best_friend_fr
Hors ligne
#11 Le 22/02/2007, à 01:26
- amarock85
Re : problème de grub
Le souci c'est que la derniere tentative d'installation d'ubuntu j'ai essayé de le mettre sur hd2.1 et il n'a pas voulu l'installer...
en hd 0 j'ai "erreur 17"
le grub se charge....et "erreur 17"
donc maintenant ni xp ni ubuntu ne demarre....
#12 Le 22/02/2007, à 01:32
- best_friend_fr
Re : problème de grub
Comment fais tu pour démarrer alors?
sudo apt-get replace langage_sms by grammaire orthographe ponctuation
La documentation est avant tout faite pour ceux qui posent les questions, et non ceux qui y répondent
Best_friend_fr
Hors ligne
#13 Le 22/02/2007, à 01:35
- amarock85
Re : problème de grub
Je suis sur le live cd...
Je suis près à une enième install...
que signifie "erreur 17" ?
peut-on réinstaller le grub seul ?
#14 Le 22/02/2007, à 01:43
- best_friend_fr
Re : problème de grub
oui, on peut...
alors, il faut faire
sudo -s
mkdir /mnt/work
mkdir /mnt/work/boot
mount /dev/hdc2 /mnt/work
mount -o bind /dev /mnt/work/dev
mount -o bind /proc /mnt/work/proc
cp /proc/mounts /mnt/work/etc/mtab
chroot /mnt/work/ /bin/bash
et ensuite, tu fais
gedit /boot/grub/menu.lst
et tu m'envoies le contenu.
Dernière modification par best_friend_fr (Le 22/02/2007, à 01:45)
sudo apt-get replace langage_sms by grammaire orthographe ponctuation
La documentation est avant tout faite pour ceux qui posent les questions, et non ceux qui y répondent
Best_friend_fr
Hors ligne
#15 Le 22/02/2007, à 01:49
- amarock85
Re : problème de grub
MERCI dejà de me consacrer de ton temps...
voici le resultat:
ubuntu@ubuntu:/boot$
ubuntu@ubuntu:/boot$ sudo -s
root@ubuntu:/boot# mkdir /mnt/work
root@ubuntu:/boot# mkdir /mnt/work/boot
root@ubuntu:/boot# mount /dev/hda4 /mnt/work
mount: special device /dev/hda4 does not exist
root@ubuntu:/boot# mount -o bind /dev /mnt/work/dev
mount: mount point /mnt/work/dev does not exist
root@ubuntu:/boot# mount -o bind /proc /mnt/work/proc
mount: mount point /mnt/work/proc does not exist
root@ubuntu:/boot# cp /proc/mounts /mnt/work/etc/mtab
cp: cannot create regular file `/mnt/work/etc/mtab': No such file or directory
root@ubuntu:/boot# chroot /mnt/work/ /bin/bash
chroot: cannot run command `/bin/bash': No such file or directory
root@ubuntu:/boot#
root@ubuntu:/boot# gedit /boot/grub/menu.lst
root@ubuntu:/boot#
le menu.lst est toujours vierge....
#16 Le 22/02/2007, à 01:50
- best_friend_fr
Re : problème de grub
Je m'étais trompé, c'était hdc2 et pas hda4 (un mauvais copier coller...
Il faut refaire
mount /dev/hdc2 /mnt/work
mount -o bind /dev /mnt/work/dev
mount -o bind /proc /mnt/work/proc
cp /proc/mounts /mnt/work/etc/mtab
chroot /mnt/work/ /bin/bash
sudo apt-get replace langage_sms by grammaire orthographe ponctuation
La documentation est avant tout faite pour ceux qui posent les questions, et non ceux qui y répondent
Best_friend_fr
Hors ligne
#17 Le 22/02/2007, à 01:55
- amarock85
Re : problème de grub
ok ça donne çà:
ubuntu@ubuntu:~$ sudo -s
root@ubuntu:~# mkdir /mnt/work
mkdir: cannot create directory `/mnt/work': File exists
root@ubuntu:~# mkdir /mnt/work/bootmount /dev/hdc2 /mnt/work
mkdir: cannot create directory `/dev/hdc2': File exists
mkdir: cannot create directory `/mnt/work': File exists
root@ubuntu:~# mount -o bind /dev /mnt/work/dev
root@ubuntu:~# mount -o bind /proc /mnt/work/proc
root@ubuntu:~# cp /proc/mounts /mnt/work/etc/mtab
root@ubuntu:~# chroot /mnt/work/ /bin/bash
root@ubuntu:/# gedit /boot/grub/menu.lst
cannot open display:
Run 'gedit --help' to see a full list of available command line options.
root@ubuntu:/# gedit /boot/grub/menu.lst
#18 Le 22/02/2007, à 01:58
- best_friend_fr
Re : problème de grub
et
ls -l /boot/grub
et
sudo gedit /boot/grub/menu.lst
ou si ca ne marche toujours pas
sudo gedit /mnt/work/boot/grub/menu.lst
sudo apt-get replace langage_sms by grammaire orthographe ponctuation
La documentation est avant tout faite pour ceux qui posent les questions, et non ceux qui y répondent
Best_friend_fr
Hors ligne
#19 Le 22/02/2007, à 02:01
- amarock85
Re : problème de grub
c'est toujours vierge le menu.lst
ubuntu@ubuntu:~$ ls -l /boot/grub
ls: /boot/grub: No such file or directory
ubuntu@ubuntu:~$ sudo gedit /boot/grub/menu.ls
ubuntu@ubuntu:~$ sudo gedit /mnt/work/boot/grub/menu.lst
ubuntu@ubuntu:~$ sudo gedit /boot/grub/menu.lst
ubuntu@ubuntu:~$
#20 Le 22/02/2007, à 02:04
- best_friend_fr
Re : problème de grub
cd /mnt
ls
cd work
ls
cd boot
ls
cd grub
ls
sudo apt-get replace langage_sms by grammaire orthographe ponctuation
La documentation est avant tout faite pour ceux qui posent les questions, et non ceux qui y répondent
Best_friend_fr
Hors ligne
#21 Le 22/02/2007, à 02:05
- amarock85
Re : problème de grub
c mieux...:)
ubuntu@ubuntu:~$ cd /mnt
ubuntu@ubuntu:/mnt$ ls
work
ubuntu@ubuntu:/mnt$ cd work
ubuntu@ubuntu:/mnt/work$ ls
bin cdrom home lib mnt root sys var
boot dev initrd lost+found opt sbin tmp vmlinuz
bootmount etc initrd.img media proc srv usr
ubuntu@ubuntu:/mnt/work$ cd boot
ubuntu@ubuntu:/mnt/work/boot$ ls
abi-2.6.17-10-generic memtest86+.bin
config-2.6.17-10-generic System.map-2.6.17-10-generic
grub vmlinuz-2.6.17-10-generic
initrd.img-2.6.17-10-generic
ubuntu@ubuntu:/mnt/work/boot$ cd grub
ubuntu@ubuntu:/mnt/work/boot/grub$ ls
#22 Le 22/02/2007, à 02:18
- amarock85
Re : problème de grub
2eme partie:
default e2fs_stage1_5 jfs_stage1_5 reiserfs_stage1_5 stage2
device.map fat_stage1_5 minix_stage1_5 stage1 xfs_stage1_5
ubuntu@ubuntu:/mnt/work/boot/grub$
#23 Le 22/02/2007, à 02:18
- best_friend_fr
Re : problème de grub
/sbin/grub-install /dev/hdc
sudo apt-get replace langage_sms by grammaire orthographe ponctuation
La documentation est avant tout faite pour ceux qui posent les questions, et non ceux qui y répondent
Best_friend_fr
Hors ligne
#24 Le 22/02/2007, à 02:20
- amarock85
Re : problème de grub
ça donne ça:
ubuntu@ubuntu:~$ /sbin/grub-install /dev/hdc
mkdir: cannot create directory `/boot/grub': Permission denied
ubuntu@ubuntu:~$
#25 Le 22/02/2007, à 02:21
- best_friend_fr
Re : problème de grub
sudo -s
/sbin/grub-install /dev/hdc
sudo apt-get replace langage_sms by grammaire orthographe ponctuation
La documentation est avant tout faite pour ceux qui posent les questions, et non ceux qui y répondent
Best_friend_fr
Hors ligne