Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Problème avec Ubuntu (Dapper Drake), grub et partition NTFS

3 réponses
Avatar
Ferdinand Bardamu
Bonjour.


J'ai depuis janvier une machine (taiwanais) achetée avec windows XP
préinstallé. J'ai réussi dès le début à repartitionner, installer Suse
(à titre temporaire) et avoir accès aux deux systèmes d'exploitation.

Je suis passé hier à l'installation de la dernière livraison d'ubuntu et
j'ai rencontré plusieurs problèmes autour de la partition windows.

Déjà au partitionnement, le système voit qu'il s'agit d'une partition
NTFS mais est incapable de la monter. J'ai un peu tâtonné, notamment
pour installer l'amorce entre sda1 et sda3

Mon problème est le suivant ; même en montant la partition windows dans
un terminal je ne peux la voir, mais surtout, même si j'ai modifié le
grub pour voir les choix possible je n'arrive pas à activer la
partition windows.

Je suis d'abord passé par http://doc.ubuntu-fr.org (notamment
http://doc.ubuntu-fr.org/installation/grub) mais cela n'a rien donné.

Avez-vous une solution ou des pistes svp ?


fdisk donne (je n'ai qu'un disque)


Disque /dev/sda: 160.0 Go, 160041885696 octets
255 têtes, 63 secteurs/piste, 19457 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets

Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 * 1 2351 18876344 7 HPFS/NTFS
/dev/sda2 2351 2352 8032+ 92 Inconnu
/dev/sda3 2352 6269 31463302+ 83 Linux
/dev/sda4 6269 19457 105940611+ f W95 Etendu (LBA)
/dev/sda5 6269 7574 10490413+ 83 Linux
/dev/sda6 7575 10185 20972826 83 Linux
/dev/sda7 10186 15407 41945683+ 83 Linux
/dev/sda8 15408 16713 10490413+ 83 Linux
/dev/sda9 16714 19457 22041148+ 83 Linux



/boot/grub/menu.lst (que j'ai simplement édité, je n'ai lancé aucune
commande genre grub-install)

# 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 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=/dev/sda3 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,2)

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

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery mode) 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.15-23-amd64-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-23-amd64-generic root=/dev/sda3 ro quiet splash
initrd /boot/initrd.img-2.6.15-23-amd64-generic
savedefault
boot

