ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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
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?
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
Last edited by footlogon54; 05-29-2007 at 01:28 AM.
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.
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.
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?
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 ?
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.
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.