[SOLVED] format drives in the command line

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] format drives in the command line

Postby arminius » Jul 29th, '12, 13:26

I've given up on the disk formatter in the Mageia, it has not progress bar so when it freezes up it takes a while to realise.
so would like to be more proficient in formatting from the command line, I assume there will be a percentage meter there.
but all my googling has only revealed how to do it from windows command line.
So if someone could let me know I would be grateful.
Last edited by arminius on Aug 2nd, '12, 04:28, edited 1 time in total.
arminius
 
Posts: 82
Joined: Jul 2nd, '12, 07:16

Re: format drives in the command line

Postby richardwest » Jul 29th, '12, 13:42

You could try "man mke2fs".

DESCRIPTION
mke2fs is used to create an ext2, ext3, or ext4 filesystem, usually in
a disk partition. device is the special file corresponding to the
device (e.g /dev/hdXX). blocks-count is the number of blocks on the
device. If omitted, mke2fs automagically figures the file system size.
If called as mkfs.ext3 a journal is created as if the -j option was
specified.
Richard.
richardwest
 
Posts: 50
Joined: May 26th, '11, 12:28
Location: Suffolk, England

Re: format drives in the command line

Postby JoesCat » Aug 1st, '12, 17:51

Go to command line.
Become a root super user.

su

type
mkfs and press TAB to see the various incarnations.

man mkfs

should also help.

e2label can be used to add labels to partitions for ext2,3,4
...forgot what command it would be for labelling NTFS or VFAT but it exists too. Perhaps someone else who remembers can chirp in... :D
User avatar
JoesCat
 
Posts: 177
Joined: Sep 15th, '11, 04:27
Location: Richmond, BC, Canada

Re: format drives in the command line

Postby doktor5000 » Aug 1st, '12, 21:39

mkfs.* doesn't support progress bars IIRC, which is what the OP explicitely wanted. Or do some of them support it?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18058
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: format drives in the command line

Postby widget » Aug 2nd, '12, 03:24

mkfs works fine. In terminal I prefer cfdisk.

Neither of them use a progress bar.

You could do it using Gparted. That has a progress bar. Not CLI though.
Self Box 1, Asus M5 A99FX Pro R2.0 MB, AMD FX 6-core FX 6300 3.5GHz, 8 gigs ram, Radeon HD 6450, antique Audigy audeo card. 4 internal drives (3 500gig and one 320 gig). Currently only one 500gig external.
widget
 
Posts: 47
Joined: Jun 15th, '12, 06:19

Re: format drives in the command line

Postby arminius » Aug 2nd, '12, 04:26

I'm liking midnight commander, doesn't seem to be much it can't copy and delete.
And you'll know in minutes if it ever freezes, but it's yet to do that yet.
arminius
 
Posts: 82
Joined: Jul 2nd, '12, 07:16

Re: format drives in the command line

Postby doktor5000 » Aug 2nd, '12, 22:00

arminius wrote:I'm liking midnight commander, doesn't seem to be much it can't copy and delete.

Normally you can copy&delete everything, just a question of the right permissions and, more important that the underlying filesystem/hardware is good.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18058
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest