mounting 2nd disk in embedded DSL


Forum: DSL Embedded
Topic: mounting 2nd disk in embedded DSL
started by: jthorne

Posted by jthorne on July 29 2006,22:51
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

Posted by roberts on July 30 2006,17:26
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.

Posted by jthorne on July 30 2006,18:27
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

Posted by roberts on July 30 2006,23:34
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.



Posted by colonel_panic on July 31 2006,15:08
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?

Posted by jthorne on July 31 2006,16:03
i got this working.  

I had to copy the installation to my HD to do this

once mounted using the string in the bat file I opened up the terminal and typed the following

sudo su

mkfs.ext2 /dev/hdd

chmod 777 /mnt/hdd

and then it started working

thanks for your help richards.  I guess I formatted it wrong

Posted by colonel_panic on July 31 2006,19:01
Yeah, that worked. I can't believe I didn't remember mkfs.ext2....  :D
Posted by slimeph on Aug. 31 2006,06:20
have followed every instructions on this. but one thing. how could i make it permanent? what is glinks.uci? how could i make it work?
Posted by ^thehatsrule^ on Sep. 01 2006,05:14
slimeph: please read up on backup/restore on the first page of dillo, or the wiki.
- .uci are a kind of myDSL extension
- glinks is a web browser

Posted by slimeph on Sep. 01 2006,07:34
sort of one time only problem since rebooting again solves all. have read that sir.

thanks a lot.

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.