Re: [Leaf-user] Backing up modules.conf
On 2/10/02 at 8:39 PM, GR <[EMAIL PROTECTED]> wrote: > This assumes Oxygen 1.9. > > I know I have managed to get this file backed up before, > but I can't seem to remember how. I have made changes to > /lib/modules/boot/modules.conf to reflect the NIC's in my > /machine and have also deleted all the unecessary modules > /from that directory. However when I attempt to back up my > /changes they aren't written to disk - upon reboot they > /are all lost. /lib/modules/boot is in root.gz. In 1.8 you would back this up by backing up root.lrp; in 1.9 its more difficult (I've not gotten to simplifying it yet). The easiest way would be to do the following - either on a LEAF system or on a full system: 1. Copy root.gz to a disk... 2. Uncompress it: gunzip -c - < root.gz > root.ima 3. Mount the image: mount -o loop root.ima /mnt/loop 4. Work in the image: cd /mnt/loop ; ... ---this is where you make changes - relative to /mnt/loop... When done... 5. Unmount image: umount /mnt/loop 6. Compress image: gzip -c - < root.ima > root.gz 7. Copy back to boot disk I'll work on a script to do this. -- David Douthitt UNIX Systems Administrator HP-UX, Unixware, Linux [EMAIL PROTECTED] ___ Leaf-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user
Re: [Leaf-user] Backing up modules.conf
GR wrote: > > This assumes Oxygen 1.9. > > I know I have managed to get this file backed up before, but I can't > seem to remember how. I have made changes to > /lib/modules/boot/modules.conf to reflect the NIC's in my machine and > have also deleted all the unecessary modules from that directory. > However when I attempt to back up my changes they aren't written to > disk - upon reboot they are all lost. > > I have attempted a full backup (apkg -e) a "partially full" backup > (apkg -a) as well as individually backing up modules.lrp (apkg -b > modules.lrp). > > What am I missing here? The boot modules in /var/boot/modules are different from runtime modules in /lib/modules. /lib/modules /var/boot/modules -- part of modules.lrppart of root.lrp for ip_masq_*.o'sfor nic and scsi and cdrom .o's The reason the boot time modules are part of root.lrp is that they are used to boot the computer, and must be loaded by the kernel during the bootstrapping process. Does that help? (answer, back up root.lrp). Tip: always use apkg -s .lrp and back up what you want, when you want, safely. Cheers, Matthew ___ Leaf-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user
[Leaf-user] Backing up modules.conf
This assumes Oxygen 1.9. I know I have managed to get this file backed up before, but I can't seem to remember how. I have made changes to /lib/modules/boot/modules.conf to reflect the NIC's in my machine and have also deleted all the unecessary modules from that directory. However when I attempt to back up my changes they aren't written to disk - upon reboot they are all lost. I have attempted a full backup (apkg -e) a "partially full" backup (apkg -a) as well as individually backing up modules.lrp (apkg -b modules.lrp). What am I missing here? __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com ___ Leaf-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user