Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Grub] Effacer avec commande dd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Tue Mar 25, 2008 1:43 am    Post subject: [Grub] Effacer avec commande dd Reply with quote

Salut tout le monde, je vais donner mon disque dur externe et je dois effacer grub de là...

Par contre, il a déjà 4 partitions sur le disque en question et c'est correct comme ça.

Alors je voudrais savoir quelle commande je dois lancer pour effacer seulement grub sans rien toucher au HDD.

C'est très important, il y a des photos que je dois donner sur ce HDD.

Code:

# dd if=/dev/zero of=/dev/sdb bs=512 count=1

Ou

# dd if=/dev/zero of=/dev/sdb bs=446 count=1


Merci !


Last edited by d2_racing on Tue Mar 25, 2008 11:33 am; edited 3 times in total
Back to top
View user's profile Send private message
Leander256
l33t
l33t


Joined: 05 Jul 2003
Posts: 910
Location: Singapour

PostPosted: Tue Mar 25, 2008 4:58 am    Post subject: Re: Effacer Grub avec une commande linux ? Reply with quote

Salut, c'est:

Code:

# dd if=/dev/zero of=/dev/sdb bs=446 count=1


qu'il te faut utiliser, parce que les 66 octets restants du secteur servent a stocker la table des partitions (j'ai fait la boulette une fois, donc tu peux me croire :P)
Back to top
View user's profile Send private message
geekounet
Bodhisattva
Bodhisattva


Joined: 11 Oct 2004
Posts: 3772
Location: Wellington, Aotearoa

PostPosted: Tue Mar 25, 2008 6:39 am    Post subject: Reply with quote

3122 posts et t'arrives encore à oublier pour le titre ? ;)
Back to top
View user's profile Send private message
Desintegr
l33t
l33t


Joined: 25 Mar 2004
Posts: 863
Location: France - Orléans

PostPosted: Tue Mar 25, 2008 8:11 am    Post subject: Re: Effacer Grub avec une commande linux ? Reply with quote

Leander256 wrote:
parce que les 66 octets restants du secteur servent a stocker la table des partitions (j'ai fait la boulette une fois, donc tu peux me croire :P)

Au pire, il y a toujours TestDisk pour réparer la boulette :P.
_________________
Gentoo ~AMD64
Hoc Volo, Sic Jubeo !
Mon wiki : http://desintegr.free.fr
Back to top
View user's profile Send private message
GentooUser@Clubic
l33t
l33t


Joined: 01 Nov 2004
Posts: 829

PostPosted: Tue Mar 25, 2008 2:16 pm    Post subject: Reply with quote

Sauvegarde ta table de partition avant quand-même avec sfdisk --dump par exemple.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum