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
 

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

reply to topic new topic new poll
Topic: Making RO files Writable, KNOPPIX/KNOPPIX< Next Oldest | Next Newest >
desnotes Offline





Group: Members
Posts: 120
Joined: Dec. 2005
Posted: May 20 2006,18:30 QUOTE

For experimental purposes only I would like to be able to boot the KNOPPIX/KNOPPIX into write mode in order to test some tweaks on some of the bash scripts. Is this possible? Something easier than remastering the whole distribution just to test out a few lines in a bash script. Installing to the HD won't work because I want to add tweaks when checkbootparam="qemu"

Any ideas?

Thanks,

desNotes
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: May 20 2006,19:45 QUOTE

KNOPPIX is a compressed iso file, and can't be mounted read-write (as far as I know).  The ISO9660 filesystem is read-only by design.

Depending on whether or not the tweaks must be done during the early stages of the init process, you could use a knoppix.sh script to change the behavior of DSL at runtime.  The knoppix.sh script, if it exists in KNOPPIX or a specified location, runs at the end of knoppix-autoconfig (before the DSL-specific stuff is done).


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
desnotes Offline





Group: Members
Posts: 120
Joined: Dec. 2005
Posted: May 20 2006,20:09 QUOTE

What I am hoping to do is to try tweaking the  knoppix-autoconfig script when used in Qemu. Qemu emulates certain hardware so what I want to do is have the autoconfig script detect what qemu is emulating rather than searching to find the right match.

Going through the excercise will help me get familiar with bash, the boot up process and if I am lucky, shave off a few seconds of the boot process.

If I can make the KNOPPIX file write enabled I will need to set up a process where I can make the change, compress the diectory and then copy it over. Not nearly as fast but...

thanks,

desNotes
Back to top
Profile PM 
pr0f3550r Offline





Group: Members
Posts: 378
Joined: Dec. 2005
Posted: May 21 2006,10:30 QUOTE

Desnotes,

I am using the iso rather than the KNOPPIX embedded, but I think the concept is similar.

In my case KNOPPIX is read only but root is rw:

Code Sample
dsl@box:~$ mount
/dev/root on / type ext2 (rw)
/dev/scd0 on /cdrom type iso9660 (rw)
/dev/cloop on /KNOPPIX type iso9660 (ro)
/ramdisk on /ramdisk type tmpfs (rw,size=98868k,size=94665k)


Most of what is in KNOPPIX is in / :
Code Sample
dsl@box:~$ diff /KNOPPIX/ /  
Only in /KNOPPIX/: .rr_moved
Only in /: KNOPPIX
Common subdirectories: /KNOPPIX/cdrom and /cdrom
Common subdirectories: /KNOPPIX/dev and /dev
Common subdirectories: /KNOPPIX/etc and /etc
Only in /KNOPPIX/: floppy
Common subdirectories: /KNOPPIX/home and /home
Common subdirectories: /KNOPPIX/mnt and /mnt
Only in /KNOPPIX/: none
Common subdirectories: /KNOPPIX/opt and /opt
Common subdirectories: /KNOPPIX/proc and /proc
Only in /: ramdisk
Common subdirectories: /KNOPPIX/root and /root
Only in /: sys
Common subdirectories: /KNOPPIX/var and /var


IMHO you could work on the root filesystem as a temporay sandbox, if this is what you want.


--------------
THE QEMU FORUM: http://qemu.dad-answers.com/index.php

QEMU ON WINDOWS: http://www.h7.dion.ne.jp/~qemu-win/

How to use floppy, CD-ROM and hard disk - http://www.h7.dion.ne.jp/~qemu-win/HowToFloppyCdrom-en.html

How to use network - http://www.h7.dion.ne.jp/~qemu-win/HowToNetwork-en.html
Back to top
Profile PM 
3 replies since May 20 2006,18:30 < Next Oldest | Next Newest >

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

 
reply to topic new topic new poll
Quick Reply: Making RO files Writable

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