[Kubuntu] Probleme partition de boot
J'utilise la dernier version de kubuntu que je viens a peine d'installer et j'ai un petit probléme au boot.
Toute l'installation s'est tres bien derouler et kubuntu marche impec.
Seul petit bemol on dirait que la partition ou kubuntu a ete installer n'es pas monter en boot.
Je m'explique lorsque j'allume mon pc il ne boot pas comme si il n'y avait pas d'os installer.
Par contre si je met le cd de kubuntu il boot sur le cd je prend ensuite l'option demarer a partir du disque dur et la sa marche nikel.
je voulais donc juste savoir comment monter en boot une partition merci.
Configuration: Linux Konqueror 3.5
27 réponses
Un utilisateur rencontre un problème de boot après installation de Kubuntu : le système ne démarre pas sur le disque dur, alors que le CD permet de démarrer depuis le disque. Plusieurs réponses suggèrent de modifier grub dans /boot/grub/menu.lst avec kedit ou sed, afin de fixer la partition et d'afficher le menu en cas de besoin. D'autres conseils portent sur l'ordre de démarrage du BIOS et sur la vérification des noms de périphériques (par ex. /dev/hda1) avec fdisk pour que le chargeur pointe sur la bonne partition. En complément utile, la discussion souligne que le choix du disque de démarrage peut dépendre du BIOS et que des ajustements simples du fichier grub peuvent suffire selon le matériel.
-
Modérateuredite le fichier /boot/grub/device.map
et mets un # avant la ligne avec sda(hd0) /dev/hda #(hd1) /dev/sda
et redémarre
-
Voila:
root@MonPC:/home/nico# fdisk -l /dev/sda
Disque /dev/sda: 164.6 Go, 164696555520 octets
255 têtes, 63 secteurs/piste, 20023 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 * 1 20022 160826683+ 7 HPFS/NTFS
root@MonPC:/home/nico#
C'est mon deuxieme HDD SATA que d'ailleur je narrive pas a y acceder car il n'es pas dans la liste des support de stockage. -
Modérateur/dev/sda c'est quoi?
affiche fdisk -l /dev/sda
et utilise les balises code (voir le bouton Code - tu selectionnes le texte, ensuite tu fait clic sur le bouton Code) -
J'ai essayer plusieur ordre:
1-HDD
2-CDROM
dans cette config l'image reste figee apres la page de la detection des peripherique IDE.
1-CDROM
2-HDD
la carement si le lecteur dvd est vide apres la page de detection des peripherique ide le pc reboot direct.
Donc voila :( -
ModérateurJe suis déséspéré
ne soit pas :-)
et dans ton BIOS c'est quoi l'ordre de demarrage? -
J'ai fait la manip et toujours rien au boot :'(
Je suis déséspéré -
ModérateurAprès chaque caractère en gras tu appuies sur Entrer
fdisk /dev/hda .... Command (m for help): a Partition number (1-3): 1 Command (m for help): w
et redémarre -
Voilou:
root@MonPC:/home/nico# fdisk -l /dev/hda
Disque /dev/hda: 123.5 Go, 123522416640 octets
255 têtes, 63 secteurs/piste, 15017 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Périphérique Amorce Début Fin Blocs Id Système
/dev/hda1 1 4830 38796943+ 83 Linux
/dev/hda2 5223 15017 78678337+ b W95 FAT32
/dev/hda3 4831 5222 3148740 82 Linux swap / Solaris
Les entrées de la table de partitions ne sont pas dans l'ordre du disque
root@MonPC:/home/nico# -
Modérateuraffiche
fdisk -l /dev/hda
il me semble que tu n'as pas le flag de boot sur hda1 -
Voici le kedit /etc/fstab:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/hda1
UUID=0410eee2-0567-4686-8ac4-4fc8d4ae53cb / ext3 defaults,errors=remount-ro 0 1
# /dev/hda2
UUID=EB77-422D /media/hda2 vfat defaults,utf8,umask=007,gid=46 0 1
# /dev/hda3
UUID=5ffe1e5e-128b-4069-8cbd-4f1f82d3ba74 none swap sw 0 0
/dev/hdb /media/cdrom0 udf,iso9660 user,noauto 0 0
Et voila le cat /boot/grub/device.map:
root@MonPC:/home/nico# cat /boot/grub/device.map
(hd0) /dev/hda
(hd1) /dev/sda
root@MonPC:/home/nico# -
Modérateuraffiche aussi
cat /boot/grub/device.map
-
ContributeurRe-
tape :
kedit /etc/fstab
et affiche le résultat.
A+, cede. -
Voici donc le resultat avec kedit:
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 3
## #hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=0410eee2-0567-4686-8ac4-4fc8d4ae53cb ro
# kopt_2_6=root=/dev/hda1 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,0)
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash locale=fr_FR
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## ## End Default Options ##
title Ubuntu, kernel 2.6.17-10-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hda1 ro quiet splash locale=fr_FR
initrd /boot/initrd.img-2.6.17-10-generic
quiet
savedefault
boot
title Ubuntu, kernel 2.6.17-10-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.17-10-generic
boot
title Ubuntu, memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
quiet
boot
### END DEBIAN AUTOMAGIC KERNELS LIST
Sinon j'ai essayer: sed -i.orig 's/hiddenmenu/#hiddenmenu/' /boot/grub/menu.lst
Sa ne fonctionne tjrs pas au redemarage mais quand jai bootez avec le cd et choisi demarer a partir du disque dur au moment du boot j'ai eu le selecteur de boot lilo je crois qui es apparu. -
ModérateurEdition en ligne de commande
sed -i.orig 's/hiddenmenu/#hiddenmenu/' /boot/grub/menu.lst
et redémarre
-
ContributeurRe-
Affiche le résultat avec kedit,
et en root déjà je pense que tu pourras commenter la ligne hiddenmenu
en y ajoutant devant un #
ça te donnera ceci :
#hiddenmenu
et ensuite tu enregistreras le fichier.
A+, cede. -
J'ai telecharger kedit au cas ou mais avec le grep ces plus lisible je mettrait le resultat avec kedit si ces necessaire.
Voici avec le grep:
root@MonPC:/home/nico# grep -E '^[^#]' /boot/grub/menu.lst
default 0
timeout 3
hiddenmenu
title Ubuntu, kernel 2.6.17-10-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hda1 ro quiet splash l ocale=fr_FR
initrd /boot/initrd.img-2.6.17-10-generic
quiet
savedefault
boot
title Ubuntu, kernel 2.6.17-10-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.17-10-generic
boot
title Ubuntu, memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
quiet
boot
root@MonPC:/home/nico# -
ContributeurRe-
En root, tu peux installer kedit (avec sudo je crois)
apt-get install kedit
et
kedit /boot/grub/menu.lst
et affiche ici le résultat.
A+, cede. -
ModérateurAffiche plutôt en utilisant la commande (donc on n'affiche pas les commentaires)
grep -E '^[^#]' /boot/grub/menu.lst
pour edition avec vi on verra après :-)) -
Oki j'ai editer avec vi ces un peu long par contre:
menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 3
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options -
ContributeurRe-
Tu as bien qq chose pour éditer les fichiers ??
Essaie :
vi /boot/grub/menu.lst
ou alors tu installes kedit avec synaptic
A+, cede.
- 1
- 2