Bootable ISO vs. Partitioning

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












I would like to create a bootable Linux ISO on a USB drive under Debian 9. I found that the ISO is only bootable if it has been written to the disk /dev/XdY.
If the ISO is written to a specific partition, e.g. /dev/sdd1, then it is not bootable. What is the technical reason behind this?



It works after writing the ISO to a partition and deleting the partition afterwards using Gnome-Disk, this does not delete the file, but makes the disk bootable.










share|improve this question























  • If you're using BIOS+MBR, what did you get if mark that partition as the only boot-able? I believe standard MS-DOS MBR code will chain boot your boot-able partition.
    – ç¥žç§˜å¾·é‡Œå…‹
    Sep 17 at 2:11










  • I used sudo dd if=/home/<Windows 10 ISO> of=/dev/sdX to write the ISO to the USB stick, for some reason, the option Gnome-Disk >> Edit partition >> Bootable is greyed out.
    – david
    Sep 19 at 18:50















up vote
2
down vote

favorite












I would like to create a bootable Linux ISO on a USB drive under Debian 9. I found that the ISO is only bootable if it has been written to the disk /dev/XdY.
If the ISO is written to a specific partition, e.g. /dev/sdd1, then it is not bootable. What is the technical reason behind this?



It works after writing the ISO to a partition and deleting the partition afterwards using Gnome-Disk, this does not delete the file, but makes the disk bootable.










share|improve this question























  • If you're using BIOS+MBR, what did you get if mark that partition as the only boot-able? I believe standard MS-DOS MBR code will chain boot your boot-able partition.
    – ç¥žç§˜å¾·é‡Œå…‹
    Sep 17 at 2:11










  • I used sudo dd if=/home/<Windows 10 ISO> of=/dev/sdX to write the ISO to the USB stick, for some reason, the option Gnome-Disk >> Edit partition >> Bootable is greyed out.
    – david
    Sep 19 at 18:50













up vote
2
down vote

favorite









up vote
2
down vote

favorite











I would like to create a bootable Linux ISO on a USB drive under Debian 9. I found that the ISO is only bootable if it has been written to the disk /dev/XdY.
If the ISO is written to a specific partition, e.g. /dev/sdd1, then it is not bootable. What is the technical reason behind this?



It works after writing the ISO to a partition and deleting the partition afterwards using Gnome-Disk, this does not delete the file, but makes the disk bootable.










share|improve this question















I would like to create a bootable Linux ISO on a USB drive under Debian 9. I found that the ISO is only bootable if it has been written to the disk /dev/XdY.
If the ISO is written to a specific partition, e.g. /dev/sdd1, then it is not bootable. What is the technical reason behind this?



It works after writing the ISO to a partition and deleting the partition afterwards using Gnome-Disk, this does not delete the file, but makes the disk bootable.







linux partition path iso bootable






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 19 at 18:45









Fabby

2,508723




2,508723










asked Sep 16 at 18:43









david

133




133











  • If you're using BIOS+MBR, what did you get if mark that partition as the only boot-able? I believe standard MS-DOS MBR code will chain boot your boot-able partition.
    – ç¥žç§˜å¾·é‡Œå…‹
    Sep 17 at 2:11










  • I used sudo dd if=/home/<Windows 10 ISO> of=/dev/sdX to write the ISO to the USB stick, for some reason, the option Gnome-Disk >> Edit partition >> Bootable is greyed out.
    – david
    Sep 19 at 18:50

















  • If you're using BIOS+MBR, what did you get if mark that partition as the only boot-able? I believe standard MS-DOS MBR code will chain boot your boot-able partition.
    – ç¥žç§˜å¾·é‡Œå…‹
    Sep 17 at 2:11










  • I used sudo dd if=/home/<Windows 10 ISO> of=/dev/sdX to write the ISO to the USB stick, for some reason, the option Gnome-Disk >> Edit partition >> Bootable is greyed out.
    – david
    Sep 19 at 18:50
















If you're using BIOS+MBR, what did you get if mark that partition as the only boot-able? I believe standard MS-DOS MBR code will chain boot your boot-able partition.
– ç¥žç§˜å¾·é‡Œå…‹
Sep 17 at 2:11




If you're using BIOS+MBR, what did you get if mark that partition as the only boot-able? I believe standard MS-DOS MBR code will chain boot your boot-able partition.
– ç¥žç§˜å¾·é‡Œå…‹
Sep 17 at 2:11












I used sudo dd if=/home/<Windows 10 ISO> of=/dev/sdX to write the ISO to the USB stick, for some reason, the option Gnome-Disk >> Edit partition >> Bootable is greyed out.
– david
Sep 19 at 18:50





I used sudo dd if=/home/<Windows 10 ISO> of=/dev/sdX to write the ISO to the USB stick, for some reason, the option Gnome-Disk >> Edit partition >> Bootable is greyed out.
– david
Sep 19 at 18:50











1 Answer
1






active

oldest

votes

















up vote
5
down vote



accepted










  • BIOS machines boot disks.

  • UEFI machines boot the UEFI partition

