Skip to Content.
Sympa Menu

baslinux - Re: [BL] Saving changes to ram disk

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: Sindi Keesan <keesan AT iamjlamb.com>
  • To: baslinux AT lists.ibiblio.org
  • Subject: Re: [BL] Saving changes to ram disk
  • Date: Fri, 5 Mar 2004 22:11:29 -0500 (EST)

On Fri, 5 Mar 2004, Ian Scott wrote:

> Hi,
>
> Just a quick note to tell y'all of a way to save changes you make to your
> ramdisk.
>
> What you do is:
>
> Boot BL
I booted to ramdisk BL2.

> Make changes
I changed eznet.conf and resolv.conf.

> Mount your dos drive.
mount /dev/hda2 /mnt (I have BL2 in D:)

> CD to wherever you installed BL.
I finally figured out that you mean to cd to the basiclinux
directory in the DOS partition:
cd /mnt/bl2

> Copy the contents of your ramdisk to a file:
> cat /dev/ram0>ramdisk
Took a few seconds.

> and zip it up
> gzip ramdisk
>
> (Both of these may take a while, depending on the power of your computer)
Took a minute or two on my P166 with 16M RAM.
>
>
> You will then have a new ramdisk called ramdisk.gz which contains the
> changes you
> just made.
>
> If you then rename your normal ramdisk (baslinux.gz or whatever it is
> called)
> to something else (so you have a backup if your changes don't work) and
> rename
> your new ramdisk to baslinux.gz, next time you boot BL, you will use your
> changed ramdisk.

I renamed the new one baslin2.gz and will make a new boot file.
I might also remove the network card modules to make a smaller file.
And modify the links configuration file to show numbered links.
links-ssl appears to use this same file (but not hotlist.html - why?)

> I find this useful for persisting changes to configuration files, etc - I
> now
> have a saveram script in my ramdisk to do this so it can save itself!
>
> Hope this is useful,

Very useful, thanks.

I am still staring in some perplexity at Steven's instructions for using
loop to do this. I still don't know how to mount baslinux to /mnt, make
changes (presumably to the files located in /mnt), umount /mnt, and then
gzip baslinux. Perhaps the last two steps should be reversed? And I don't
think this will work from the ramdisk version because there is not enough
space to mount all of baslinux to /mnt (in ramdisk) after booting baslinux
to ramdisk. Maybe I could mount to /tmp instead?
Sindi Keesan

>
> Ian
>
>
>
>
> _______________________________________________
> BasLinux mailing list
> BasLinux AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/baslinux
>





Archive powered by MHonArc 2.6.24.

Top of Page