title Ubuntu, kernel 2.6.15-23-amd64-generic (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-23-amd64-generic root=/dev/sda3 ro single
initrd /boot/initrd.img-2.6.15-23-amd64-generic
boot

title Ubuntu, kernel 2.6.15-19-amd64-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-19-amd64-generic root=/dev/sda3 ro quiet splash
initrd /boot/initrd.img-2.6.15-19-amd64-generic
savedefault
boot

title Ubuntu, kernel 2.6.15-19-amd64-generic (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-19-amd64-generic root=/dev/sda3 ro single
initrd /boot/initrd.img-2.6.15-19-amd64-generic
boot

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

### END DEBIAN AUTOMAGIC KERNELS LIST

title Windows NT/2000/XP
#unhide (hd0,0) #la première partition est démasquée
#hide (hd0,1) #la seconde partition est masquée
rootnoverify (hd0,0) # cette ligne est optionnelle
makeactive
chainloader +1


--
FB

3 réponses

Avatar
Ferdinand Bardamu
Attention : 3 forums visés
fr.comp.os.linux.configuration,fr.comp.os.ms-windows,fr.comp.sys.pc

Suivi proposé vers fr.comp.sys.pc

L'article précédent est <e6gja7$25lq$



Bonjour.

[Résumé de l'article précédent]

J'avais déjà une machine avec deux systèmes d'exploitation (XP et Suse).

Hier je suis passé de Suse à Ubuntu, et je me suis planté dans
l'installation de Grub que j'ai placé au début de la partition windows
au lieu du disque (/dev/sda1)

=========================================================================== Disque /dev/sda: 160.0 Go, 160041885696 octets
255 têtes, 63 secteurs/piste, 19457 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets

Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 * 1 2351 18876344 7 HPFS/NTFS
/dev/sda2 2351 2352 8032+ 92 Inconnu
/dev/sda3 2352 6269 31463302+ 83 Linux
/dev/sda4 6269 19457 105940611+ f W95 Etendu (LBA)
/dev/sda5 6269 7574 10490413+ 83 Linux
/dev/sda6 7575 10185 20972826 83 Linux
/dev/sda7 10186 15407 41945683+ 83 Linux
/dev/sda8 15408 16713 10490413+ 83 Linux
/dev/sda9 16714 19457 22041148+ 83 Linux
===========================================================================
Mon problème est que si fdisk sous linux voit le disque sda ce n'est
plus le cas du bios que ni voit plus que le lecteur/graveur de dvd.
Autant dire que je ne peux même plus intaller à nouveau XP sur sda1.

Je précise pour être complet que je n'ai pas de lecteur de disquette.
éventuellement une clé usb qui est reconnue lors de l'amorçage dont sur
laquelle je pourrais copier des utilitaires "dos".

Pour finir j'ai l'impression que le disque dur est "scsi". J'ai acheté
la machine installée, j'ai le cdrom XP d'origine avec quelques cdroms
associés aux différents périphériques mais rien pour le scsi.

Donc, comment puis-je faire depuis linux ou dos afin de préparer le
disque dur pour réinstaller windows ?

Par avance, merci.

--
FB
Avatar
gijoe
Ferdinand Bardamu wrote:
Bonjour.


J'ai depuis janvier une machine (taiwanais) achetée avec windows XP
préinstallé. J'ai réussi dès le début à repartitionner, installer Suse
(à titre temporaire) et avoir accès aux deux systèmes d'exploitation.

Je suis passé hier à l'installation de la dernière livraison d'ubuntu et
j'ai rencontré plusieurs problèmes autour de la partition windows.

Déjà au partitionnement, le système voit qu'il s'agit d'une partition
NTFS mais est incapable de la monter. J'ai un peu tâtonné, notamment
pour installer l'amorce entre sda1 et sda3

Mon problème est le suivant ; même en montant la partition windows dans
un terminal je ne peux la voir, mais surtout, même si j'ai modifié le
grub pour voir les choix possible je n'arrive pas à activer la
partition windows.

Je suis d'abord passé par http://doc.ubuntu-fr.org (notamment
http://doc.ubuntu-fr.org/installation/grub) mais cela n'a rien donné.

Avez-vous une solution ou des pistes svp ?


fdisk donne (je n'ai qu'un disque)


Disque /dev/sda: 160.0 Go, 160041885696 octets
255 têtes, 63 secteurs/piste, 19457 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets

Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 * 1 2351 18876344 7 HPFS/NTFS
/dev/sda2 2351 2352 8032+ 92 Inconnu
/dev/sda3 2352 6269 31463302+ 83 Linux
/dev/sda4 6269 19457 105940611+ f W95 Etendu (LBA)
/dev/sda5 6269 7574 10490413+ 83 Linux
/dev/sda6 7575 10185 20972826 83 Linux
/dev/sda7 10186 15407 41945683+ 83 Linux
/dev/sda8 15408 16713 10490413+ 83 Linux
/dev/sda9 16714 19457 22041148+ 83 Linux



/boot/grub/menu.lst (que j'ai simplement édité, je n'ai lancé aucune
commande genre grub-install)

# 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 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=/dev/sda3 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,2)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternativeúlse
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternativeúlse
# lockalternativeúlse

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vgay1 resume=/dev/hda5
# defoptions=quiet splash

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery mode) 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úlse
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentryúlse

## ## End Default Options ##

title Ubuntu, kernel 2.6.15-23-amd64-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-23-amd64-generic root=/dev/sda3 ro quiet splash
initrd /boot/initrd.img-2.6.15-23-amd64-generic
savedefault
boot

title Ubuntu, kernel 2.6.15-23-amd64-generic (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-23-amd64-generic root=/dev/sda3 ro single
initrd /boot/initrd.img-2.6.15-23-amd64-generic
boot

title Ubuntu, kernel 2.6.15-19-amd64-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-19-amd64-generic root=/dev/sda3 ro quiet splash
initrd /boot/initrd.img-2.6.15-19-amd64-generic
savedefault
boot

title Ubuntu, kernel 2.6.15-19-amd64-generic (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-19-amd64-generic root=/dev/sda3 ro single
initrd /boot/initrd.img-2.6.15-19-amd64-generic
boot

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

### END DEBIAN AUTOMAGIC KERNELS LIST

title Windows NT/2000/XP
#unhide (hd0,0) #la première partition est démasquée
#hide (hd0,1) #la seconde partition est masquée
rootnoverify (hd0,0) # cette ligne est optionnelle
makeactive
chainloader +1


IL MANQUE LE MOT CLE 'boot' juste après 'chainloader +1'


SALUT,


Ton disk, c'est pas du serial-ATA par hasard ??????????????????
Moi je crois que oui !!!!

Au vu de ton fdisk, ya un peu le bordel, donc je te conseille, si tu as
tout sauvegardé, de supprimer toutes les partitions, et de te refaire
une install propre de ouindaube, puis de GNU/Linux, en faisant ton
propre partitionnement. Tu vas prendre du temps, mais tu vas apprendre.

Au fait le ntfs n'est que 'read' sous linux, sauf si tu payes pour
'captive-ntfs' ou 'paragon-ntfs', donc à toi de voir si c'est ce dont tu
as/auras besoin (et dans le futur), à savoir écrire sur du ntfs à partir
de linux.

A+

Avatar
Xes
Comment tu t'essayes de monter ta partition ntfs ?
Montre nous on te dira ce qui cloche.
Donne nous aussi ton /etc/fstab