So neither of those boot just any partition.



If you're looking to have a bootable ISO booting from a partition, you can add the ISO file to /etc/grub.d/40_custom and then grub will "boot" the ISO for you.



E.G. for gparted on my machine where /opt lives in hd2,gpt2



menuentry "GParted Live ISO" 
set ISOFile="/opt/Live-ISOs/gparted-live-0.31.0-1-amd64.iso"
loopback loop (hd2,gpt2)$ISOFile
linuxefi (loop)/live/vmlinuz boot=live components config findiso=$ISOFile ip=frommedia toram=filesystem.squashfs union=overlay username=user
initrdefi (loop)/live/initrd.img






share|improve this answer


















  • 2




    nice idea using grub for the ISO.
    – Rui F Ribeiro
    Sep 16 at 19:27










  • May I ask why linuxefi and initrdefi ? I've only done this without efi.
    – ç¥žç§˜å¾·é‡Œå…‹
    Sep 17 at 2:08










  • Because my machine is an UEFI machine and I didn't even try the originals. Ping me in chat if you want me to try @神秘德里克
    – Fabby
    Sep 17 at 10:05










  • 1.) What is the technical reason that deleting a partition actually makes an ISO/drive bootable? 2.) I need to install Windows 10 on my old ThinkPad R60 and copied the ISO onto a USB stick from Debian 9, but it does not seem to be recognized as bootable by the laptop. What am I doing wrong?
    – david
    Sep 19 at 16:04







  • 1




    That solves the question! Thx
    – david
    Sep 20 at 19:57










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f469426%2fbootable-iso-vs-partitioning%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
5
down vote



accepted










  • BIOS machines boot disks.

  • UEFI machines boot the UEFI partition

So neither of those boot just any partition.



If you're looking to have a bootable ISO booting from a partition, you can add the ISO file to /etc/grub.d/40_custom and then grub will "boot" the ISO for you.



E.G. for gparted on my machine where /opt lives in hd2,gpt2



menuentry "GParted Live ISO" 
set ISOFile="/opt/Live-ISOs/gparted-live-0.31.0-1-amd64.iso"
loopback loop (hd2,gpt2)$ISOFile
linuxefi (loop)/live/vmlinuz boot=live components config findiso=$ISOFile ip=frommedia toram=filesystem.squashfs union=overlay username=user
initrdefi (loop)/live/initrd.img






share|improve this answer


















  • 2




    nice idea using grub for the ISO.
    – Rui F Ribeiro
    Sep 16 at 19:27










  • May I ask why linuxefi and initrdefi ? I've only done this without efi.
    – ç¥žç§˜å¾·é‡Œå…‹
    Sep 17 at 2:08










  • Because my machine is an UEFI machine and I didn't even try the originals. Ping me in chat if you want me to try @神秘德里克
    – Fabby
    Sep 17 at 10:05










  • 1.) What is the technical reason that deleting a partition actually makes an ISO/drive bootable? 2.) I need to install Windows 10 on my old ThinkPad R60 and copied the ISO onto a USB stick from Debian 9, but it does not seem to be recognized as bootable by the laptop. What am I doing wrong?
    – david
    Sep 19 at 16:04







  • 1




    That solves the question! Thx
    – david
    Sep 20 at 19:57














up vote
5
down vote



accepted










  • BIOS machines boot disks.

  • UEFI machines boot the UEFI partition

So neither of those boot just any partition.



If you're looking to have a bootable ISO booting from a partition, you can add the ISO file to /etc/grub.d/40_custom and then grub will "boot" the ISO for you.



E.G. for gparted on my machine where /opt lives in hd2,gpt2



menuentry "GParted Live ISO" 
set ISOFile="/opt/Live-ISOs/gparted-live-0.31.0-1-amd64.iso"
loopback loop (hd2,gpt2)$ISOFile
linuxefi (loop)/live/vmlinuz boot=live components config findiso=$ISOFile ip=frommedia toram=filesystem.squashfs union=overlay username=user
initrdefi (loop)/live/initrd.img






share|improve this answer


















  • 2




    nice idea using grub for the ISO.
    – Rui F Ribeiro
    Sep 16 at 19:27










  • May I ask why linuxefi and initrdefi ? I've only done this without efi.
    – ç¥žç§˜å¾·é‡Œå…‹
    Sep 17 at 2:08










  • Because my machine is an UEFI machine and I didn't even try the originals. Ping me in chat if you want me to try @神秘德里克
    – Fabby
    Sep 17 at 10:05










  • 1.) What is the technical reason that deleting a partition actually makes an ISO/drive bootable? 2.) I need to install Windows 10 on my old ThinkPad R60 and copied the ISO onto a USB stick from Debian 9, but it does not seem to be recognized as bootable by the laptop. What am I doing wrong?
    – david
    Sep 19 at 16:04







  • 1




    That solves the question! Thx
    – david
    Sep 20 at 19:57












up vote
5
down vote



accepted







up vote
5
down vote



