Forcing backup to other than hdb


Forum: DSL Embedded
Topic: Forcing backup to other than hdb
started by: pr0f3550r

Posted by pr0f3550r on Jan. 10 2006,19:46
I have managed to make qemu recognize a local directory on my usb flash drive as a virtual fat drive:
Code Sample
qemu\qemu.exe  -hdb qemu/harddisk -hdc fat:MYDSL


At boot time qemu recognizes this device ad hdc1.
After mounting it, from fluxbox, I launch the backup manager and ask it to backup all to hdc1.
Then I check with mc and all filea are properly mounted onto /dev/hdc1.

Proper shutdown. Proper restart.
Files are not there.
What am i doing wrong?

Posted by mikshaw on Jan. 10 2006,20:59
I'm not sure about this, but my guess is that the embedded system is trying to restore from hdb even though the backup is on hdc.  Maybe you need to edit the bat file with "restore=hdc1"
Posted by pr0f3550r on Jan. 10 2006,23:46
Quote (mikshaw @ Jan. 10 2006,15:59)
Maybe you need to edit the bat file with "restore=hdc1"

Can be, indeed I tried "mydsl=/dev/hdc". I'll try tomorrow.
The problem however is that the \mydsl\ directory on my drive is empty, even if the efeml shows the copied files. ????

Posted by mikshaw on Jan. 11 2006,03:21
A few things that probably should be mentioned...
1) backup/restore doesn't have much to do with mydsl.  While they have similar behavior, one does not affect the other.  If you're specifying mydsl packages, use "mydsl", but if you're specifying a backup, use "restore".
2) "hdc" is a physical hard drive, "hdc1" specifies a partition.  You'll always need to specify a partition when you're doing this sort of thing.
3) the "mydsl" boot option should not include "/dev".  The boot script  already assumes dev and mnt.  So it should be mydsl=hdc1

Posted by pr0f3550r on Jan. 11 2006,16:24
Found the culprit:
From < How to use floppy, CD-ROM and hard disk >:
Quote

3.3 Virtual VFAT
Virtual VFAT enables to access a host directory as a hard disk.
(... cut ...)
It is READ-ONLY. fatrw: prefix doesn't work now.


So, it is read-only!

No bother, I'll go on experimenting with the Gmail filesystem now...

Posted by joer on Jan. 11 2006,17:49
That's Qemu. It is a virtual machine!
hmmmm, how many times has that been said/posted. ???

Posted by pr0f3550r on Jan. 11 2006,19:19
So, how many times has it been posted/said that vfat is read-only in qemu?
True, qemu is a virtual machine but can read-write to image files, so my topic was not obvious.
Your RTFM approach is a bit out of place!

EDIT: I replied before checking your posting history and realizing you are a troll!
Sorry for the additional wasted bandwidth!

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.