Re: Accessing disks via their serial numbers.




Hello!

On Mon, 26 Jun 2006, Pawel Jakub Dawidek wrote:
When is it not acceptable ?

When last sector is already occupied.

And what is last sector occupied by ?

This is simlar situation to the most common problem with gmirror(8).
When people decide to put their file system onto a mirror, it will eat
partition's last sector, which isn't always safe.
When disk is already partitioned and file systems are there, you cannot
just take the last sector.

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, and then (if badsect has succeeded == sector isn't in FS's critical area) fsck will tell you whether this sector is free or is it used by another file. In the last case, fsck will tell you what file uses this sector (== multiple allocation in this file and in the just created BAD/xxx file) so you can just copy it's contents to another place and then remove it while keeping BAD/xxx.

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: memory allocation question
    ... > | problem is that seeking to the end of a file opened in binary mode ... Seeking is based on the notion that a file fits the UNIXesque ... The file system only tracked which sectors on the ... If part of a sector was empty, ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Very slow performance - HELP!!
    ... good spare sector, and then altering the hard drive's private sector ... extra head travel involved can make the slowdown palpable. ... try to do what the HD's internal defect management has already failed ... the affected file system - it's no longer hidden under the OS. ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Very slow performance - HELP!!
    ... good spare sector, and then altering the hard drive's private sector ... extra head travel involved can make the slowdown palpable. ... try to do what the HD's internal defect management has already failed ... the affected file system - it's no longer hidden under the OS. ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Accessing disks via their serial numbers.
    ... When people decide to put their file system onto a mirror, ... partition's last sector, which isn't always safe. ... When disk is already partitioned and file systems are there, ... If they can't adjust the filesystem size (either because the sector ...
    (freebsd-arch)
  • WinCE 4.2 hangs in FLASHDRV.DLL with TFAT and StrataFMD
    ... We still have a problem with a currupted TFAT partition on a StartaFlash ... FileSystem Starting - starting with clean file system ... FSVOL: Volume heap already initialized ... FLASHDRV.DLL:BuildupMappingInfo- Unable to map logical sector 0x0a490849 ...
    (microsoft.public.windowsce.platbuilder)