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: Share DSL data between qemu & straight boot, USB boot vs. qemu environments< Next Oldest | Next Newest >
p0tp Offline





Group: Members
Posts: 3
Joined: Aug. 2005
Posted: Aug. 31 2005,02:14 QUOTE

Ok, as briefly as possible:  I have a 512MB USB drive that I've been massaging DSL-embedded (or 5way) on for about 4 months, and it is now completely and officially kicking @$$ up and down the block!!!  Boots up perfectly on my home machine, and runs all day on top of W2K pro on my work machine in qemu without a hitch.

I recently used qemu-img to create a new 128MB image file on the USB drive, which I then mounted under my qemu environment as a new hard disk (hdc).  I modified everything to use the new 'hdc' for all backup/restore and myDSL files, thereby eliminating the risk of running out of room on the stock 'hdb' disk image file, which would have made me very very sad and probably caused me to break nearly everything within reach.  And voila, it worked!

But then I got home and booted the USB drive directly, and quickly realized that all my configuration info and myDSL files under my new qemu environment don't show up to the direct-bootable DSL environment.

So, long story, but stupid simple question:  how/what do I modify so that the direct-boot DSL will recognize the new 'hdc' image file on my USB drive?  An mtab entry?  fstab?  The primary trick to getting it working on the qemu side was modifying "dsl-windows.bat" to assign the image file to a drive, but now I'm at a loss for what the analog would be on the direct-boot side.

Any suggestions?  I feel like it should be something extremely obvious, but so far not much about this project has been obvious, so I'll go ahead and publicly confess my ignorance/stupidity.

Thanks!
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Sep. 01 2005,23:41 QUOTE

This is a really good question. First things first.
You would not want to share the same full backup as the machine specific setup for the virtual Qemu machine is surely different from you home machine.

However, it is possible to be creative to achieve your desired results.
First thing, separate out the qemu specific files from backup.tar.gz. That is remove all your user backup lines inside .filetool.lst and make a backup.tar.gz that is user file free. Next rename the backup.tar.gz to something else, like myQemu.tar.gz. Next put back all your user file lines into .filetool.lst and make another backup. Then you should have a myQemu.tar.gz and a backup.tar.gz. Now upon booting into qemu, first the myQemu.tar.gz will be restored folllowed by just your user files, i.e., machine independent.

On the real USB boot side, it is not quite as easy. Still the same concept applies. Have the backup.tar.gz for the real boot be only machine setting.

Now to access Qemu's virtual drive, you should boot DSL with the qemu option.

boot: dsl qemu

This will give you an fstab with /dev/harddisk /mnt/hdb

You can use the mount tool on hdb and see the contents of the virtual drive.
You can restore those user files from Qemu by using then prompt

#filetool.sh restore "" harddisk
or use the Backup/Restore GUI and enter harddisk and carefully press restore.
However, using this GUI option will persist your selection, which may or may not be what you want.

Same to backup user only file from real boot:
#filetool.sh backup "" harddisk

Using these concepts you should be able to  backup and restore your shared user only data files.
Back to top
Profile PM WEB 
p0tp Offline





Group: Members
Posts: 3
Joined: Aug. 2005
Posted: Sep. 02 2005,03:03 QUOTE

Cool, thanks very much for the help!   Too tired at this hour to get my brain around everything you suggest, but I'll give 'er a try over the long weekend, and report back on the results.

Thanks Again!!!
p0tp
Back to top
Profile PM 
2 replies since Aug. 31 2005,02:14 < Next Oldest | Next Newest >

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

 
reply to topic new topic new poll
Quick Reply: Share DSL data between qemu & straight boot

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