LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-25-2016, 05:09 PM   #16
TheNutCase
Member
 
Registered: May 2016
Location: Columbia, South Carolina14
Distribution: Slackware 15.0
Posts: 700

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by Didier Spaier View Post
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.
 
Old 06-25-2016, 05:38 PM   #17
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
You do not know what a boot sector is, I think.

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.
 
Old 06-25-2016, 08:02 PM   #18
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,996

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
The authors of Syslinux and Bart (BartsPE) used to have a lot of information on that subject.

The issue is more of the age of the target computer and how advanced you want to make the loading mechanism. There are more than a few standards.


I used to take a loader and cat it to track one and for data track two.
 
Old 06-25-2016, 09:32 PM   #19
TheNutCase
Member
 
Registered: May 2016
Location: Columbia, South Carolina14
Distribution: Slackware 15.0
Posts: 700

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
You do not know what a boot sector is, I think.

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.
 
Old 06-25-2016, 10:08 PM   #20
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
Quote:
Originally Posted by TheNutCase View Post
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.
 
Old 06-25-2016, 11:29 PM   #21
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,515

Rep: Reputation: 8481Reputation: 8481Reputation: 8481Reputation: 8481Reputation: 8481Reputation: 8481Reputation: 8481Reputation: 8481Reputation: 8481Reputation: 8481Reputation: 8481
Quote:
Originally Posted by TheNutCase View Post
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.
 
1 members found this post helpful.
Old 06-26-2016, 02:14 PM   #22
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
For an example of it done, you might want to look at Eric's mirror-slackware-current script, found here:

http://www.slackware.com/~alien/tools/
 
  


Reply



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
creating bootable fedora 8 dvd from .iso file sagsriv Linux - Newbie 2 07-01-2011 10:29 AM
Creating bootable CDROM from a bootable USB drive seaquesttr Linux - Desktop 2 08-01-2010 11:57 AM
creating a bootable DVD to automatically restore Slackware jsmith6 Slackware 8 03-24-2010 07:41 AM
creating a bootable dvd from the images ghanu SUSE / openSUSE 2 02-17-2006 07:41 AM
Creating a bootable DVD w/ multi ISOs starfire83 Linux - General 1 11-17-2005 07:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:47 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration