From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: linux-2.4.29-xenU and blockdev --getss Date: Sat, 12 Feb 2005 21:31:18 +0200 Message-ID: <20050212193118.GH1561@edu.joroinen.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Sender: xen-devel-admin@lists.sourceforge.net Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org Hi! When I run blockdev --getss on Xen 2.0 Linux-2.4.29-xenU I get this: $ blockdev --getss /dev/sda4 -1 Why sectorsize is not 512? $ blockdev --getsize /dev/sda4 2097152 The size of sda4 is 1 GB, so the sectorsize has to be 512. xenU sda4 is lvm-volume in dom0.=20 blockdev on dom0: $ blockdev --getss /dev/vg0/swap_sda4 512 $ blockdev --getsize /dev/vg0/swap_sda4 2097152 I'm asking this because I'm having problem using loopback-mounts in xenU using those sd-devices.. mount/loop calculates the device size two times = too big.. and that of course causes problems when trying to access the non-existing second-half of the loopback-mounted sda4-device. -- Pasi K=E4rkk=E4inen =20 ^ . . Linux / - \ Choice.of.the .Next.Generation. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click