LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 05-27-2007, 07:21 AM   #1
footlogon54
LQ Newbie
 
Registered: May 2007
Posts: 5

Rep: Reputation: 0
Cool a programming trouble


Hi
I decided to write a program for my self.
But I feel I need some guidance to do this
The problem is: I have some applications on a Linux server or windows client or server. And this application produces some information. Now the real problem is I want to create a cd which this cd is bootable. this cd will boot up and do something for me .I want to record some information by my cd recorder or DVD recorder but not in windows or Linux environment this cd should do it and get an image of my information by it self. it seems or probably you tell me ,some kind of utility like Norton ghost can do this operation for you. but I have something more to do. And I need to design and code this project for my own purpose. I will be thanked if some body should guide me
If I should do some steps please tell me
 
Old 05-27-2007, 12:30 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
Moved: This thread is more suitable in Programming and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 05-28-2007, 11:14 AM   #3
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
So, to rephrase your question: You want to create a bootable CD that does some kind of action that includes storing data to a CD or DVD (you haven't said whether this CD or DVD is the boot drive). You want the bootable CD to run without the benefit of a Linux or Windows operating system. You want someone to explain how to do this in one thread on LinuxQuestions.org.
Is this correct?
--- rod.
 
Old 05-29-2007, 02:22 AM   #4
footlogon54
LQ Newbie
 
Registered: May 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Cool let me make it simple

hi and thanks for ur attention
let me make the problem simple
for first step of my project
i am going to make a bootable cd which can take image from file or partion something like acronis but i want to do this my self (i want to write down my own program).
because of next steps of my project.
i will be thanked if somebody should help me about it
sincerely urs.

Last edited by footlogon54; 05-29-2007 at 02:28 AM.
 
Old 05-29-2007, 11:13 AM   #5
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Okay, but first you are going to have to write all of the low-level drivers and filesystem drivers for the media that the partition lives on. Remember, the design objective is to do this without the aid of an operating system. Or, do you already have some alternative OS, that you have not mentioned?
So, is your first obstacle the part where you create the bootable CD, or the part where you write your own OS, with all of the device drivers and then write your backup application? Really, you can't do the first, without having done the second. Without having created all of the code that comprises your bootable CD, what will you put on the CD?
If it sounds like I am being cynical, then you are correct. I don't think you have thought this problem through very well, and you should reconsider your approach.
--- rod.

Last edited by theNbomr; 05-30-2007 at 10:54 AM.
 
Old 05-30-2007, 01:43 AM   #6
footlogon54
LQ Newbie
 
Registered: May 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Unhappy

no no no
Its a little misunderstanding
Sorry if I am not a good explainer.
I didnít say I donít want to use os; all of thing I want is anything I need should be on this bootable cd
I am going to do this project by Linux (my choice is Gentoo Linux for now)
This bootable cd should do the steps beneath:
1 Ė After putting the bootable cd in the cdrom and setting up bios it should boot up the system (my pc)
2- Something like menu will show some option
(For example I want to take an image from c partition windows or Linux)
3- This cd can restore this image if some day will be necessary
4- if this bootable cd can do something more it will be so good. Some thing like this step: we could record this image by our bootable cd and we didnít need to load Linux or win from hard disk
It's for my first step.
Thanks.
 
Old 05-30-2007, 11:27 AM   #7
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Okay, I guess I was confused when you said 'not in windows or Linux environment'. I guess I still am, but oh well...

So you want to create a bootable CD whose whole purpose is to 'take an image' or 'get an image of my information'. What do you want to be done with that image? Copy it somewhere? Burn it to a CD or DVD? Something else...? Are we to assume that this is a dedicated backup application? When you say 'This cd can restore this image', are we to assume that the bootable CD is also the storage media for the backup? That would seem to add all sorts of complications.

For the purpose of performing image backups, Partimage is one notable example. The LiveBackup project would seem to be a good place to start for creating a bootable live CD.

Is this starting to go in the right direction?
--- rod.

Last edited by theNbomr; 05-30-2007 at 11:30 AM.
 
Old 06-02-2007, 12:12 AM   #8
footlogon54
LQ Newbie
 
Registered: May 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Smile more explenation

Hi and thanx

U shoot the target

As a reality and for the first step of my project I am going to make a bootable cd
Something like acronis true image or Norton ghost.
But I am a beginner in Linux and donít know what is the steps of this project
I am going to take an image of my partitions or my files but I donít know how should I write the program which can do it for me.
1- I donít know the steps of this programming.
2- what parts this program consist (which blocks for programming and coding)
3-which kind of language is good for this work (bash scripting; python ; or C)
but at last I know I should write the program by Linux or dos.
May u lead and guide me in this project ?
Thanx
 
Old 06-02-2007, 12:49 PM   #9
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Did you visit the links I posted? The answers to your questions are there.
Why do you not answer the specific questions that I ask you, but instead reiterate the same general question?
You should not have to do much if any programming to create a system of bootable CDs. I suggest that you start by using programs that already exist, and either modify them to suit your requirement, or use their underlying techniques to create your own program(s). Programming low-level hardware access such as reading and writing raw partition images is probably best done in C/C++.
Programming at this level takes some expertise. Do you have the time and energy to put a couple of man years into such a project? There is much much more to this question than can be answered in a forum such as this. Pointers to existing web documents are the best help you should expect. When you get down to work on the problem, and have specific questions about smaller topics, then you should ask them here.

--- rod.
 
Old 06-03-2007, 01:56 AM   #10
footlogon54
LQ Newbie
 
Registered: May 2007
Posts: 5

Original Poster
Rep: Reputation: 0
thanx
i saw yourlinks
it was wonderfull
now i should read document of the livebackup cd and see the code.
god bless me .
i hope i can handel it.
i think if i could understand codes i should modify and add something to that.
for example livecd absolutely can take image from linux but i want to take an image from windows too
thanks for your guidance
i am really appreciated.
 
  


Reply

Tags
bootable


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
Serial Programming trouble dvrslype Programming 2 09-14-2006 04:25 AM
little programming trouble koldun Programming 5 03-02-2005 05:57 AM


All times are GMT -5. The time now is 06:33 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration