Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Effacer une partition d'une seule ligne (de commande)
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
Angelion
Apprentice
Apprentice


Joined: 13 May 2003
Posts: 250

PostPosted: Sun Jun 06, 2004 10:04 pm    Post subject: Effacer une partition d'une seule ligne (de commande) Reply with quote

tout est dans le titre ...

connaissez vous une commande pour changer le type de fs dans la table des partitions, pour directement rendre une partition espace libre ... en une seule ligne de commande
Back to top
View user's profile Send private message
Pachacamac
Veteran
Veteran


Joined: 22 Nov 2003
Posts: 1264
Location: Paris - France

PostPosted: Mon Jun 07, 2004 3:19 am    Post subject: Reply with quote

Si j'était toi je regarderai du coté de sfdisk qui me semble etre le seul a pouvoir faire ce que tu veux. Je ne pense pas que fdisk puisse convenir pour cette fonction.

Par contre je ne l'ai jamais utilisé, il me semble qu'il lui faut un fichier à partir duquel on lui donne des paramètres. Mais comme google est ton ami tu trouvera surement tout ça très rapidement.
Back to top
View user's profile Send private message
b_Q
Apprentice
Apprentice


Joined: 18 Jun 2002
Posts: 163

PostPosted: Mon Jun 07, 2004 5:44 am    Post subject: Reply with quote

1 ligne
# /sbin/mkfs
Usage: mkfs [-V] [-t fstype] [fs-options] device [size]
# man mkfs
(dd ... pour vraiment effacer mais >1 li)
_________________
Preudhomme's Law of Window Cleaning:
It's on the other side.
Back to top
View user's profile Send private message
PrEdAt0r
Apprentice
Apprentice


Joined: 14 Nov 2003
Posts: 244

PostPosted: Mon Jun 07, 2004 7:23 am    Post subject: Reply with quote

oui sauf que mkfs est risqué pour tes données (que tu veux garder je suppose) car par ex moi j'etait en ext3 et j'ai etait obliger de refaire toute l'install gentoo pour pouvoir mettre en XFS , par exemple mettons que tu veuille convert en xfs tu est obliger de faire
Code:
mkfs.xfs -f /dev/tapart
-f qui formate ta part et tu est obliger car il te le demande ! sinon si tu veu convert en reiserfs il y a un script qui vien juste de sortir pour cela il s'appelle "convertfs" mais attention c'est risqué :lol: !
_________________
Linux VS WINDOWS = 1 a 0 pour Linux
Gentoo Linux 2004.1 (dev-gentoo-sources 2.6.5)
Back to top
View user's profile Send private message
Angelion
Apprentice
Apprentice


Joined: 13 May 2003
Posts: 250

PostPosted: Mon Jun 07, 2004 7:27 am    Post subject: Reply with quote

J'ai dit que je voulais changer une partition avec des données en espace libre ,en une ligne de commande, je ne veux pas garder mes données.

mkfs n'a pas l'air de pouvoir m'aider

sfdisk par contre ...


Last edited by Angelion on Mon Jun 07, 2004 7:30 am; edited 1 time in total
Back to top
View user's profile Send private message
PrEdAt0r
Apprentice
Apprentice


Joined: 14 Nov 2003
Posts: 244

PostPosted: Mon Jun 07, 2004 7:29 am    Post subject: Reply with quote

Angelion wrote:
mkfs n'a pas l'air d'effacer une partition en ligne de commande.

ca non ! juste la formater :wink:
_________________
Linux VS WINDOWS = 1 a 0 pour Linux
Gentoo Linux 2004.1 (dev-gentoo-sources 2.6.5)
Back to top
View user's profile Send private message
Angelion
Apprentice
Apprentice


Joined: 13 May 2003
Posts: 250

PostPosted: Mon Jun 07, 2004 7:31 am    Post subject: Reply with quote

j'ai pas dit formatter !
Back to top
View user's profile Send private message
Beber
Guru
Guru


Joined: 10 Apr 2004
Posts: 300
Location: Kemper, Lutèce

PostPosted: Mon Jun 07, 2004 7:41 am    Post subject: Reply with quote

