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: mounting 2nd disk in embedded DSL, how do I write to a second mounted HD< Next Oldest | Next Newest >
jthorne Offline





Group: Members
Posts: 4
Joined: July 2006
Posted: July 29 2006,22:51 QUOTE

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





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: July 30 2006,17:26 QUOTE

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





Group: Members
Posts: 4
Joined: July 2006
Posted: July 30 2006,18:27 QUOTE

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





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: July 30 2006,23:34 QUOTE

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.


Edited by roberts on July 30 2006,23:55
Back to top
Profile PM WEB 
colonel_panic Offline





Group: Members
Posts: 36
Joined: Oct. 2005
Posted: July 31 2006,15:08 QUOTE

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?


--------------
I use DSL, SLAX, and Ubuntu Gutsy Gibbon. Sometimes XP, and hopefully NEVER Vista.
Back to top
Profile PM ICQ MSN 
9 replies since July 29 2006,22:51 < 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: mounting 2nd disk in embedded DSL

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