File system of a boot disk
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I am using a USB Stick as a boot disk.
Is it possible to use any file system on a boot disk and mark it as bootable, or it has to be FAT only?
Can it be a ext4 partition instead of FAT?
I am using the following commands to flash my usb stick with an OS image, but Is there any reason why FAT was chosen here:
sudo mkfs.fat -I /dev/sdX
What is the technical signifigance of -I here.
Then
isohybrid isofile.iso --entry 4 --type 0x1c
dd if=isofile.iso of=/dev/sdX bs=1M
Can I also use --entry 4 and --type 0x83? What is the significance of this line? I tested with 0x83, but it failed to boot. With 0x1c, it works fine.
bootable
 |Â
show 3 more comments
up vote
1
down vote
favorite
I am using a USB Stick as a boot disk.
Is it possible to use any file system on a boot disk and mark it as bootable, or it has to be FAT only?
Can it be a ext4 partition instead of FAT?
I am using the following commands to flash my usb stick with an OS image, but Is there any reason why FAT was chosen here:
sudo mkfs.fat -I /dev/sdX
What is the technical signifigance of -I here.
Then
isohybrid isofile.iso --entry 4 --type 0x1c
dd if=isofile.iso of=/dev/sdX bs=1M
Can I also use --entry 4 and --type 0x83? What is the significance of this line? I tested with 0x83, but it failed to boot. With 0x1c, it works fine.
bootable
Isisofile
the same aspathtoiso.iso
? If so, please make them the same so it's clear.
â roaima
Apr 3 '17 at 17:09
You're asking aboutmkfs.fat -I
. Have you read the man page yet? (man mkfs.fat
)
â roaima
Apr 3 '17 at 17:11
1
A partition table isn't essential, but it is usually recommended. You would usually provide one on a disk or USB stick, but you don't need one. You wouldn't use one on a DVD/CD (because the ISO format doesn't expect one), and they weren't available at all on floppy disks.
â roaima
Apr 3 '17 at 23:09
1
Yes and yes. It's very unusual to have a disk without a partition table but they can exist, and will work fine using/dev/sdX
instead of/dev/sdXN
.
â roaima
Apr 3 '17 at 23:28
1
You cannot boot a disk that has no partition table, agreed. That's one of the reasons such disk layouts are unusual.
â roaima
Apr 4 '17 at 6:51
 |Â
show 3 more comments
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I am using a USB Stick as a boot disk.
Is it possible to use any file system on a boot disk and mark it as bootable, or it has to be FAT only?
Can it be a ext4 partition instead of FAT?
I am using the following commands to flash my usb stick with an OS image, but Is there any reason why FAT was chosen here:
sudo mkfs.fat -I /dev/sdX
What is the technical signifigance of -I here.
Then
isohybrid isofile.iso --entry 4 --type 0x1c
dd if=isofile.iso of=/dev/sdX bs=1M
Can I also use --entry 4 and --type 0x83? What is the significance of this line? I tested with 0x83, but it failed to boot. With 0x1c, it works fine.
bootable
I am using a USB Stick as a boot disk.
Is it possible to use any file system on a boot disk and mark it as bootable, or it has to be FAT only?
Can it be a ext4 partition instead of FAT?
I am using the following commands to flash my usb stick with an OS image, but Is there any reason why FAT was chosen here:
sudo mkfs.fat -I /dev/sdX
What is the technical signifigance of -I here.
Then
isohybrid isofile.iso --entry 4 --type 0x1c
dd if=isofile.iso of=/dev/sdX bs=1M
Can I also use --entry 4 and --type 0x83? What is the significance of this line? I tested with 0x83, but it failed to boot. With 0x1c, it works fine.
bootable
bootable
edited Aug 31 at 13:57
asked Apr 3 '17 at 17:00
infoclogged
306112
306112
Isisofile
the same aspathtoiso.iso
? If so, please make them the same so it's clear.
â roaima
Apr 3 '17 at 17:09
You're asking aboutmkfs.fat -I
. Have you read the man page yet? (man mkfs.fat
)
â roaima
Apr 3 '17 at 17:11
1
A partition table isn't essential, but it is usually recommended. You would usually provide one on a disk or USB stick, but you don't need one. You wouldn't use one on a DVD/CD (because the ISO format doesn't expect one), and they weren't available at all on floppy disks.
â roaima
Apr 3 '17 at 23:09
1
Yes and yes. It's very unusual to have a disk without a partition table but they can exist, and will work fine using/dev/sdX
instead of/dev/sdXN
.
â roaima
Apr 3 '17 at 23:28
1
You cannot boot a disk that has no partition table, agreed. That's one of the reasons such disk layouts are unusual.
â roaima
Apr 4 '17 at 6:51
 |Â
