On Wed, Apr 13, 2011 at 11:25 AM, Glenn Cogle <[email protected]> wrote:
>
>
> On 13 April 2011 10:56, Nick Rout <[email protected]> wrote:
>>
>> On Wed, Apr 13, 2011 at 9:46 AM, Glenn Cogle <[email protected]> wrote:
>> > On 12 April 2011 20:37, Robert Fisher <[email protected]> wrote:
>> >>
>> >> On 12/04/11 20:26, Glenn Cogle wrote:
>> >>
>> >> Hi all,
>> >>
>> >> I'm trying to replicate a Debian server, so I
>> >>
>> >> 1. did a minimal Debian install on the new server, using a different
>> >> IP
>> >> address, then
>> >> 2. used rsync to copy /etc /opt /home /usr /lib /bin /sbin /var to new
>> >> server, then
>> >> 3. rebooted to see how clever I had been.
>> >>
>> >> But because the hardware is so different, the network interfaces on the
>> >> new server are not recognised.
>> >>
>> >> Is there a file (or files) that I shouldn't have copied forward?
>> >>
>> >> Can I go though all or part of the Debian installation again to fix the
>> >> NICs?
>> >>
>> >> i.e. what should I do different next time?
>> >>
>> >> gc
>> >>
>> >> I recently upgraded my mobo and cpu and all I had to do was edit
>> >> /etc/udev/rules.d/70-persistent-net.rules
>> >> to put a # in front of the old network card line (eth0 for me) - you
>> >> could
>> >> delete the line I suppose.
>> >> The new network card was then detected at next reboot and became the
>> >> new
>> >> eth0
>> >>
>> >> HTH
>> >>
>> >> --
>> >> Regards, Robert
>> >>
>> >> --------------------------------------------------------------
>> >> Robert Fisher
>> >> (aka - Rob, Bob, Robbie, Robbo, Fish)
>> >> www.fisher.net.nz
>> >> Phone: 03 383 5807
>> >> Mobile: 027 228 4698
>> >>
>> >> That worked perfectly!
>> >
>> > In my case it was /etc/udev/rules.d/z25_persistent-net.rules.
>> >
>> > Next time I think I'll exclude the /etc/udev directory altogether.
>> >
>> > gc
>>
>> Not necessarily, some packages add files in there, and may not work
>> without those files.
>>
>> _______________________________________________
>
> Thanks - wondered if that might be the case.
Actually I am probably wrong, looks like the package installed files
go elsewhere (this is ubuntu)
nick@revo:~$ cat /etc/udev/rules.d/README
The files in this directory are read by udev(7) and used when events
are performed by the kernel. The udev daemon watches this directory
with inotify so that changes to these files are automatically picked
up, for this reason they must be files and not symlinks to another
location as in the case in Debian.
Packages do not generally install rules here, this directory is for
local rules. If you want to override behaviour of package-supplied
rules, which can be found in /lib/udev/rules.d, you can do one of
two things:
1) Write your own rules in this directory that assign the name,
symlinks, permissions, etc. that you want. Pick a number higher
than the rules you want to override, and yours will be used.
2) Copy the file from /lib/udev/rules.d and edit it here; you
should generally only do this if you want to prevent a program
from being run.
If the ordering of files in this directory are not important to you,
it's recommended that you simply name your files "descriptive-name.rules"
such that they are processed AFTER all numbered rules in both this
directory and /lib/udev/rules.d and thus override anything set there.
_______________________________________________
Linux-users mailing list
[email protected]
http://lists.canterbury.ac.nz/mailman/listinfo/linux-users