[linux-commande] Changer ID partition
Résolu
hamador
Messages postés
4
Date d'inscription
Statut
Membre
Dernière intervention
-
jipicy Messages postés 40842 Date d'inscription Statut Modérateur Dernière intervention -
jipicy Messages postés 40842 Date d'inscription Statut Modérateur Dernière intervention -
A voir également:
- [linux-commande] Changer ID partition
- Changer dns - Guide
- Invite de commande - Guide
- Commande terminal mac - Guide
- Easeus partition master - Télécharger - Stockage
- Changer carte graphique - Guide
4 réponses
Probléme resolu, j'ai bien utiliser grub et aprés avoir googler un peu j'ai trouver comment inclure des parametres dans un nouvelle interface
grub << EOF
parttype (hd0,0) 0xb
EOF
merci à vous 2 :)
au revoir
grub << EOF
parttype (hd0,0) 0xb
EOF
merci à vous 2 :)
au revoir
Salut,
Tu peux essayer à travers "grub" et son "shell", et plus particulièrement la commande "parttype".
Extrait de "info grub" :
Tu peux essayer à travers "grub" et son "shell", et plus particulièrement la commande "parttype".
Extrait de "info grub" :
13.2.12 parttype ---------------- -- Command: parttype part type Change the type of an existing partition. PART is a partition specification in GRUB syntax (*note Naming convention::); TYPE is the new partition type and must be a number in the range 0-0xff.La commande à l'invite de grub est du genre :
grub> parttype (hd0,2) 0xc;-))
merci, ça à l'air trés bien ça aussi (je ne connaissais pas la commande, je log tout ça dans un coin) mais ça ne maide pas dans le script car on est obliger de rentrer dans grub (ça revient au même qu'avec fdisk :/)
Regarde voir avec la commande "expect". Extrait du man :
Expect is a program that "talks" to other interactive programs accord- ing to a script. Following the script, Expect knows what can be expected from a program and what the correct response should be. An interpreted language provides branching and high-level control struc- tures to direct the dialogue. In addition, the user can take control and interact directly when desired, afterward returning control to the script.