Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 29/02/2008, à 21:55

adup1307

Bloquer avec grub suite à instal ubuntu

Bonjour,

tout d'abord je debute donc si je dis trop de betises bin dites le moi mais frapper pas trop fort sur la tete tongue

J'ai decide d'installer une ubuntu sur mon portable (un acer travelmate 4002 LMI)
Je n'ai pas fait de dual boot , vu que je ne veux plus du tout de win.... j'ai donc completement formater mon disque.

j'ai installé la ubuntu depuis le live cd, tout se passe bien pendant l'installation cad pas de msg d'erreur.... puis il me demande de rebooter.

ok, je reboot et la c'est le drame !:D

j'ai directement un prompt : grub>

j'ai fait quelques recherches sur le net, mais a priori j'aurai du avoir au moins un menu avec une ligne par OS, et pouvoir editer ces lignes. Mais je ne veux pas de dual boot et je n'ai que linux d'installer! On dirait que je dois configurer malgres tout grub ....

Donc au demarrage de la machine j'ai uniquement le prompt grub et je ne peux pas en sortir.
j'ai essayé :
grub> root (hd0,0)
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 17 sectors are embeded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+17 p (hd0,0)/boot/grub/stage2/boot/grub/menu.lst"...succeeded
Done.

Mais apres je fais quoi ....snif... help me...

merci d'avance pour votre aide ...

Dernière modification par adup1307 (Le 29/02/2008, à 21:55)

Hors ligne

#2 Le 29/02/2008, à 22:03

vista sous belga

Re : Bloquer avec grub suite à instal ubuntu

donne les retours de

sudo fdisk -l
sudo grub
find /boot/grub/stage1
quit

#3 Le 29/02/2008, à 22:19

adup1307

Re : Bloquer avec grub suite à instal ubuntu

Tout d'abord merci de m'aider.

On est bien d'accord que les commandes que tu m'as demandé de taper j'ai du les faire en demarrant à partir du live cd...(Histoire que l'on se comprenne bien, je n'ai actuellement plus acces à aucun os sur ma machine)

voici le resultat :
fdisk>

Disque /dev/sda: 100.0 Go, 100030242816 octets
255 heads, 63 sectors/track, 12161 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Disk identifier: 0x9bd29bd2

Périphérique Amorce    Début         Fin      Blocs    Id  Système
/dev/sda1   *           1        3651    29326626   83  Linux
/dev/sda2            3652       11067    59569020   83  Linux
/dev/sda3           11068       12161     8787555   82  Linux swap / Solaris

Disque /dev/sdb: 260 Mo, 260046848 octets
256 heads, 62 sectors/track, 32 cylinders
Units = cylindres of 15872 * 512 = 8126464 bytes
Disk identifier: 0x3011b948

Périphérique Amorce    Début         Fin      Blocs    Id  Système
/dev/sdb1   *           1          32      253928+   6  FAT16

grub> find /boot/grub/stage1
hd(0,0)


bizarre ce /dev/sdb1 en FAT16 ! ? non ?

Hors ligne

#4 Le 29/02/2008, à 22:23

adup1307

Re : Bloquer avec grub suite à instal ubuntu

bon ok  en fait la derniere ligne sdb1 en fat16 c'est ma cle usb...
faites comme si j'avais rien dit  ...:cool:

Hors ligne

#5 Le 29/02/2008, à 22:25

vista sous belga

Re : Bloquer avec grub suite à instal ubuntu

tape (oui je sais tu es en live)

sudo umount -a
sudo mount /dev/sda1 /mnt

donne les retours de

cat /mnt/boot/grub/menu.lst
ls /mnt/boot
ls /mnt/boot/grub

#6 Le 29/02/2008, à 22:40

adup1307

Re : Bloquer avec grub suite à instal ubuntu

voila le resultat des commandes :

ubuntu@ubuntu:~$ sudo umount -a
umount: /tmp: périphérique occupé
umount: /dev/shm: périphérique occupé
umount: /dev: périphérique occupé
umount: /var/run: périphérique occupé

ubuntu@ubuntu:~$ sudo mount /dev/sda1 /mnt

ubuntu@ubuntu:~$ cat /mnt/boot/grub/menu.lst
# 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 use 'savedefault' 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=d4e05c27-8bcb-4b82-8334-211f3f77d394 ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

## 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

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## 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

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

ubuntu@ubuntu:~$ ls /mnt/boot
abi-2.6.24-4-generic         initrd.img-2.6.24-4-generic.bak
config-2.6.24-4-generic      memtest86+.bin
grub                         System.map-2.6.24-4-generic
initrd.img-2.6.24-4-generic  vmlinuz-2.6.24-4-generic

ubuntu@ubuntu:~$ ls /mnt/boot/grub
default        installed-version  minix_stage1_5     xfs_stage1_5
device.map     jfs_stage1_5       reiserfs_stage1_5
e2fs_stage1_5  menu.lst           stage1
fat_stage1_5   menu.lst~          stage2

Hors ligne

#7 Le 29/02/2008, à 22:48

vista sous belga

Re : Bloquer avec grub suite à instal ubuntu

tape

sudo umount -a
sudo mount /dev/sda1 /mnt
sudo gedit /mnt/boot/grub/menu.lst

efface tout et colle ceci

# 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 use 'savedefault' 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=d4e05c27-8bcb-4b82-8334-211f3f77d394 ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

## 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

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## 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

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##


title           Ubuntu
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.24-4-generic root=UUID=d4e05c27-8bcb-4b82-8334-211f3f77d394 ro quiet splash locale=fr_FR
initrd          /boot/initrd.img-2.6.24-4-generic
quiet

title           Ubuntu  (recovery mode)
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.24-4-generic root=UUID=d4e05c27-8bcb-4b82-8334-211f3f77d394 ro single
initrd          /boot/initrd.img-2.6.24-4-generic

title           Ubuntu memtest86+
root            (hd0,0)
kernel          /boot/memtest86+.bin

enregistre et redémarre

#8 Le 29/02/2008, à 22:58

adup1307

Re : Bloquer avec grub suite à instal ubuntu

ca marche !

il faut donc suite à une instal meme sans dual boot, configurer grub, c'est bien cela ?

je croyais qu'il ne servait que dans le cas des dual boots.

merci à toi en tout cas ....

me reste plus qu'à configurer mon acces au net, mais ca c'est une autre histoire ...

Hors ligne

#9 Le 29/02/2008, à 23:01

vista sous belga

Re : Bloquer avec grub suite à instal ubuntu

adup1307 a écrit :

il faut donc suite à une instal meme sans dual boot, configurer grub, c'est bien cela ?

non
je ne sais pas ce qu'il s'est passé pour toi??

#10 Le 29/02/2008, à 23:01

vista sous belga

Re : Bloquer avec grub suite à instal ubuntu

en wifi ou filaire la connexion?

#11 Le 29/02/2008, à 23:14

adup1307

Re : Bloquer avec grub suite à instal ubuntu

en wifi, je viens de le faire pas de souci.

d'ailleurs je te reponds depuis mon portable big_smile

encore merci à toi, bonne fin de soirée (ce qu'il en reste !)

Hors ligne