accepted






  • BIOS machines boot disks.

  • UEFI machines boot the UEFI partition

So neither of those boot just any partition.



If you're looking to have a bootable ISO booting from a partition, you can add the ISO file to /etc/grub.d/40_custom and then grub will "boot" the ISO for you.



E.G. for gparted on my machine where /opt lives in hd2,gpt2



menuentry "GParted Live ISO" 
set ISOFile="/opt/Live-ISOs/gparted-live-0.31.0-1-amd64.iso"
loopback loop (hd2,gpt2)$ISOFile
linuxefi (loop)/live/vmlinuz boot=live components config findiso=$ISOFile ip=frommedia toram=filesystem.squashfs union=overlay username=user
initrdefi (loop)/live/initrd.img






share|improve this answer














  • BIOS machines boot disks.

  • UEFI machines boot the UEFI partition

So neither of those boot just any partition.



If you're looking to have a bootable ISO booting from a partition, you can add the ISO file to /etc/grub.d/40_custom and then grub will "boot" the ISO for you.



E.G. for gparted on my machine where /opt lives in hd2,gpt2



menuentry "GParted Live ISO" 
set ISOFile="/opt/Live-ISOs/gparted-live-0.31.0-1-amd64.iso"
loopback loop (hd2,gpt2)$ISOFile
linuxefi (loop)/live/vmlinuz boot=live components config findiso=$ISOFile ip=frommedia toram=filesystem.squashfs union=overlay username=user
initrdefi (loop)/live/initrd.img







share|improve this answer














share|improve this answer



share|improve this answer








edited Sep 16 at 21:26

























answered Sep 16 at 19:21









Fabby

2,508723




2,508723







  • 2




    nice idea using grub for the ISO.
    – Rui F Ribeiro
    Sep 16 at 19:27










  • May I ask why linuxefi and initrdefi ? I've only done this without efi.
    – ç¥žç§˜å¾·é‡Œå…‹
    Sep 17 at 2:08










  • Because my machine is an UEFI machine and I didn't even try the originals. Ping me in chat if you want me to try @神秘德里克
    – Fabby
    Sep 17 at 10:05










  • 1.) What is the technical reason that deleting a partition actually makes an ISO/drive bootable? 2.) I need to install Windows 10 on my old ThinkPad R60 and copied the ISO onto a USB stick from Debian 9, but it does not seem to be recognized as bootable by the laptop. What am I doing wrong?
    – david
    Sep 19 at 16:04







  • 1




    That solves the question! Thx
    – david
    Sep 20 at 19:57












  • 2




    nice idea using grub for the ISO.
    – Rui F Ribeiro
    Sep 16 at 19:27










  • May I ask why linuxefi and initrdefi ? I've only done this without efi.
    – ç¥žç§˜å¾·é‡Œå…‹
    Sep 17 at 2:08










  • Because my machine is an UEFI machine and I didn't even try the originals. Ping me in chat if you want me to try @神秘德里克
    – Fabby
    Sep 17 at 10:05










  • 1.) What is the technical reason that deleting a partition actually makes an ISO/drive bootable? 2.) I need to install Windows 10 on my old ThinkPad R60 and copied the ISO onto a USB stick from Debian 9, but it does not seem to be recognized as bootable by the laptop. What am I doing wrong?
    – david
    Sep 19 at 16:04







  • 1




    That solves the question! Thx
    – david
    Sep 20 at 19:57







2




2




nice idea using grub for the ISO.
– Rui F Ribeiro
Sep 16 at 19:27




nice idea using grub for the ISO.
– Rui F Ribeiro
Sep 16 at 19:27












May I ask why linuxefi and initrdefi ? I've only done this without efi.
– ç¥žç§˜å¾·é‡Œå…‹
Sep 17 at 2:08




May I ask why linuxefi and initrdefi ? I've only done this without efi.
– ç¥žç§˜å¾·é‡Œå…‹
Sep 17 at 2:08












Because my machine is an UEFI machine and I didn't even try the originals. Ping me in chat if you want me to try @神秘德里克
– Fabby
Sep 17 at 10:05




Because my machine is an UEFI machine and I didn't even try the originals. Ping me in chat if you want me to try @神秘德里克
– Fabby
Sep 17 at 10:05












1.) What is the technical reason that deleting a partition actually makes an ISO/drive bootable? 2.) I need to install Windows 10 on my old ThinkPad R60 and copied the ISO onto a USB stick from Debian 9, but it does not seem to be recognized as bootable by the laptop. What am I doing wrong?
– david
Sep 19 at 16:04





1.) What is the technical reason that deleting a partition actually makes an ISO/drive bootable? 2.) I need to install Windows 10 on my old ThinkPad R60 and copied the ISO onto a USB stick from Debian 9, but it does not seem to be recognized as bootable by the laptop. What am I doing wrong?
– david
Sep 19 at 16:04





1




1




That solves the question! Thx
– david
Sep 20 at 19:57




That solves the question! Thx
– david
Sep 20 at 19:57

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f469426%2fbootable-iso-vs-partitioning%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay