From: octane indice <octane@alinto.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] fdisk give wrong number for losetup
Date: Thu, 07 Jul 2005 12:36:08 +0200 [thread overview]
Message-ID: <1120732568.42cd0598078bd@webmail.alinto.com> (raw)
Hello
I have some trouble using losetup to mount partitions
from the host.
root@zipslack:/usr/src/qemu-test# fdisk -l zipslack.img
Vous devez initialiser cylindres.
Vous pouvez faire cela à partir du menu des fonctions additionnelles.
Disque zipslack.img: 0 Mo, 0 octets
16 têtes, 63 secteurs/piste, 0 cylindres
Unités = cylindres de 1008 * 512 = 516096 octets
Périphérique Amorce Début Fin Blocs Id Système
zipslack.img1 1 49 24664+ 82 Linux swap
zipslack.img2 50 253 102816 83 Linux
zipslack.img3 254 609 179424 83 Linux
root@zipslack:/usr/src/qemu-test#losetup -f
/dev/loop1
root@zipslack:/usr/src/qemu-test# losetup -o $((50*512)) /dev/loop1 zipslack.img
root@zipslack:/usr/src/qemu-test# mount -t ext2 /dev/loop1 /mnt/hd
mount: wrong fs type, bad option, bad superblock on /dev/loop1,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
root@zipslack:/usr/src/qemu-test# sfdisk zipslack.img
AVERTISSEMENT: zipslack.img n'est pas un périphérique fonctionnant par blocs
Disque zipslack.img: ne peut obtenir la géométrie
Disque zipslack.img: 0 cylindres, 0 têtes, 0 secteurs/piste
Vieille situation:
AVERTISSEMENT: la table de partitions semble avoir été créée
pour C/H/S=*/16/63 (au lieu de 0/0/0).
Pour ce rapport, la géométrie suivante sera assumée.
Unités= cylindres de 516096 octets, blocs de 1024 octets, décompte à partir de 0
Périph Amor Début Fin #cyls #blocs Id Système
zipslack.img1 0+ 48 49- 24664+ 82 Linux swap
zipslack.img2 49 252 204 102816 83 Linux
zipslack.img3 253 608 356 179424 83 Linux
zipslack.img4 0 - 0 0 0 Vide
L'entrée utiliser un des formats suivants; les champs absents prennent
la valeur par défaut:
<début> <taille> <type [E,S,L,X,hex]> <amorçable [-,*]> <c,h,s> <c,h,s>
Habituellement vous n'avez besoin que de spécifier:
<début> et <taille> (et parfois <type>).
zipslack.img1 :
root@zipslack:/usr/src/qemu-test#
root@zipslack:/usr/src/qemu-test# losetup -f
/dev/loop2
root@zipslack:/usr/src/qemu-test# losetup -o $((49*516096)) /dev/loop2
zipslack.img
root@zipslack:/usr/src/qemu-test# mount -t ext2 /dev/loop2 /mnt/hd/
root@zipslack:/usr/src/qemu-test# ls /mnt/hd/
bin/ cdrom/ etc/ home/ lib/ mnt/ root/ tmp/ var/
boot/ dev/ faq.txt install/ lost+found/ proc/ sbin/ usr/ vmlinuz
root@zipslack:/usr/src/qemu-test#
And now, my questions: why this?
fdisk doesn't give the good values?
what's this number given by sfdisk: 516096 ?
thanks
---------------------------------------------
Etes vous un consom'Acteur ? Toutes les saveurs équitables sont sur http://www.epicerie-equitable.com
next reply other threads:[~2005-07-07 10:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-07 10:36 octane indice [this message]
2005-07-07 13:10 ` [Qemu-devel] fdisk give wrong number for losetup Jim C. Brown
2005-07-10 17:01 ` octane
2005-07-11 2:15 ` Henrik Nordstrom
2005-07-10 5:16 ` Henrik Nordstrom
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1120732568.42cd0598078bd@webmail.alinto.com \
--to=octane@alinto.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.