SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I still do not get what you mean and want. Could you please be a little more practical:
Q1 What do you call a custom boot sector for DVD? Assuming that you refer to the El Torito specification, what customization do you want?
Q2 Why do you need it?
Q3 What do you want to do with this bootable DVD?
In response to Question #1: I call a custom boot sector one that I create myself, as opposed to something that I copied from someone else.
In response to Question #2: I don't "need" it, as such, I want to know how to create one because I might end up wanting to create my own operating system (which thus answers Question #3).
So what method and/or software would you suggest for that task?
Last edited by TheNutCase; 06-25-2016 at 05:10 PM.
Simply put it is just a piece of code that will be used by the firmware to locate the operating system to boot.
So the custom thing is the OS, not the boot sector. Others have already named software able to write DVDs that comply to the El Torito specification, especially include a boot sector (or better said, a boot record) for DVD. You might want to read this article which explains the process, names the most used software (mkisofs, genisoimage and xorriso) and gives examples. To know more you will need to read the man pages.
About creating your own operating system: why not? I wish you good luck.
Just a bit of (not requested, sorry) advice: there is much more to create an OS than just be able to boot it, so the first thing would be to do a lot of reading and learning.
Last edited by Didier Spaier; 06-25-2016 at 06:26 PM.
Simply put it is just a piece of code that will be used by the firmware to locate the operating system to boot.
So the custom thing is the OS, not the boot sector. Others have already named software able to write DVDs that comply to the El Torito specification, especially include a boot sector (or better said, a boot record) for DVD. You might want to read this article which explains the process, names the most used software (mkisofs, genisoimage and xorriso) and gives examples. To know more you will need to read the man pages.
About creating your own operating system: why not? I wish you good luck.
Just a bit of (not requested, sorry) advice: there is much more to create an OS than just be able to boot it, so the first thing would be to do a lot of reading and learning.
Methinks I need to clarify one or two things here. First, I DO know what a boot sector is (I am somewhat of an amateur computer programmer myself), and second, I am not looking to "emulate" anything, all I'm asking is for someone to clue me in as to where I can find software (preferably for Linux, if possible), or information on how to go about creating an original boot sector for CDs or DVDs.
Methinks I need to clarify one or two things here. First, I DO know what a boot sector is (I am somewhat of an amateur computer programmer myself), and second, I am not looking to "emulate" anything, all I'm asking is for someone to clue me in as to where I can find software (preferably for Linux, if possible), or information on how to go about creating an original boot sector for CDs or DVDs.
The three software I listed in the post you just quoted are all able to do that. Let me repeat their names below, each on its own line:
mkisofs
genisoimage
xorriso
I confirm that these software are usable on Linux.
mkisofs is included in Slackware.
If you need information on how to get and install xorriso, that I use, just ask, it's always a pleasure to help you (or at least, try).
Last edited by Didier Spaier; 06-25-2016 at 10:18 PM.
Methinks I need to clarify one or two things here. First, I DO know what a boot sector is (I am somewhat of an amateur computer programmer myself), and second, I am not looking to "emulate" anything, all I'm asking is for someone to clue me in as to where I can find software (preferably for Linux, if possible), or information on how to go about creating an original boot sector for CDs or DVDs.
Alright, I think I see what you're getting at here. Let's say you download an ISO from somewhere, and it's supposed to be able to boot, but for some reason it doesn't work and you think it might be because the boot sector is missing.
If that's the case, the correct fix is to obtain another ISO that's properly built or not corrupted. See, the boot record on a bootable CD or DVD isn't something like a Master Boot Record on a hard drive that you can just dd into place. It contains specific information about what needs to be loaded next. If that's missing, well... you *could* possibly figure it out, but it's probably a waste of time.
If you're looking to create a bootable ISO from scratch, read up on the tools Didier mentioned. By the time you're ready to do that, you'll have prepared a whole file tree to be processed and will know exactly what kind of bootloader you'll be using, so using those tools should be pretty straightforward.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.