DSL Embedded :: So, how do I save settings and stuff?



virtual hdd = image file on any writeable media.
When you run DSL 3.2 embedded using qemu, you can mount a directory on the USB drive and have read/write [EDIT: not write access, read later post] access to it.  Unfortunately, you cannot use the root directory on the USB drive, it must be a subdirectory.

On my USB drive I have made the directory /xtra/ , and under Windows I run qemu/DSL with this bat file :
----------------------------------------
for %%x in (%0) do set BatchPath=%%~dpsx
for %%x in (%BatchPath%) do set BatchPath=%%~dpsx

cd /d %BatchPath%

START qemu\qemu.exe -L qemu/ -no-kqemu -m 128 -localtime -kernel linux24 -initrd minirt24.gz -hda KNOPPIX/knoppix -hdb fat:%BatchPath%xtra -append "quiet noscsi nousb nofirewire atapicd noideraid noacpi acpi=off noapm noagp ide1=noprobe ide2=noprobe nomce frugal lang=dk host=fvedslqemu desktop=jwm noicons %1 %2 %3 %4 %5 %6 %7 %8 %9"
----------------------------------------

The backup.tar.gz is in /xtra/ , my DSL extensions are in /xtra/mydsl/ , and both are found and used during boot.

To run under Linux, use this script :
----------------------------------------
qemu/qemu -L qemu/ -no-kqemu -m 128 -localtime -kernel linux24 -initrd minirt24.gz -hda KNOPPIX/knoppix -hdb fat:xtra -append "quiet noscsi nousb nofirewire atapicd noideraid noacpi acpi=off noapm noagp ide1=noprobe ide2=noprobe nomce frugal lang=dk host=fvedslqemu desktop=jwm noicons $@"
----------------------------------------

When you boot from the USB drive, it is mounted on /cdrom and is writeable.

Interesting. So, the scripts you've made are like automatic macros that start up when you boot. They basically setup everything for you, so you don't have to continue doing tedious work.
Quote (Genecks @ Feb. 24 2007,10:33)
Interesting. So, the scripts you've made are like automatic macros that start up when you boot. They basically setup everything for you, so you don't have to continue doing tedious work.

No, the scripts _are_ the actual "boot" , they are used for running DSL emulated using qemu on either a Windows or a Linux host.

The commands starting with START qemu\qemu.exe or qemu/qemu must be on a single line in the scripts, they are folded in my posts.

I haven't found a way to attach files to a post, so you'll have to make do with cut'n'paste from the post.

When booting the physical host machine from USB, I use this in syslinux.cfg :

LABEL dsl
KERNEL linux24
APPEND ramdisk_size=100000 init=/etc/init initrd=minirt24.gz nomce noapic qemu frugal lang=dk host=fve3boot BOOT_IMAGE=knoppix desktop=jwm noicons mydsl=sda1/xtra/mydsl

(APPEND is one long line)

The USB must be sda1 at boot, otherwise the mydsl directory wont be found.  I use a different backup.tar.gz for the settings when booting directly from USB, and this one is in the root of the USB drive.

/Freddy

OOOOOPS !  I made a mistake : Under Windows the folder on the USB-drive mounted as hdb1 is not writeable from qemu, I just checked.  You will have to share a directory on the host and use the SMBclient in qemu/DSL to connect to the host.

In the DSL program menu choose Net / SMBclient
- Domain : If not in a domain, put a space character in the domain field. A completely empty field won't work ???
- Machine : external IP-address of your Windows host (not the qemu 10.2... address)
- Share : name of the share on the Windows host
- Name : windows user for login
- Password : the windows user's password

The SMBclient starts with local directory in /home/dsl/ .  If you want to copy a file from an explicit given directory in DSL/qemu to the host, you must write where to put it, e.g.
Code Sample
put /mnt/hdb1/backup.tar.gz backup.tar.gz
If you write
Code Sample
put /mnt/hdb1/backup.tar.gz
you'll get "NT_STATUS_ACCESS_DENIED opening remote file \/mnt/hdb1/backup.tar.gz" because samba tries to put the file with complete pathname.

You may have to manipulate the software firewall on the Windows host to allow connection from qemu.

Next Page...
original here.