[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Controllare l'hard disk e altro hardware



On Mon, May 03, 2004 at 01:58:24AM +0200, gandu wrote:
> Ciao, 
Hello!

> Ho un notebook Asus e non tutto funziona benissimo e volevo controllare lo 
> stato dell'hard disk e di quello che si puo'...

Mmm... per quanto riguarda l'hard disk credo che fsck potrebbe fare al caso
tuo, cito  un frammento della man page:

FSCK(8)                                                   FSCK(8)


NAME
       fsck - check and repair a Linux file system

SYNOPSIS
       fsck  [  -AVRTNP  ]  [  -s  ] [ -t fstype ] [ fs-options ]
       filesys [ ... ]

DESCRIPTION
       fsck is used to check and optionally repair a  Linux  file
       system.    filesys   is   either  the  device  name  (e.g.
       /dev/hda1, /dev/sdb2) or the mount point  (e.g.  /,  /usr,
       /home)  for  the  file system.  If this invocation of fsck
       has several filesystems on different physical disk  drives
       to  check,  then  fsck  will  try to run them in parallel.
       This reduces the total amount time it takes to  check  all
       of the filesystems, since fsck takes advantage of the par­
       allelism of multiple disk spindles.

       The exit code returned by fsck is the sum of the following
       conditions:
            0    - No errors
            1    - File system errors corrected
            2    - System should be rebooted
            4    - File system errors left uncorrected
            8    - Operational error
            16   - Usage or syntax error
            128  - Shared library error
       The  exit  code returned when all file systems are checked
       using the -A option is the bit-wise OR of the  exit  codes
       for each file system that is checked.

       In  actuality,  fsck is simply a front-end for the various
       file system checkers (fsck.fstype) available under  Linux.
       The  file system-specific checker is searched for in /sbin
       first, then in /etc/fs and /etc, and finally in the direc­
       tories  listed  in  the PATH environment variable.  Please
       see the file system-specific checker manual pages for fur­
       ther details.

[...]

Poi per ottimizzare il tuo hard disk potresti usare hdparm, naturalmente e'
ormai di rito: man hdparm ... :-)

Anche in Linux c'e' il "famigerato" defrag ma e' veramente poco usato
poiche', normalmente, la percentuale di frammentazione del filesystem, dopo
diverso tempo, si assesta sul 5% e ci rimane ancora per molto tempo ...
Comunque, riguardo l'uso di defrag consigliano sempre di fare un backup e
quindi e' indispensabile un bel man defrag .... :-)

Au Revoire
Hugh Hartmann




Reply to: