Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: how to persist changes to / ?, Problems saving changes under QEMU< Next Oldest | Next Newest >
rhlee Offline





Group: Members
Posts: 3
Joined: Dec. 2004
Posted: Dec. 20 2004,10:11 QUOTE

Hi,

This is probably a pretty basic question, but I'm having trouble getting changes that I've made to / to persist across runs.  I'm running DSL under QEMU (and I've tried a variety of the boot options) and I want to install some new packages.  However, across runs (of the emulator), none of the changes made to / by installing the new packages have been persisted.  I see:

% mount
/dev/root on / type ext2 (rw)
...
/dev/hda on /mnt/hda type ext2 (rw,nosuid,nodev)


changes to /mnt/hda do seem to persist.  However, some of the packages that I want to install (which do not have a .dsl distribution) and changes to /etc/* conf files dont.

Any help would be much appreciated,
thanks,
-Rob
Back to top
Profile PM 
ico2 Offline





Group: Members
Posts: 802
Joined: July 2004
Posted: Dec. 20 2004,15:34 QUOTE

hda under qemu is a virtual file system, it is stored in the file "harddisk" in the qemu directory, changes will still be there after a reboot. you can use filetool.lst to add file you need to backup and backup to hda.


welcome to the forums


--------------
ico2
Back to top
Profile PM MSN 
rhlee Offline





Group: Members
Posts: 3
Joined: Dec. 2004
Posted: Dec. 20 2004,19:04 QUOTE

Thanks for the quick reply.

So are you saying that I need to figure out every file that's changed by my package install and add that to the filetool.lst?  I tried adding /etc, /lib, etc... to that file, but then shutdown hangs while "backing up hda" and subsequent startup also hangs.

What I'm trying to do is setup an "world" which is the base image, plus a certain set of packages that I want to apt-get that I can run off of a USB key under qemu.  But whatever changes I make, don't last.  For example, If I do dkpg-restore and then shutdown and restart, the change does not persist.


thanks for the help,
-Rob
Back to top
Profile PM 
Fordi Offline





Group: Members
Posts: 90
Joined: April 2004
Posted: Dec. 21 2004,13:37 QUOTE

It sounds like you've got QEMU booting from the CD.

After running the HD-Install script, you need to add (change) the -boot paramater (from -boot d) to -boot c.

Oh, also, mksparse will NOT work on a USB stick running FAT32 (the one available to almost all systems as read/write).  In other words, you MUST make your HD image on the USB stick very exacting, or you either lose space for QEMU to run or you can't fit the whole thing on the USB stick.

I really suggest you remaster in a "real" environment on a spare hard drive, boot that CD in QEMU and "frugal" install to a QEMU Hard drive.
Back to top
Profile PM 
3 replies since Dec. 20 2004,10:11 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: how to persist changes to / ?

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code