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
Partition type? primary/extended? primary
File system type? [ext2]?
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
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?
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?