Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-15-2012, 04:27 PM   #1
Registered: Jun 2012
Location: AccountKiller
Distribution: AccountKiller
Posts: 72

Rep: Reputation: 38
What does the 't' command in cfdisk do?

In the cfdisk man page I found the following:
Change the filesystem type. By default, new partitions are cre-
ated as Linux partitions, but since cfdisk can create partitions
for other operating systems, change partition type allows you to
enter the hex value of the filesystem you desire. A list of the
know filesystem types is displayed. You can type in the
filesystem type at the prompt or accept the default filesystem
type [Linux].
I know that cfdisk does not create any filesystems (you need mkfs for that), I googled around a bit and at,%20fdisk/cfdisk.pdf I found this:
Changes the system type on the partition. This does not convert the filesystem,
it just changes the information stored in the partition. This is useful for cases
where the system type on the partition doesn’t match the filesystem type, for
example you have an fat32 partition on an DOS type partition table, having an
ext2 filesystem on it. Changing the system type is not really meaningful on all
partition table types. The default is to automatically determine the system type
from the current filesystem with ‘a’. You can also select a custom filesystem
by pressing ‘c’, but this is not recommended. Direct choosing a specific system
type is not supported.
So when I change the type, some data is changed, but which data and what does this do?
Old 09-15-2012, 04:51 PM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
it's just the partition type in the partition table. This is *NOT* the filesystem whatsoever. it's only a flag in the partition table, and that flag is usually ignored by most systems, which will generally read the first few bytes of each filesystem to definitely know what it is rather than relying on potentially inconsistent data.
1 members found this post helpful.
Old 09-15-2012, 05:54 PM   #3
Registered: Jun 2012
Location: AccountKiller
Distribution: AccountKiller
Posts: 72

Original Poster
Rep: Reputation: 38
That must be the System-ID byte (,!
Thank you, acid_kewpie.

Last edited by mennohellinga; 09-15-2012 at 05:57 PM.


cfdisk, filesystem, filesystems

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
'Activation' of USB disk using cfdisk command. telemeister Slackware 8 01-03-2008 09:15 PM
cfdisk Infernolinux Linux - Newbie 1 12-20-2005 10:05 PM
fdisk/parted/cfdisk: command not found indole Linux - Software 2 02-17-2005 12:08 PM
how can I have cfdisk command in Redhat 8.0? broodman Linux - Newbie 12 07-19-2003 12:14 PM
cfdisk command not found chappy011 Linux - Newbie 9 03-20-2002 04:12 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:47 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration