What is the partition type ('t' command) in fdisk good for?
up vote
2
down vote
favorite
I can't understand the difference between the filesystem specified using fdisk
's command line interface with t
. And the one used to format it later using say mkefs
.
Why do we need to specify it twice?
- Say I launch an fdisk session using
sudo fdisk /dev/sdb1
- Now, I create a partition using the
n
command. - Then I change the file system type using the
t
command. - After that, I still have to format the partition and specify the file system again.
partitioning filesystem fdisk
add a comment |
up vote
2
down vote
favorite
I can't understand the difference between the filesystem specified using fdisk
's command line interface with t
. And the one used to format it later using say mkefs
.
Why do we need to specify it twice?
- Say I launch an fdisk session using
sudo fdisk /dev/sdb1
- Now, I create a partition using the
n
command. - Then I change the file system type using the
t
command. - After that, I still have to format the partition and specify the file system again.
partitioning filesystem fdisk
1
Possible duplicate of What's the difference of partition type and filesystem type?
– kos
Mar 23 '16 at 8:44
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I can't understand the difference between the filesystem specified using fdisk
's command line interface with t
. And the one used to format it later using say mkefs
.
Why do we need to specify it twice?
- Say I launch an fdisk session using
sudo fdisk /dev/sdb1
- Now, I create a partition using the
n
command. - Then I change the file system type using the
t
command. - After that, I still have to format the partition and specify the file system again.
partitioning filesystem fdisk
I can't understand the difference between the filesystem specified using fdisk
's command line interface with t
. And the one used to format it later using say mkefs
.
Why do we need to specify it twice?
- Say I launch an fdisk session using
sudo fdisk /dev/sdb1
- Now, I create a partition using the
n
command. - Then I change the file system type using the
t
command. - After that, I still have to format the partition and specify the file system again.
partitioning filesystem fdisk
partitioning filesystem fdisk
edited Mar 23 '16 at 8:42
Byte Commander
62.1k26167279
62.1k26167279
asked Mar 23 '16 at 8:34
Abhishek Bhatia
3342935
3342935
1
Possible duplicate of What's the difference of partition type and filesystem type?
– kos
Mar 23 '16 at 8:44
add a comment |
1
Possible duplicate of What's the difference of partition type and filesystem type?
– kos
Mar 23 '16 at 8:44
1
1
Possible duplicate of What's the difference of partition type and filesystem type?
– kos
Mar 23 '16 at 8:44
Possible duplicate of What's the difference of partition type and filesystem type?
– kos
Mar 23 '16 at 8:44
add a comment |
2 Answers
2
active
oldest
votes
up vote
1
down vote
When you want to change the partition type like linux to Fat,
In this case, you have use the t command to change the partition type,like below,
Device Boot Start End Sectors Size Id Type
**/dev/mmcblk0p1 8096 90111 82016 40M 83 Linux**
/dev/mmcblk0p2 90112 7634943 7544832 3.6G 83 Linux
Command (m for help): t
Partition number (1,2, default 2): 1
Hex code (type L to list all codes): c
Changed type of partition 'Linux' to 'W95 FAT32 (LBA)'.
Command (m for help): p
Disk /dev/mmcblk0: 3.7 GiB, 3909091328 bytes, 7634944 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x1d437f06
Device Boot Start End Sectors Size Id Type
**/dev/mmcblk0p1 8096 90111 82016 40M c W95 FAT32 (LBA)**
/dev/mmcblk0p2 90112 7634943 7544832 3.6G 83 Linux
Note: I have changed the first partition to FAT32 from linux using t command to set the respective HEX code for that.
New contributor
add a comment |
up vote
0
down vote
What you specify with the t
command of fdisk
is the partition type. This is not related to the filesystem that is inside that partition.
The partition type is stored in the partition table and is a hint for the BIOS/EFI firmware or the OS of the content of the partition. I guess only Windows used to use it.
But this is not related of the filesystem you later create on that partition.
You could try to create an ext4 partition on a W95 FAT32 labeled partition and linux will be fine with it. This is not recommended but nothing forbids you to do so.
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
When you want to change the partition type like linux to Fat,
In this case, you have use the t command to change the partition type,like below,
Device Boot Start End Sectors Size Id Type
**/dev/mmcblk0p1 8096 90111 82016 40M 83 Linux**
/dev/mmcblk0p2 90112 7634943 7544832 3.6G 83 Linux
Command (m for help): t
Partition number (1,2, default 2): 1
Hex code (type L to list all codes): c
Changed type of partition 'Linux' to 'W95 FAT32 (LBA)'.
Command (m for help): p
Disk /dev/mmcblk0: 3.7 GiB, 3909091328 bytes, 7634944 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x1d437f06
Device Boot Start End Sectors Size Id Type
**/dev/mmcblk0p1 8096 90111 82016 40M c W95 FAT32 (LBA)**
/dev/mmcblk0p2 90112 7634943 7544832 3.6G 83 Linux
Note: I have changed the first partition to FAT32 from linux using t command to set the respective HEX code for that.
New contributor
add a comment |
up vote
1
down vote
When you want to change the partition type like linux to Fat,
In this case, you have use the t command to change the partition type,like below,
Device Boot Start End Sectors Size Id Type
**/dev/mmcblk0p1 8096 90111 82016 40M 83 Linux**
/dev/mmcblk0p2 90112 7634943 7544832 3.6G 83 Linux
Command (m for help): t
Partition number (1,2, default 2): 1
Hex code (type L to list all codes): c
Changed type of partition 'Linux' to 'W95 FAT32 (LBA)'.
Command (m for help): p
Disk /dev/mmcblk0: 3.7 GiB, 3909091328 bytes, 7634944 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x1d437f06
Device Boot Start End Sectors Size Id Type
**/dev/mmcblk0p1 8096 90111 82016 40M c W95 FAT32 (LBA)**
/dev/mmcblk0p2 90112 7634943 7544832 3.6G 83 Linux
Note: I have changed the first partition to FAT32 from linux using t command to set the respective HEX code for that.
New contributor
add a comment |
up vote
1
down vote
up vote
1
down vote
When you want to change the partition type like linux to Fat,
In this case, you have use the t command to change the partition type,like below,
Device Boot Start End Sectors Size Id Type
**/dev/mmcblk0p1 8096 90111 82016 40M 83 Linux**
/dev/mmcblk0p2 90112 7634943 7544832 3.6G 83 Linux
Command (m for help): t
Partition number (1,2, default 2): 1
Hex code (type L to list all codes): c
Changed type of partition 'Linux' to 'W95 FAT32 (LBA)'.
Command (m for help): p
Disk /dev/mmcblk0: 3.7 GiB, 3909091328 bytes, 7634944 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x1d437f06
Device Boot Start End Sectors Size Id Type
**/dev/mmcblk0p1 8096 90111 82016 40M c W95 FAT32 (LBA)**
/dev/mmcblk0p2 90112 7634943 7544832 3.6G 83 Linux
Note: I have changed the first partition to FAT32 from linux using t command to set the respective HEX code for that.
New contributor
When you want to change the partition type like linux to Fat,
In this case, you have use the t command to change the partition type,like below,
Device Boot Start End Sectors Size Id Type
**/dev/mmcblk0p1 8096 90111 82016 40M 83 Linux**
/dev/mmcblk0p2 90112 7634943 7544832 3.6G 83 Linux
Command (m for help): t
Partition number (1,2, default 2): 1
Hex code (type L to list all codes): c
Changed type of partition 'Linux' to 'W95 FAT32 (LBA)'.
Command (m for help): p
Disk /dev/mmcblk0: 3.7 GiB, 3909091328 bytes, 7634944 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x1d437f06
Device Boot Start End Sectors Size Id Type
**/dev/mmcblk0p1 8096 90111 82016 40M c W95 FAT32 (LBA)**
/dev/mmcblk0p2 90112 7634943 7544832 3.6G 83 Linux
Note: I have changed the first partition to FAT32 from linux using t command to set the respective HEX code for that.
New contributor
edited Nov 20 at 7:07
muru
134k19282482
134k19282482
New contributor
answered Nov 20 at 7:04
Mathan Murugan
111
111
New contributor
New contributor
add a comment |
add a comment |
up vote
0
down vote
What you specify with the t
command of fdisk
is the partition type. This is not related to the filesystem that is inside that partition.
The partition type is stored in the partition table and is a hint for the BIOS/EFI firmware or the OS of the content of the partition. I guess only Windows used to use it.
But this is not related of the filesystem you later create on that partition.
You could try to create an ext4 partition on a W95 FAT32 labeled partition and linux will be fine with it. This is not recommended but nothing forbids you to do so.
add a comment |
up vote
0
down vote
What you specify with the t
command of fdisk
is the partition type. This is not related to the filesystem that is inside that partition.
The partition type is stored in the partition table and is a hint for the BIOS/EFI firmware or the OS of the content of the partition. I guess only Windows used to use it.
But this is not related of the filesystem you later create on that partition.
You could try to create an ext4 partition on a W95 FAT32 labeled partition and linux will be fine with it. This is not recommended but nothing forbids you to do so.
add a comment |
up vote
0
down vote
up vote
0
down vote
What you specify with the t
command of fdisk
is the partition type. This is not related to the filesystem that is inside that partition.
The partition type is stored in the partition table and is a hint for the BIOS/EFI firmware or the OS of the content of the partition. I guess only Windows used to use it.
But this is not related of the filesystem you later create on that partition.
You could try to create an ext4 partition on a W95 FAT32 labeled partition and linux will be fine with it. This is not recommended but nothing forbids you to do so.
What you specify with the t
command of fdisk
is the partition type. This is not related to the filesystem that is inside that partition.
The partition type is stored in the partition table and is a hint for the BIOS/EFI firmware or the OS of the content of the partition. I guess only Windows used to use it.
But this is not related of the filesystem you later create on that partition.
You could try to create an ext4 partition on a W95 FAT32 labeled partition and linux will be fine with it. This is not recommended but nothing forbids you to do so.
answered Nov 20 at 8:34
solsTiCe
5,17421845
5,17421845
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f749246%2fwhat-is-the-partition-type-t-command-in-fdisk-good-for%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Possible duplicate of What's the difference of partition type and filesystem type?
– kos
Mar 23 '16 at 8:44