Re: Accessing disks via their serial numbers.



On Mon, 26 Jun 2006, Poul-Henning Kamp wrote:
I'm repeating my recent post to -current, just for the record... Actually,
there IS the way to tell whether the last sector is in use on UFS, and
reserve it from futher use by FS. It's badsect(8). Just declare the last
sector as bad, [...]

The problem with this approach is that if the user does a newfs and restore,
the information is not preserved.

The last sector must be re-marked as BAD after newfs and before restore, just
like actual BAD sector. I don't say that keeping the last sector out of use
is simple, but it's definitely possible (again, with UFS).

Sincerely, Dmitry
--
Atlantis ISP, System Administrator
e-mail: dmitry@xxxxxxxxxxxxxx
nic-hdl: LYNX-RIPE
_______________________________________________
freebsd-arch@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: gmirror on existing filesystem (was Fresh install on gmirrored disks?)
    ... All I know is that it thinks the last sector is ... available and may want to use it at some point getting EIO then. ... Now, whether the UFS knows it is smaller or not, I can't say, but the lower level of the OS is reporting a smaller media size. ... I presume that's where gmirror stores its data for whole-disk mirror... ...
    (freebsd-stable)
  • UFS fragments
    ... I have a few questions dealing with UFS and block fragments. ... sector 1 - GUID control data ... strip view finger mount fcsk more fcsk yes spray umount sleep ...
    (comp.unix.programmer)
  • Re: Accessing disks via their serial numbers.
    ... there IS the way to tell whether the last sector is in use on UFS, ... reserve it from futher use by FS. ... sector as bad, ...
    (freebsd-arch)
  • Re: gmirror on existing filesystem (was Fresh install on gmirrored disks?)
    ... All I know is that it (UFS) thinks the last sector is ... I wasn't suggesting you do it, i know there are people working on a new installer, and this has been mentioned already. ... Would creating a freebsd partition thats slightly smaller than the disk resolve the issue? ...
    (freebsd-stable)
  • Re: What is the MFT?
    ... reserve. ... When a bad sector is encountered, ... should also keep watch for sectors that take a while to read from. ... it didn't increase the reallocated sector count. ...
    (microsoft.public.windowsxp.general)