bug-parted
[Top][All Lists]
Advanced

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

Re: fat_bootsector_read()


From: Matt Davis
Subject: Re: fat_bootsector_read()
Date: Mon, 28 May 2007 10:29:13 -0400

On 5/28/07, Otavio Salvador <address@hidden> wrote:
"Matt Davis" <address@hidden> writes:

> fat_bootsector_read() returns all zeros to the buffer.
> The _device_seek() is seeking to the proper location, and there is
> actually data in that location, which I have confirmed via 'dd' (with
> appropriate bootsector signature)

This paragraph isn't clear to me.

When you say that there is actually data you means bootsector
signature or ordinary data?

dd reports a proper boot sector signature.  Parted is reporting that
that same region is all 0x0.


> Is this some oddity with qemu and virtual disks?  Fdisk and cfdisk
> read the partition's boot sector fine.  It seeks to sector 63, sucks
> in 512b of bootsector data.  And read returns sucessfully (512b read).
> The data it copies into diobuf is 0x0 for 512 bytes.  I do not have a
> spare drive lying around, (although I can try to pick one up this
> week) to compare against.  Sounds to me if qemu is doing something
> funky.  But that's just some speculation right now.  Although, parted
> does read other partitions fine.

dd returns only 0x0?

Nope, dd is reporting appropriate data, while parted says a successful
read of all 512 bytes is all 0x0.

-Matt


--
        O T A V I O    S A L V A D O R
---------------------------------------------
 E-mail: address@hidden      UIN: 5906116
 GNU/Linux User: 239058     GPG ID: 49A5F855
 Home Page: http://otavio.ossystems.com.br
---------------------------------------------
"Microsoft sells you Windows ... Linux gives
 you the whole house."





reply via email to

[Prev in Thread] Current Thread [Next in Thread]