tu ne veux pas changé le type de systèmes de fichiers ????

rm -rf /point/de/montage

:oops:
Back to top
View user's profile Send private message
Angelion
Apprentice
Apprentice


Joined: 13 May 2003
Posts: 250

PostPosted: Mon Jun 07, 2004 7:44 am    Post subject: Reply with quote

...
Back to top
View user's profile Send private message
PrEdAt0r
Apprentice
Apprentice


Joined: 14 Nov 2003
Posts: 244

PostPosted: Mon Jun 07, 2004 7:48 am    Post subject: Reply with quote

Angelion wrote:
j'ai pas dit formatter !

lol je sais bien , tu veut convertir et je t'é donné mon avis au dessus !
demande au autres !
_________________
Linux VS WINDOWS = 1 a 0 pour Linux
Gentoo Linux 2004.1 (dev-gentoo-sources 2.6.5)
Back to top
View user's profile Send private message
Beber
Guru
Guru


Joined: 10 Apr 2004
Posts: 300
Location: Kemper, Lutèce

PostPosted: Mon Jun 07, 2004 9:11 am    Post subject: Reply with quote

Tu me semble un peu agressif Angeli0n....
Back to top
View user's profile Send private message
Angelion
Apprentice
Apprentice


Joined: 13 May 2003
Posts: 250

PostPosted: Mon Jun 07, 2004 9:36 am    Post subject: Reply with quote

Aggressif ? pourquoi ?

Apperement il y en a qui veulent repondre a tous les threads, ca doit etre un concours

J'aimerai juste que seul ceux qui ont une vraie reponse repondent
Back to top
View user's profile Send private message
kernelsensei
Bodhisattva
Bodhisattva


Joined: 22 Feb 2004
Posts: 5619
Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)

PostPosted: Mon Jun 07, 2004 11:25 am    Post subject: Reply with quote

Yen a qui sont bouches je crois, Angelion souhaite VIRER une partition et pas la formatter !

Genre, si j'ai hda1 hda3 hda4, ben il veut virer hda3 pour en faire du Free Space !

@Angelion: Je cherche, je cherche ...

[EDIT] Dans le man de fdisk, ils font reference a Parted, je ne connais pas trop mais peut etre que ca sert :

http://www.gnu.org/software/parted/parted.html

[/EDIT]
_________________
$ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join'
Back to top
View user's profile Send private message
Angelion
Apprentice
Apprentice


Joined: 13 May 2003
Posts: 250

PostPosted: Mon Jun 07, 2004 11:40 am    Post subject: Reply with quote

Ahhhhhhh!!

Merci :D
Back to top
View user's profile Send private message
Pachacamac
Veteran
Veteran


Joined: 22 Nov 2003
Posts: 1264
Location: Paris - France

PostPosted: Mon Jun 07, 2004 12:51 pm    Post subject: Reply with quote

Effectivement il y a des posts inutiles ici.
Angelion as tu essayé
Code:
sfdisk --change-id /dev/hda 5 82

Ce qui permet de changer la partition hda5 en type 82 (swap)
Back to top
View user's profile Send private message
Angelion
Apprentice
Apprentice


Joined: 13 May 2003
Posts: 250

PostPosted: Mon Jun 07, 2004 2:58 pm    Post subject: Reply with quote

Non mais c bon là, avec parted
Back to top
View user's profile Send private message
b_Q
Apprentice
Apprentice


Joined: 18 Jun 2002
Posts: 163

PostPosted: Wed Jun 09, 2004 8:19 am    Post subject: Reply with quote

Finalement c'est quoi ta singulière parted ligne de commande
"pour directement rendre une partition espace libre ... en une seule ligne de commande" ?
_________________
Preudhomme's Law of Window Cleaning:
It's on the other side.
Back to top
View user's profile Send private message
Angelion
Apprentice
Apprentice


Joined: 13 May 2003
Posts: 250

PostPosted: Wed Jun 09, 2004 8:48 am    Post subject: Reply with quote

Code:
man parted
...
SYNOPSIS
       parted [options] [device [command [options...]...]]
...
COMMANDS
...
rm partition
                     deletes partition
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