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
Pages: (2) </ 1 [2] >/

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

reply to topic new topic new poll
Topic: So, how do I save settings and stuff?< Next Oldest | Next Newest >
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Feb. 22 2007,06:36 QUOTE

virtual hdd = image file on any writeable media.
Back to top
Profile PM 
fredvej Offline





Group: Members
Posts: 12
Joined: June 2006
Posted: Feb. 22 2007,16:15 QUOTE

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.


--------------
/Freddy
Back to top
Profile PM YIM 
Genecks Offline





Group: Members
Posts: 34
Joined: Feb. 2007
Posted: Feb. 24 2007,09:33 QUOTE

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.
Back to top
Profile PM 
fredvej Offline





Group: Members
Posts: 12
Joined: June 2006
Posted: Feb. 26 2007,18:58 QUOTE

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


--------------
/Freddy
Back to top
Profile PM YIM 
fredvej Offline





Group: Members
Posts: 12
Joined: June 2006
Posted: Feb. 28 2007,15:12 QUOTE

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.


--------------
/Freddy
Back to top
Profile PM YIM 
9 replies since Feb. 20 2007,03:20 < Next Oldest | Next Newest >

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

Pages: (2) </ 1 [2] >/
reply to topic new topic new poll
Quick Reply: So, how do I save settings and stuff?

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