LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-29-2008, 12:21 AM   #1
Nicole_Tay
LQ Newbie
 
Registered: Jun 2008
Posts: 2

Rep: Reputation: 0
Writing to a specific sector in a cd


Hi everyone,

I am trying to learn how to write an os. However, presently, I am met with a stillpoint. This stillpoint is that I need to come up with a code to write to the first sector of the cd. I have found a similar source for floppy disk but I don't think is it applicable for the cd. Please give me some guidance on this, or any website that shares the source code for the driver. Thanks a lot
 
Old 06-29-2008, 09:03 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Do CDs (or DVDs) use sectors?

I would start by searching on Google using "CD format" or something similar.
 
Old 06-29-2008, 01:46 PM   #3
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Is it something like this you're looking for?

http://syslinux.zytor.com/wiki/index.php/ISOLINUX
 
Old 06-29-2008, 02:29 PM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Not sure, but I would think wodim (the de facto standard GNU/Linux optical media writer) has an option to do this. Maybe go through the wodim man page and if so then look at the relevant source code?
 
Old 06-30-2008, 03:24 AM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Heh ... where was I hiding? I've never heard of the de-facto standard
before this post, I'm still using mkisofs and cdrecord.

[edit]
So Mr Schily has made something new and given
it an odd name?
[/edit]


Cheers,
Tink

Last edited by Tinkster; 06-30-2008 at 03:39 AM.
 
Old 06-30-2008, 05:39 AM   #6
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Quote:
Originally Posted by Tinkster View Post
Heh ... where was I hiding? I've never heard of the de-facto standard
before this post, I'm still using mkisofs and cdrecord.
How should we know your hideouts?

Quote:
Originally Posted by Tinkster View Post
[edit]
So Mr Schily has made something new and given
it an odd name?
[/edit]
No, he didn't, at least as far as programming is involved. Jörg Schilling decided some time ago to change his licensing model(s) (charging for writing to DVDs among other things AFAIR). So the Debian (?) people decided on a fork and called the new branch "wodim" which seems to be used by more and more distros...

Last edited by JZL240I-U; 06-30-2008 at 05:40 AM.
 
Old 06-30-2008, 05:48 PM   #7
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Yeah, the original author wanted to license some of the cdrtools code under terms which weren't compatible with the GPL, so the Debian maintainers decided to fork, and cdrkit was born.
 
Old 06-30-2008, 06:07 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
interesting :}

Learn something new every day, and even if it's just icky politics ;}



Cheers,
Tink
 
Old 07-01-2008, 01:08 AM   #9
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Quote:
Originally Posted by Tinkster View Post
...Learn something new every day...
That's what LQ is for .
 
Old 07-02-2008, 10:54 AM   #10
Nicole_Tay
LQ Newbie
 
Registered: Jun 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you

That is useful information. Thanks everyone. I will take some time to digest all these information and see what I can work from there. However, in the meantime feel free to share more ideas on this thread.
 
Old 07-07-2008, 03:56 AM   #11
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Hmmm. I think dd should be able to do that, piped over to cdrecord. man "cdrecord" and "dd" or rather look at http://www.linuxquestions.org/questi...ommand-362506/
 
  


Reply

Tags
cd



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
Way to make autofs mount to specific USB flash drive to specific folder? utahnix Linux - Software 2 11-24-2010 05:27 PM
Tip: Loading specific gtk theme for a specific application Su-Shee Linux - Desktop 0 05-22-2008 12:59 PM
vb.net writing to a specific line in a text file mrobertson Programming 3 12-30-2005 10:24 PM
Writing to a specific line in a text file mrobertson Programming 6 12-30-2005 04:02 PM
How to make a specific command(s) work for specific users or group only naren_0101bits Linux - General 3 08-28-2005 05:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:06 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