Re: writing to a partition
- From: Rodney <me@xxxxxxxxx>
- Date: Sun, 30 Sep 2007 07:12:03 -0700
On Sat, 29 Sep 2007 10:24:54 -0400, Allan Adler wrote:
I would like to partition a HD so that there is a Linux partition and
another partition that I would like to use for experiments. This is on a
machine I consider expendable.
Suppose the other partition turns out to be hda1, just to be able to
refer to it more concisely. Suppose there is nothing installed on hda1,
neither operating system nor anything else.
I'd like to configure LILO so that I have the option of booting Linux or
booting this hda1 (even though there is nothing there). I can do that.
The next step is to put something on hda1 which will act when hda1 is
selected at boot time. That's the part I need help with.
I would just like to put something on hda1 that will do something very
simple, maybe a certain beep pattern or write "Hello world" to the
screen or shut the machine off. I don't want any more than that right
now, just one action to prove that the boot really did get to hda1 and
do something. After that, it can hang for all I care.
That means two problems:
(1) what exactly to write to hda1
(2) exactly where to write it and how
For (2), I think the solution is to mount /dev/hda1 from the Linux
partition and to execute, as root,
cat wtw > /dev/hda1
where wtw is a file containing the solution to (1) (it stands for "what
to write").
Is that correct? And if you happen to know the solution to (1),
hopefully just a few bytes of machine code, I'd be interested in that
too.
I hope you don't find this insulting but seeing your questions here lately
leads me to conclude that you should start with basics and learn about how
GNU/Linux works, if you do that a lot of the questions that you have will
be answered. You show the interest, it just takes some time to understand
the basics. Gnu/Linux is a self-help project, most of the knowledgable
posters don't want to write out step-by-step instructions for someone who
hasn't done basic research but they are very willing to help if you don't
understand something or get stuck. Current posts in this thread appear to
support my conclusion, as some very knowledgable posters have replied.
Some suggestions of places to start, there are many others and
many hard copy books available:
http://www.tldp.org/LDP/intro-linux/html/
If you have Windows knowledge this might help with transition.
http://www.tldp.org/HOWTO/DOS-Win-to-Linux-HOWTO.html
This might help with setting up a multi boot system:
http://tldp.org/HOWTO/Multiboot-with-LILO.html
.
- References:
- writing to a partition
- From: Allan Adler
- writing to a partition
- Prev by Date: www.nikeaaaun.com sell nike jordan adidas puma MP4
- Next by Date: hot sell nike jordan puma prada sandal......www.ni
- Previous by thread: Re: writing to a partition
- Next by thread: ext4?
- Index(es):
Relevant Pages
|