[solved] Partition and FileSystem in 'parted', confusing

Questions about applications and software
Forum rules
Before you post please read this

[solved] Partition and FileSystem in 'parted', confusing

Postby Jin Choi on Sun Mar 24, 2013 12:00 pm

Hello, mint users :)
I just tried the tool, parted, and I got very confused. It seems that I need to created partition first and then, a file system for the partition.

As far as I know, a partition is either primary, extended, or logical.
And file systems include ext2, ext3, fat16, fat32, ntfs, etc.
I think my understanding explained just above goes very well if you recall when you installed your distro and specified what partitions and their file systems would be, for example, mounting point '/' (aka partition) and ext3 file system for it.

But in the tool, parted, this is the confusing part for me.
Here is the actual commands stream.

Code: Select all
(parted) mkpart                                                           
Partition type?  primary/extended? primary                               
File system type?  [ext2]?                                               
Start? 0
End? 5000M


So, what's the File system type for? I chose ext2. But it didn't make any file system for the partition at all so that I couldn't mount it at all. Additional file system making was so much necessary. Weirder yet? Here's another commands from 'parted'.

Code: Select all
(parted) mkfs                                                             
WARNING: you are attempting to use parted to operate on (mkfs) a file system.
parted's file system manipulation code is not as robust as what you'll find in
dedicated, file-system-specific packages like e2fsprogs.  We recommend
you use parted only to manipulate partition tables, whenever possible.
Support for performing most operations on most types of file systems
will be removed in an upcoming release.
Warning: The existing file system will be destroyed and all data on the   
partition will be lost. Do you want to continue?
Yes/No? Yes                                                               
Partition number? 2                                                       
File system type?  [ext2]? fat32

No matter what I choose for file system type during partition step, I can decide whatever file system for a partition here and period. ext2 from the first step had nothing on the actual file system. Only the fat32 counted.

Let me clarify my question for the last time.
So, why the file system type question when we create a partition if it won't matter anyways? Is it for a simple note for future or am I missing something?

Thank you :)
Last edited by Jin Choi on Sun Mar 24, 2013 9:22 pm, edited 1 time in total.
Jin Choi
Level 1
Level 1
 
Posts: 18
Joined: Fri Mar 22, 2013 2:52 am

Linux Mint is funded by ads and donations.
 

Re: Concept of Partition and FileSystem in 'parted', confusi

Postby Fornhamfred on Sun Mar 24, 2013 12:28 pm

I can understand your confusion. I have not tried parted as Gparted is installed by default and is a very good graphical interface and easy to understand.
Fornhamfred
Level 6
Level 6
 
Posts: 1112
Joined: Wed Oct 31, 2007 3:38 pm
Location: Suffolk UK

Re: Concept of Partition and FileSystem in 'parted', confusi

Postby Jin Choi on Sun Mar 24, 2013 12:35 pm

Fornhamfred wrote:I can understand your confusion. I have not tried parted as Gparted is installed by default and is a very good graphical interface and easy to understand.

Thank you Fornhamfred :) I think I'll try Gparted later.
But I just want to know if I'm misunderstanding it or if parted is wrong, or neither. I don't dare to think parted is wrong, so just a little bit of a explanation of why they are right will be great for me+_+
Jin Choi
Level 1
Level 1
 
Posts: 18
Joined: Fri Mar 22, 2013 2:52 am

Re: Concept of Partition and FileSystem in 'parted', confusi

Postby Fornhamfred on Sun Mar 24, 2013 1:24 pm

I think the answer to your question is explained in your original output.

WARNING: you are attempting to use parted to operate on (mkfs) a file system.
parted's file system manipulation code is not as robust as what you'll find in
dedicated, file-system-specific packages like e2fsprogs. We recommend
you use parted only to manipulate partition tables, whenever possible.
Fornhamfred
Level 6
Level 6
 
Posts: 1112
Joined: Wed Oct 31, 2007 3:38 pm
Location: Suffolk UK


Return to Software & Applications

Who is online

Users browsing this forum: No registered users and 21 guests