show 3 more comments
Isisofile
the same aspathtoiso.iso
? If so, please make them the same so it's clear.
â roaima
Apr 3 '17 at 17:09
You're asking aboutmkfs.fat -I
. Have you read the man page yet? (man mkfs.fat
)
â roaima
Apr 3 '17 at 17:11
1
A partition table isn't essential, but it is usually recommended. You would usually provide one on a disk or USB stick, but you don't need one. You wouldn't use one on a DVD/CD (because the ISO format doesn't expect one), and they weren't available at all on floppy disks.
â roaima
Apr 3 '17 at 23:09
1
Yes and yes. It's very unusual to have a disk without a partition table but they can exist, and will work fine using/dev/sdX
instead of/dev/sdXN
.
â roaima
Apr 3 '17 at 23:28
1
You cannot boot a disk that has no partition table, agreed. That's one of the reasons such disk layouts are unusual.
â roaima
Apr 4 '17 at 6:51
Is
isofile
the same as pathtoiso.iso
? If so, please make them the same so it's clear.â roaima
Apr 3 '17 at 17:09
Is
isofile
the same as pathtoiso.iso
? If so, please make them the same so it's clear.â roaima
Apr 3 '17 at 17:09
You're asking about
mkfs.fat -I
. Have you read the man page yet? (man mkfs.fat
)â roaima
Apr 3 '17 at 17:11
You're asking about
mkfs.fat -I
. Have you read the man page yet? (man mkfs.fat
)â roaima
Apr 3 '17 at 17:11
1
1
A partition table isn't essential, but it is usually recommended. You would usually provide one on a disk or USB stick, but you don't need one. You wouldn't use one on a DVD/CD (because the ISO format doesn't expect one), and they weren't available at all on floppy disks.
â roaima
Apr 3 '17 at 23:09
A partition table isn't essential, but it is usually recommended. You would usually provide one on a disk or USB stick, but you don't need one. You wouldn't use one on a DVD/CD (because the ISO format doesn't expect one), and they weren't available at all on floppy disks.
â roaima
Apr 3 '17 at 23:09
1
1
Yes and yes. It's very unusual to have a disk without a partition table but they can exist, and will work fine using
/dev/sdX
instead of /dev/sdXN
.â roaima
Apr 3 '17 at 23:28
Yes and yes. It's very unusual to have a disk without a partition table but they can exist, and will work fine using
/dev/sdX
instead of /dev/sdXN
.â roaima
Apr 3 '17 at 23:28
1
1
You cannot boot a disk that has no partition table, agreed. That's one of the reasons such disk layouts are unusual.
â roaima
Apr 4 '17 at 6:51
You cannot boot a disk that has no partition table, agreed. That's one of the reasons such disk layouts are unusual.
â roaima
Apr 4 '17 at 6:51
 |Â
