View Single Post

   
  #5 (permalink)  
Old 01-18-2008, 07:25 AM
Michael Hennebry
 
Posts: n/a
Default Re: Where did dhcp go?

Davide Bianchi wrote:
> On 2005-04-14, Michael Hennebry <hennebry@web.cs.ndsu.nodak.edu>

wrote:
> > I am quite unsure what dd is supposed to do with anything other

than
> > a plain file.

>
> dd is just a souped-up (or down) cp.


So dd doesn't have any device-specific knowledge built in?
It just issues reads and writes?
The block sizes just affect how much
it tries to read and write at a time?

> > Also, I don't have a /dev/cdrom.
> > How about dd if=/dev/hdc of=/dev/hdd ?


Would this actually work?

> > I still don't know what flags cdrecord should get after
> > dd if=/dev/hdc of=somefile .

>
> somefile will be a full copy of the CD, filesystem and everything,

you
> can even mount it using mount -o ro,loop somefile /were/you/want/it

and
> browse his content. To write on the CD, use cdrecord dev=... somefile
> (add speed= option or wathever you like).


If I understand this correctly, unless told otherwise,
cdrecord takes a file that is a byte-for-byte
copy of what is to go on the CD-R.
mkisofs's job is to make such a file
that corresponds to an ISO file system.

If I wanted, I could take any 800MB file and pass it to cdrecord.
If my CD-R is big enough, reading that CD-R back would just
be a matter of directly reading the correct /dev/* file.

> > almost verbatim from the man page for cdrecord.

>
> My man page doesn't report cdcopy at all.


>From man cdrecord:

To copy a CD in clone mode, first read the master CD using:

readcd dev=b,t,l -clone f=somefile

or (in case the CD contains many sectors that are unreadable by
inten-
tion) by calling:

readcd dev=1,0 -clone -nocorr f=somefile

will create the files somefile and somefile.toc. Then write
the CD
using:

cdrecord dev=1,0 -raw96r -clone -v somefile

> > How do I get DHCP back?

>
> Well, if your machine was requesting ip from dhcp, you should have a
> configuration file in /etc/ that report such option for your network

card.
> If you are using a red-hat derivative (IIRC from your previous post),
> it should be in /etc/sysconfig/network-scripts and named something

like
> ifcfg-ethX (where X is the number of your network card), in there
> you find BOOTPROTO=... that should be DHCP.


It is, ifcfg-eth0:
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
TYPE=Ethernet
>
> > Where did stmike come from?

>
> Check /etc/sysconfig/network, probably when you get the IP from dhcp

it
> also overwrite your hostname.


/etc/sysconfig/network:
NETWORKING=yes
HOSTNAME=localhost.localdomain

Is the fact that I can get to the
internet evidence that DHCP is running?
Is a hostname of stmike evidence that it isn't running correctly?
I've seen the hostname stmike before, when I'd installed without giving
enough information to connect to the internet.
Where that name came from was a mystery to me then also.

Reply With Quote