Mailinglist Archive: opensuse (2212 mails)

< Previous Next >
Re: [opensuse] Reading past end of disk? [Was: Bad Sector remapping?]
  • From: Randall R Schulz <rschulz@xxxxxxxxx>
  • Date: Thu, 27 Sep 2007 16:12:00 -0700
  • Message-id: <200709271612.00710.rschulz@xxxxxxxxx>
On Thursday 27 September 2007 16:03, Greg Freemyer wrote:
> Wait a second...
>
> Per hdparm -I /dev/sda, my drive only has 312518818 sectors, so why
> is Linux even trying to read sector 312518818?

Linux accepts the size you specify when you format a file system. When 
doing so, it is unlikely to need to read that sector, only include it's 
index in a free block. Only when the demand for free blocks causes that 
block to be allocated will the drive be asked to read or write it.


> I'm going to fsck my root partition, since my boot is failing so
> early on.

Unless you perform a check that includes a scan of free sectors (*), 
this is not necessarily going to confirm the accessibility of every 
sector in the free list.

(*) Assuming there is such a check option for the file system in 
question.


> i.e. Sector 312518818 is one past the end of the drive.
> (0-312518817 is the valid range I assume.)
>
> FYI: smartctl is showing zero remapped sectors.
>
> Greg


Randall Schulz
-- 
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References