[lkml]   [2000]   [Sep]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: reading 1 hardsector size, not one block size
On Fri, Sep 29, 2000 at 05:36:48PM -0500, wrote:

> > >But the question was about reading from disk, not about reading
> > >from partition.

> Actually, that's next. In EFI, all partitions have a starting LBA and
> ending LBA on the disk. So, it would be easy to have an "odd sized"
> partition. In my current case, I would care about reading/writing to a FAT
> file system on that partition, or potentially any type file system. My
> fdisk enhancement will guarantee that only "even sized" partitions are
> created, but if someone else's partitioning program weren't so careful, I'd
> still have to live with the consequences.

I don't think there is any reason for such a restriction.
If you happen to make a partition with an odd number of sectors
and someone creates a filesystem there with 2-sector blocks
then the last sector will not be used by the filesystem.
Nothing wrong there, happens all the time.

> If I know a partition has a FAT file system on it, may I leave the block
> size == hard sector size, and mount it?


(Especially if your hard sector size is 512 bytes.
I have seen people complain about 2048-byte hard sector size handling.)

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:38    [W:0.082 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site