Accessing .dsl packages
Forum: DSL Embedded
Topic: Accessing .dsl packages
started by: sarastro_us
Posted by sarastro_us on Nov. 10 2004,21:14Im quite pleasently surprised with DSL embedded. The performance on my 1.2 gHz box is more than acceptable, and it means I dont have to fool around with getting the wireless driver installed. The problem I have run into, though, is getting access to my .dsl library, or any other files from my NTFS hd partition. I tried making a small disk image with dd under Cygwin containing my .dsls, but DSL-Embedded hung on boot when I tried to mount it as hdb from my dsl-windows.bat file. Ive found mention of using Samba to share directories in the qemu docs, but Ive never used Samba before, and I cant seem to get embedded to detect the smb share.
ANy ideas on how to easily access the info on my hard drive?
Posted by henk1955 on Nov. 10 2004,21:43there is a harddisk image called harddisk is 60Mb in the dsl-windows.bat you see -hda harddisk
you can use that to store dl'd *.dsl.
no need to make one or alter bat file
i did so for xchat.tar.gz
Posted by AwPhuch on Nov. 10 2004,22:12You may also use WINISO to add MyDSL apps directly to the iso
Well up to 100Megs on the unregistered version
Posted by ewanrg on Nov. 11 2004,21:13
Is there a way to make that file larger (instead of 60 megs maybe a Gig or two), or to refer to other volumes on an external HD?
Along the same lines, how would I setup the reference to use the DL'd DSL automagically when I reboot?
Posted by AwPhuch on Nov. 11 2004,21:54
1. Yes you have to create a new file...I will shortly make a "development" package or a walkthru on where to get the program to make the file, You cant refer to other volumes on other drives...and since you are using the -cdrom function you dont cant use multiple harddrives (-hda <name> -hdb <name>) I already tried! (P.S. I had a 512Meg "harddrive" install of dsl-embedded, but I deleted it, I will soon have a writeup for you to make your own)
2. Just copy the newly downloaded dsl-0.8.4.iso from the other directory, and rename it over the dsl.iso in the dsl-embedded dir and you are done.
Posted by henk1955 on Nov. 11 2004,21:57i think you can (question 1):
1 use dd to create a file as big as you want, name it hdb.img
2 add -hdb hdb.img to the long command line in dsl-windows.bat
3. start up dsl-embeded
4. open XShels-root access
5 type mke2fs /dev/hdb
6 aswer y to proceed anyway?
7. mount /mnt/hdb
8. copy *.dsl to /mnt/hdb
one of dsl boot options is mydsl=
if you enter: dsl mydsl=hdb
it will load your extensions from the hdb drive
Posted by roberts on Nov. 11 2004,22:01I made it 60BM so that everything would fit nicely on a 128MB pendrive.
But you can make your own. Especially if this is sitting in a windows folder on a hard drive.
I made the one is dsl-embedded on a DSL system like this from a root shell:
dd of=harddisk bs=1024 seek=60000 count=0
Now if you also want to pre-load it up with a bunch of .dsl then in DSL
mount harddisk /mnt/test -o loop
then copy over the .dsl that you have downloaded to /mnt/test
Then copy over your "new" harddisk into the windows folder.
Posted by henk1955 on Nov. 11 2004,22:06Brian,
i run dsl-0.8.4 embeded in dsl
this works i have hda, hdb and boot cdrom
i think this is posible in windows to
Posted by roberts on Nov. 12 2004,00:53Sure does work in windows. For a real simple test, just use windows and copy harddisk to harddiskB then add another option in dsl-windows.bat -hdb harddiskB
Then boot up and you will see the mount.app display of both hda and hdb
Posted by ewanrg on Nov. 12 2004,14:34Thanks! This looks like everything I need to know (and then some)!
Now all I have to do is to find some time to try this out :-)
Posted by AwPhuch on Nov. 12 2004,15:32Awesome Great job guys!!
I went ahead and posted up the Qemu-dev package
< http://awphuch2000.dyndns.org:1079/linux....dsl-dev >
Just download it, extract it to any directory...
You will have to use a windows command prompt and cd to the directory
1. to create a "file" just type
Then just copy to your dsl-embedded directory and edit your dsl-windows.bat file and you will now have a new harddrive entry
Posted by ewanrg on Nov. 12 2004,21:03Used the QEMU Dev to create a 1 Gig hd file on my external drive, added the reference to it in the .bat file, and then fdisk'd it after I brought DSL up the next time. Seems to work just fine.
Saw a couple interesting things in the DSL repository, but now I'm wondering if I should setup a swap partition, or up the amount of memory I'm giving to QEMU, or both.
Machine is running XP Pro with 512 Megs of RAM, of which about 300 appear to be committed at any one point. So I'm concerned if I setup DSL with even 256 megs I'm going to be causing something to start swapping significantly.
Of course this assumes that QEMU would even be able to take advantage of a SWAP file...
Posted by cbagger01 on Nov. 12 2004,23:24The "virtual PC" that is Qemu should work fine with a SWAP file.
Keep in mind that from the operating system's perspective, the OS is running on a little Pentium Pro Personal Computer and will swap out to hard disk just like a real PC.
However, you may be disappointed with swap or hdinstall performance because the current version of Qemu does not emulate a "virtual ultra-DMA hard drive", so the data transfer rate is not as quick as your physical hard drive's transfer speed.
Someone has found a solution to this problem and at some point high-speed "virtrual hard drive" access will be incorporated into a future version of QEmu.
In the meantime, it might actually be FASTER to run your DSL embedded system in TORAM mode.