LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 07-04-2008, 11:53 PM   #1
ankit_mcgill
Member
 
Registered: Aug 2005
Location: Montreal
Distribution: OpenSuse 10.3
Posts: 65

Rep: Reputation: 15
Linux optical drive control


I am working on a personal project of mine and i have come across a situation :

i need some kind of library (C preferably) that would give me low level control of the optical drive.
for eg : let me burn 1 sector on a given side, layer and track

i googled this and seems like no such library exits ... so the next option would be write my own ... in that case any pointers to where to start ... ? again google did not turn up much.

thanks for the help!
ankit
 
Old 07-05-2008, 01:11 AM   #2
lwasserm
Member
 
Registered: Mar 2008
Location: Baltimore Md
Distribution: ubuntu
Posts: 184

Rep: Reputation: 41
Do you have some reason to believe that optical disks and drives can be accessed at that kind of level?
 
Old 07-05-2008, 01:21 AM   #3
ankit_mcgill
Member
 
Registered: Aug 2005
Location: Montreal
Distribution: OpenSuse 10.3
Posts: 65

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by lwasserm View Post
Do you have some reason to believe that optical disks and drives can be accessed at that kind of level?
why cant they be ... all the utilities like k3b etc in the end tell the drive to write / read a sector/cluster at a particular offset on the disk.
 
Old 07-05-2008, 01:42 AM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
I am not sure how that all works, but I THINK that k3b generates the .ISO then sends that to the drive. I also think they use tracks instead of sectors and clusters.

One possible source of information might be DVD+RW/+R. Either looking at the source code to see how it works or looking at the Devs web site.
 
Old 07-05-2008, 02:49 PM   #5
ankit_mcgill
Member
 
Registered: Aug 2005
Location: Montreal
Distribution: OpenSuse 10.3
Posts: 65

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by lazlow View Post
I am not sure how that all works, but I THINK that k3b generates the .ISO then sends that to the drive. I also think they use tracks instead of sectors and clusters.

One possible source of information might be DVD+RW/+R. Either looking at the source code to see how it works or looking at the Devs web site.
i was under the impression that if you went down enough in the level hierarchy you would get this kind of control of the drive
 
Old 07-05-2008, 09:37 PM   #6
lwasserm
Member
 
Registered: Mar 2008
Location: Baltimore Md
Distribution: ubuntu
Posts: 184

Rep: Reputation: 41
I'm not an expert by any means, but there are some real differences between how data is stored on a hd and on a cd. On a hd, the tracks, sectors, cylinders, etc are in a fixed position on the disk and can be accessed by a predefined geometry. On a cd, that geometry (as far as my understanding goes) is not so fixed, it is laid out to some extent when the cd is burned, and the information describing it is stored on the cd. Another big difference is that data on a cd is stored on one long spiral unlike the concentric tracks on a hard disk (though maybe there are other ways write a cd, I don't know) I don't consider wikipedia articles as authoritative, but their description of the iso filesystem will give some idea of what you are up against. Also, good though somewhat dated info is at http://www.cdrfaq.org/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
S-ATA Optical Drive carlosinfl Debian 5 01-19-2007 09:41 PM
Linux LiveCD that detects SATA Optical Drive in Dell e520? chuddy117 Linux - Hardware 2 12-02-2006 11:42 PM
my hard drive or my optical drive is failing fatblueduck Linux - Hardware 7 01-28-2006 09:30 PM
optical drive help lucent Linux - Hardware 2 07-18-2005 05:31 AM
not seeing my second optical drive thanto_ Linux - Hardware 9 07-18-2005 01:08 AM


All times are GMT -5. The time now is 09:07 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration