#1 Le 23/12/2007, à 18:51
- Erkmaned
Free DOS, Win XP et fanion d'amorce...
Bonjour à tous et à toutes !!!
Nouveau sur Linux avec ma Ubuntu (Gutsy), je suis très content de cet OS. Seulement voilà je rencontre une petite difficulté actuellement. Je m'explique.
J'ai un Acer Aspire 5611AWLMi - qui fonctionne très bien (même si j'ai écrasé bêtement PQService mais bon, c'est pas grave, je peux survivre sans vu que j'ai les CD's de réinstallation de Win XP Media Center Edition de sortie d'usine), dont j'ai partitionné le DD comme suit :
Disque /dev/sda: 120.0 Go, 120034123776 octets
255 heads, 63 sectors/track, 14593 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Disk identifier: 0xb8f0ffa4
Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 * 1 6375 51207156 c W95 FAT32 (LBA)
/dev/sda2 6376 11475 40965750 7 HPFS/NTFS
/dev/sda3 * 11476 11603 1028160 e W95 FAT16 (LBA)
/dev/sda4 11604 14593 24017175 5 Extended
/dev/sda5 11604 11725 979933+ 7 HPFS/NTFS
/dev/sda6 11726 12090 2931831 b W95 FAT32
/dev/sda7 12091 12333 1951866 82 Linux swap / Solaris
/dev/sda8 12334 14035 13671283+ 83 Linux
/dev/sda9 14036 14593 4482103+ 83 Linux
(eh oui comme vous l'aurez remarqué, il y a deux fanions d'amorce en primary... heu, je sais, je sais, c'est interdit, mais bon, vu qu'ils se modifient tout seul (???))
En ce qui concerne les contenus des partitions : sda1 contient Windows, sda2 contient des données, sda3 contient l'OS FreeDOS, sda5 contient des données, sda6 encore des données, sda8 est / (Linux) et sda9 est /home...
Bref. Voilà le problème. Quand je change avec fdisk le fanion d'amorce (un sur sda3 rien sur sda1), grub arrive à booter sur sda3, pas de problème.
Si je reboote pour ensuite aller sur sda1 (Windows), beeen... "quelque chose" bascule le fanion d'amorce sur sda1... et donc, je ne peux plus booter sur sda3 (FreeDOS), cela m'affiche un message d'erreur. Le seul moyen pour moi de rebooter sur Free DOS à l'heure actuelle est de passer sur Linux et d'utiliser fdisk pour remettre le fanion d'amorce sur sda3, ce qui n'est pas très pratique.
Peut-on envisager de modifier menu.lst par exemple, pour indiquer au système qu'il faut basculer le fanion d'amorce au moment o๠l'on sélectionne un OS dans le menu de grub ? Ou bien y-a-t'il une autre astuce ?
Je peux vous transmettre mon menu.lst en temps voulu, si vous en avez besoin. En tout cas, je serai heureux de pouvoir régler ce petit souci, sans avoir à redéfinir la taille des cylindres (j'en ai bien plus que 1024... c'est d'origine). Merci encore pour vos réponses, en tout cas je suis très content d'opérer sur ma Ubuntu - même si je désire garder Windows, car ma machine est optimisée pour l'OS... pis j'ai pas encore assez d'assurance sous Linux...
Hors ligne
#2 Le 23/12/2007, à 19:19
- best_friend_fr
Re : Free DOS, Win XP et fanion d'amorce...
Salut,
Je ne crois pas que ton probleme vienne de grub, mais a tout hasard, sonne ton 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 23/12/2007, à 20:21
- Erkmaned
Re : Free DOS, Win XP et fanion d'amorce...
Voilà mon 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 10
## 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=dafbf8f3-c0db-4a9a-915f-424d849d9cb8 ro
## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,7)
## 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 7.10, kernel 2.6.22-14-generic
root (hd0,7)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=dafbf8f3-c0db-4a9a-915f-424d849d9cb8 ro quiet splash locale=fr_FR
initrd /boot/initrd.img-2.6.22-14-generic
quiet
title Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root (hd0,7)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=dafbf8f3-c0db-4a9a-915f-424d849d9cb8 ro single
initrd /boot/initrd.img-2.6.22-14-generic
title Ubuntu 7.10, memtest86+
root (hd0,7)
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Windows XP Media Center Edition
root (hd0,0)
savedefault
chainloader +1
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda3
title FreeDOS
root (hd0,2)
savedefault
chainloader +1
boot
Encore merci pour votre aide best_friend_fr
Hors ligne
#4 Le 27/12/2007, à 01:18
- best_friend_fr
Re : Free DOS, Win XP et fanion d'amorce...
Bon, ben je ne vois pas d'erreur. Ca vient peut etre de ton windows...
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