LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 09-15-2012, 04:27 PM   #1
mennohellinga
Member
 
Registered: Jun 2012
Location: Netherlands
Distribution: Archlinux
Posts: 72

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


In the cfdisk man page I found the following:
Quote:
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 hackipedia.org/Software/GNU/pdf,%20fdisk/cfdisk.pdf I found this:
Quote:
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
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
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
mennohellinga
Member
 
Registered: Jun 2012
Location: Netherlands
Distribution: Archlinux
Posts: 72

Original Poster
Rep: Reputation: 38
That must be the System-ID byte (http://wiki.osdev.org/Partition_Tabl...System_ID_byte, http://www.win.tue.nl/~aeb/partition...n_types-1.html)!
Thank you, acid_kewpie.

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


Reply

Tags
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


All times are GMT -5. The time now is 09:00 PM.

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