DSL Embedded :: mounting 2nd disk in embedded DSL



Hi,

I've been scowering the forum and the internet for the answer to this question so I do believe that it hasn't been answered.  Appologies if it has, if so please direct me in the direction cause I can't find it.

anyway...

I have created a hard disk image using qemu-image.exe.  mounted it using the command line.  partitioned it and once I have given 777 permisions to it I can write to it during my session.  My plan for this hard disk is to store my files (not settings, I am happy with the default 60MB disk for this).  

My problem is when I restart these files are not commited.

I have been a user of MSVPC and I know that unless you choose commit changes now when you shut down these things don't get saved and you are left with the installation as it was.  

I have looked at the Backup/Restore but this just appears to be the settings and my home folder.

I have looked at QEMU's monitor commit command but as I am not using -snapshot this is irelevant.

I have been able to modify hdb directly (create a mydsl directory) which has been saved

So I'm not sure if this is a QEMU or DSL problem.  Is there something that needs to be tweaked?

Thanks in advance

Did you add this new virtual drive in the append section of the .bat file?
Then you should be able to copy your extension files to it via the name mapping as provided in the append section.

roberts,

I didn't add it into the append section, but as follows (-hdd)

START qemu\qemu.exe -L qemu/ -kernel-kqemu -m 512 -soundhw sb16 -localtime -kernel linux24 -initrd minirt24.gz -hda KNOPPIX/knoppix -hdb qemu/harddisk -hdd qemu/files.img -append "qemu sb=0x220,5,1,5 frugal quiet modules=hdb noscsi nousb nofirewire atapicd noideraid noacpi acpi=off noapm noagp ide1=noprobe ide2=noprobe nomce"

is there another way to achieve the same thing? As the contents of the apend are kernal command line I guess this is DSL related

Once booted into DSL, you should see hdd as an option in the mount tool. If not, then perhaps this newly created virtual drive is formatted with something that DSL does not know. I have always created the virtual hard drives using dd then format them with ext2.
As a quick and dirty test, I copied the harddrive file to myfiles in the qemu directory using windows. I added the drive mapping hdd as you have done. I started the dsl-qemu.bat file.
Then using the mount tool mounted hdd. Then i downloaded glinks.uci and as root copied it to /mnt/hdd. Then upon a reboot, mounted hdd and mydsl-load /mnt/hdd/glinks.uci and all worked as it should.
Lastly, I shutdown normally. Then edited dsl-windows.bat and added restore=hdb mydsl=hdd in the append section and reboot.
glinks.uci loaded automatically as it should and all is well.



Ok, I decided to try the same thing. I created the qemu disk with this command:
Code Sample
qemu-img create -f raw files.img 100M


I added the line -hdd qemu/files.img to the batch file.

I tried to format it in cfdisk, and I formatted it with Linux file system. Even after I reboot, I still can't seem to mount it. It says that I must specify the file system type.

Did I do something wrong?

Next Page...
original here.