show 3 more comments
1 Answer
1
active
oldest
votes
up vote
4
down vote
accepted
The mkfs.fat
command is redundant, since the dd
command will overwrite the FAT file system with the pathtoiso.iso
file (which contains an ISO9660 file system in itself). The point of the isohybrid command is to "enhance" the .iso file with a MBR partition table to make the result bootable from a USB Stick. See http://www.syslinux.org/wiki/index.php?title=Isohybrid
and the parameters --entry 4 --type 0x1c alters the MBR too? Can one also use any other type here and not 0x1c? Is there any special signifiance to the 0x1c file system type here? The commands has been copied from one of the questions on this site ( that was also the accepted answer )
â infoclogged
Apr 3 '17 at 23:29
1
The--entry
option selects the primary partition number to be used and sets the active flag on that partition. This makes the code in the boot sector use that partition for booting. I'm surprised the type code made a difference in your tests. Apparently some code does actually check this value.
â Johan Myréen
Apr 4 '17 at 4:12
i guess active flag is the same as the boot flag. But, its really confusing to set an active flag for a partition that does not exist. In the above case, the entry number is 4 which means, the fourth parition is bootable. However, the ISO file is dd ied to the usb disk and hence all the paritions from the stick in my opinion are deleted. So, what is the signifigance of the entry option, when anyways the disk would not hold any partition? Could I have also used entry "any number" or may be completely omit the entry option from the command?
â infoclogged
Apr 4 '17 at 9:45
1
The ISO file contains empty space at the beginning, which can be used to write a partition table. The partition table is carefully crafted to contain an entry which points to the beginning of the ISO9660 file system. So it does hold a partition, which in turn is filled with a file system.
â Johan Myréen
Apr 4 '17 at 10:22
In fact, the partition probably points to the beginning of the disk, i.e. to the partition table, but I can't check that now.
â Johan Myréen
Apr 4 '17 at 10:43
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
accepted
The mkfs.fat
command is redundant, since the dd
command will overwrite the FAT file system with the pathtoiso.iso
file (which contains an ISO9660 file system in itself). The point of the isohybrid command is to "enhance" the .iso file with a MBR partition table to make the result bootable from a USB Stick. See http://www.syslinux.org/wiki/index.php?title=Isohybrid
and the parameters --entry 4 --type 0x1c alters the MBR too? Can one also use any other type here and not 0x1c? Is there any special signifiance to the 0x1c file system type here? The commands has been copied from one of the questions on this site ( that was also the accepted answer )
â infoclogged
Apr 3 '17 at 23:29
1
The--entry
option selects the primary partition number to be used and sets the active flag on that partition. This makes the code in the boot sector use that partition for booting. I'm surprised the type code made a difference in your tests. Apparently some code does actually check this value.
â Johan Myréen
Apr 4 '17 at 4:12
i guess active flag is the same as the boot flag. But, its really confusing to set an active flag for a partition that does not exist. In the above case, the entry number is 4 which means, the fourth parition is bootable. However, the ISO file is dd ied to the usb disk and hence all the paritions from the stick in my opinion are deleted. So, what is the signifigance of the entry option, when anyways the disk would not hold any partition? Could I have also used entry "any number" or may be completely omit the entry option from the command?
â infoclogged
Apr 4 '17 at 9:45
1
The ISO file contains empty space at the beginning, which can be used to write a partition table. The partition table is carefully crafted to contain an entry which points to the beginning of the ISO9660 file system. So it does hold a partition, which in turn is filled with a file system.
â Johan Myréen
Apr 4 '17 at 10:22
In fact, the partition probably points to the beginning of the disk, i.e. to the partition table, but I can't check that now.
â Johan Myréen
Apr 4 '17 at 10:43
add a comment |Â
up vote
4
down vote
accepted
The mkfs.fat
command is redundant, since the dd
command will overwrite the FAT file system with the pathtoiso.iso
file (which contains an ISO9660 file system in itself). The point of the isohybrid command is to "enhance" the .iso file with a MBR partition table to make the result bootable from a USB Stick. See http://www.syslinux.org/wiki/index.php?title=Isohybrid
and the parameters --entry 4 --type 0x1c alters the MBR too? Can one also use any other type here and not 0x1c? Is there any special signifiance to the 0x1c file system type here? The commands has been copied from one of the questions on this site ( that was also the accepted answer )
â infoclogged
Apr 3 '17 at 23:29
1
The--entry
option selects the primary partition number to be used and sets the active flag on that partition. This makes the code in the boot sector use that partition for booting. I'm surprised the type code made a difference in your tests. Apparently some code does actually check this value.
â Johan Myréen
Apr 4 '17 at 4:12
i guess active flag is the same as the boot flag. But, its really confusing to set an active flag for a partition that does not exist. In the above case, the entry number is 4 which means, the fourth parition is bootable. However, the ISO file is dd ied to the usb disk and hence all the paritions from the stick in my opinion are deleted. So, what is the signifigance of the entry option, when anyways the disk would not hold any partition? Could I have also used entry "any number" or may be completely omit the entry option from the command?
â infoclogged
Apr 4 '17 at 9:45
1
The ISO file contains empty space at the beginning, which can be used to write a partition table. The partition table is carefully crafted to contain an entry which points to the beginning of the ISO9660 file system. So it does hold a partition, which in turn is filled with a file system.
â Johan Myréen
Apr 4 '17 at 10:22
In fact, the partition probably points to the beginning of the disk, i.e. to the partition table, but I can't check that now.
â Johan Myréen
Apr 4 '17 at 10:43
add a comment |Â
up vote
4
down vote
accepted
up vote
4
down vote
accepted
The mkfs.fat
command is redundant, since the dd
command will overwrite the FAT file system with the pathtoiso.iso
file (which contains an ISO9660 file system in itself). The point of the isohybrid command is to "enhance" the .iso file with a MBR partition table to make the result bootable from a USB Stick. See http://www.syslinux.org/wiki/index.php?title=Isohybrid
The mkfs.fat
command is redundant, since the dd
command will overwrite the FAT file system with the pathtoiso.iso
file (which contains an ISO9660 file system in itself). The point of the isohybrid command is to "enhance" the .iso file with a MBR partition table to make the result bootable from a USB Stick. See http://www.syslinux.org/wiki/index.php?title=Isohybrid
answered Apr 3 '17 at 17:33
Johan Myréen
6,94711423
6,94711423
and the parameters --entry 4 --type 0x1c alters the MBR too? Can one also use any other type here and not 0x1c? Is there any special signifiance to the 0x1c file system type here? The commands has been copied from one of the questions on this site ( that was also the accepted answer )
â infoclogged
Apr 3 '17 at 23:29
1
The--entry
option selects the primary partition number to be used and sets the active flag on that partition. This makes the code in the boot sector use that partition for booting. I'm surprised the type code made a difference in your tests. Apparently some code does actually check this value.
â Johan Myréen
Apr 4 '17 at 4:12
i guess active flag is the same as the boot flag. But, its really confusing to set an active flag for a partition that does not exist. In the above case, the entry number is 4 which means, the fourth parition is bootable. However, the ISO file is dd ied to the usb disk and hence all the paritions from the stick in my opinion are deleted. So, what is the signifigance of the entry option, when anyways the disk would not hold any partition? Could I have also used entry "any number" or may be completely omit the entry option from the command?
â infoclogged
Apr 4 '17 at 9:45
1
The ISO file contains empty space at the beginning, which can be used to write a partition table. The partition table is carefully crafted to contain an entry which points to the beginning of the ISO9660 file system. So it does hold a partition, which in turn is filled with a file system.
â Johan Myréen
Apr 4 '17 at 10:22
In fact, the partition probably points to the beginning of the disk, i.e. to the partition table, but I can't check that now.
â Johan Myréen
Apr 4 '17 at 10:43
add a comment |Â
and the parameters --entry 4 --type 0x1c alters the MBR too? Can one also use any other type here and not 0x1c? Is there any special signifiance to the 0x1c file system type here? The commands has been copied from one of the questions on this site ( that was also the accepted answer )
â infoclogged
Apr 3 '17 at 23:29
1
The--entry
option selects the primary partition number to be used and sets the active flag on that partition. This makes the code in the boot sector use that partition for booting. I'm surprised the type code made a difference in your tests. Apparently some code does actually check this value.
â Johan Myréen
Apr 4 '17 at 4:12
i guess active flag is the same as the boot flag. But, its really confusing to set an active flag for a partition that does not exist. In the above case, the entry number is 4 which means, the fourth parition is bootable. However, the ISO file is dd ied to the usb disk and hence all the paritions from the stick in my opinion are deleted. So, what is the signifigance of the entry option, when anyways the disk would not hold any partition? Could I have also used entry "any number" or may be completely omit the entry option from the command?
â infoclogged
Apr 4 '17 at 9:45
1
The ISO file contains empty space at the beginning, which can be used to write a partition table. The partition table is carefully crafted to contain an entry which points to the beginning of the ISO9660 file system. So it does hold a partition, which in turn is filled with a file system.
â Johan Myréen
Apr 4 '17 at 10:22
In fact, the partition probably points to the beginning of the disk, i.e. to the partition table, but I can't check that now.
â Johan Myréen
Apr 4 '17 at 10:43
and the parameters --entry 4 --type 0x1c alters the MBR too? Can one also use any other type here and not 0x1c? Is there any special signifiance to the 0x1c file system type here? The commands has been copied from one of the questions on this site ( that was also the accepted answer )
â infoclogged
Apr 3 '17 at 23:29
and the parameters --entry 4 --type 0x1c alters the MBR too? Can one also use any other type here and not 0x1c? Is there any special signifiance to the 0x1c file system type here? The commands has been copied from one of the questions on this site ( that was also the accepted answer )
â infoclogged
Apr 3 '17 at 23:29
1
1
The
--entry
option selects the primary partition number to be used and sets the active flag on that partition. This makes the code in the boot sector use that partition for booting. I'm surprised the type code made a difference in your tests. Apparently some code does actually check this value.â Johan Myréen
Apr 4 '17 at 4:12
The
--entry
option selects the primary partition number to be used and sets the active flag on that partition. This makes the code in the boot sector use that partition for booting. I'm surprised the type code made a difference in your tests. Apparently some code does actually check this value.â Johan Myréen
Apr 4 '17 at 4:12
i guess active flag is the same as the boot flag. But, its really confusing to set an active flag for a partition that does not exist. In the above case, the entry number is 4 which means, the fourth parition is bootable. However, the ISO file is dd ied to the usb disk and hence all the paritions from the stick in my opinion are deleted. So, what is the signifigance of the entry option, when anyways the disk would not hold any partition? Could I have also used entry "any number" or may be completely omit the entry option from the command?
â infoclogged
Apr 4 '17 at 9:45
i guess active flag is the same as the boot flag. But, its really confusing to set an active flag for a partition that does not exist. In the above case, the entry number is 4 which means, the fourth parition is bootable. However, the ISO file is dd ied to the usb disk and hence all the paritions from the stick in my opinion are deleted. So, what is the signifigance of the entry option, when anyways the disk would not hold any partition? Could I have also used entry "any number" or may be completely omit the entry option from the command?
â infoclogged
Apr 4 '17 at 9:45
1
1
The ISO file contains empty space at the beginning, which can be used to write a partition table. The partition table is carefully crafted to contain an entry which points to the beginning of the ISO9660 file system. So it does hold a partition, which in turn is filled with a file system.
â Johan Myréen
Apr 4 '17 at 10:22
The ISO file contains empty space at the beginning, which can be used to write a partition table. The partition table is carefully crafted to contain an entry which points to the beginning of the ISO9660 file system. So it does hold a partition, which in turn is filled with a file system.
â Johan Myréen
Apr 4 '17 at 10:22
In fact, the partition probably points to the beginning of the disk, i.e. to the partition table, but I can't check that now.
â Johan Myréen
Apr 4 '17 at 10:43
In fact, the partition probably points to the beginning of the disk, i.e. to the partition table, but I can't check that now.
â Johan Myréen
Apr 4 '17 at 10:43
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f355652%2ffile-system-of-a-boot-disk%23new-answer', 'question_page');
);
Post as a guest
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
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
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
Is
isofile
the same aspathtoiso.iso
? If so, please make them the same so it's clear.â roaima
Apr 3 '17 at 17:09
You're asking about
mkfs.fat -I
. Have you read the man page yet? (man mkfs.fat
)â roaima
Apr 3 '17 at 17:11
1
A partition table isn't essential, but it is usually recommended. You would usually provide one on a disk or USB stick, but you don't need one. You wouldn't use one on a DVD/CD (because the ISO format doesn't expect one), and they weren't available at all on floppy disks.
â roaima
Apr 3 '17 at 23:09
1
Yes and yes. It's very unusual to have a disk without a partition table but they can exist, and will work fine using
/dev/sdX
instead of/dev/sdXN
.â roaima
Apr 3 '17 at 23:28
1
You cannot boot a disk that has no partition table, agreed. That's one of the reasons such disk layouts are unusual.
â roaima
Apr 4 '17 at 6:51