[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
fat_bootsector_read()
From: |
Matt Davis |
Subject: |
fat_bootsector_read() |
Date: |
Sun, 27 May 2007 16:25:49 -0400 |
While debugging ticket #14. Although I have yet to recreate the bug,
I started debugging why the fs name does not appear for certain
cfdisked drives.
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)
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.
address@hidden parted /dev/hda p
Model: QEMU HARDDISK (ide)
Disk /dev/hda: 85.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32.3kB 49.4MB 49.3MB primary
2 49.4MB 30.0GB 30.0GB primary
3 30.0GB 75.3GB 45.3GB primary ext2 boot
4 75.3GB 76.3GB 1028MB primary linux-swap(new)
-Matt (Enferex)
- fat_bootsector_read(),
Matt Davis <=