[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Datei partitionieren zur Verwendung in Xen



Am 2007-06-13 14:13:25, schrieb Goran:
> Ich erstelle eine Datei mittels dd ...
> 
> dd if=/dev/zero of=/tmp/xen-test-0.img bs=8225280 count=64

OK

> Dann partitioniere ich die Datei ...
> 
> fdisk xen-test-0.img

Denke nicht das dies geht.
Wie währe es mit:

   fdisk -C 1024 -H 255 -S 63 ./xen-test-0.img

Habe mal einen Test gemacht:

[michelle.konzack@michelle1:~] dd if=/dev/zero of=./xen-test-0.img bs=1024k count=256
[michelle.konzack@michelle1:~] fdisk -C 1024 -H 255 -S 63 ./xen-test-0.img
[michelle.konzack@michelle1:~] gzip <./xen-test-0.img >xen-test-0.img.gz
[michelle.konzack@michelle1:~] ls -Al ./xen-test-0.img*
-rw-r--r--  1 root root 268435456 Jun 15 20:37 ./xen-test-0.img
-rw-r--r--  1 root root    264338 Jun 15 20:41 ./xen-test-0.img.gz
[michelle.konzack@michelle1:~] fdisk -C 1024 -H 255 -S 63 -l ./xen-test-0.img
Disk ./xen-test-0.img: 0 MB, 0 bytes
255 heads, 63 sectors/track, 1024 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

           Device Boot      Start         End      Blocks   Id  System
./xen-test-0.img1   *           1         513     4120641   83  Linux
./xen-test-0.img2             514         770     2064352+  83  Linux
./xen-test-0.img3             771        1024     2040255   83  Linux

Funktioniert also (Sarge).

Ich hänge mal die ./xen-test-0.img.gz als attachment an uns melde mir
mal, ob es bei Dir dann auch funktioniert...

Thanks, Greetings and nice Day
    Michelle Konzack
    Systemadministrator
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSN LinuxMichi
0033/6/61925193    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature


Reply to: