Pagina 1 di 1

Aggiustare il filesystem?

Inviato: sabato 26 luglio 2008, 18:06
da Conformista informatico
Ogni tanto il portatile si blocca all avvio con un errore di file sistem, da quando ho interrotto bruscamente il lavoro di copiatura di gparted nella /home mentre facevo delle partizioni, allora ho trovato di aiuto in rete un comando sudo e2fsck -p -f -v /dev/......, ho avviato una live e il risultato e questo sotto

ubuntu@ubuntu:~$ sudo e2fsck -p -f -v /dev/sda6

    3279 inodes used (0.35%)
    143 non-contiguous inodes (4.4%)
        # of inodes with ind/dind/tind blocks: 180/51/0
  257735 blocks used (6.99%)
      0 bad blocks
      1 large file

    2209 regular files
    1040 directories
      0 character device files
      0 block device files
      0 fifos
      0 links
      20 symbolic links (20 fast symbolic links)
      1 socket
--------
    3270 files
ubuntu@ubuntu:~$ sudo e2fsck -p -f -v /dev/sda4

  143269 inodes used (22.36%)
    968 non-contiguous inodes (0.7%)
        # of inodes with ind/dind/tind blocks: 8192/67/0
  989116 blocks used (38.60%)
      0 bad blocks
      1 large file

  112874 regular files
  14416 directories
      44 character device files
      64 block device files
      5 fifos
    6267 links
  15698 symbolic links (14826 fast symbolic links)
    159 sockets
--------
  149527 files
ubuntu@ubuntu:~$

vorrei sapere, come faccio ora a riparare i file non contigui e altro se necessita?

Re: Aggiustare il filesystem?

Inviato: sabato 26 luglio 2008, 18:28
da simo91
da live

fdisk /dev/sdX

Re: Aggiustare il filesystem?

Inviato: sabato 26 luglio 2008, 18:43
da Conformista informatico
simo91 ha scritto: da live

fdisk /dev/sdX
ecco fatto

ubuntu@ubuntu:~$ sudo fdisk /dev/sda4

The number of cylinders for this disk is set to 1276.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
  (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): m
Command action
  a  toggle a bootable flag
  b  edit bsd disklabel
  c  toggle the dos compatibility flag
  d  delete a partition
  l  list known partition types
  m  print this menu
  n  add a new partition
  o  create a new empty DOS partition table
  p  print the partition table
  q  quit without saving changes
  s  create a new empty Sun disklabel
  t  change a partition's system id
  u  change display/entry units
  v  verify the partition table
  w  write table to disk and exit
  x  extra functionality (experts only)

Command (m for help):

e ora?

Re: Aggiustare il filesystem?

Inviato: sabato 26 luglio 2008, 18:45
da simo91
scusa ho detto una boiata assurda, sono un pò stanco ._.

fsck /dev/sdX

Re: Aggiustare il filesystem?

Inviato: sabato 26 luglio 2008, 20:21
da Conformista informatico
simo91 ha scritto: scusa ho detto una boiata assurda, sono un pò stanco ._.

fsck /dev/sdX
fatto....

ubuntu@ubuntu:~$ sudo fsck /dev/sdx
fsck 1.40.2 (12-Jul-2007)
e2fsck 1.40.2 (12-Jul-2007)
fsck.ext2: No such file or directory while trying to open /dev/sdx

The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193

ubuntu@ubuntu:~$ sudo fsck /dev/sda6
fsck 1.40.2 (12-Jul-2007)
e2fsck 1.40.2 (12-Jul-2007)
/dev/sda6: clean, 3284/923888 files, 257119/3688917 blocks
ubuntu@ubuntu:~$ sudo fsck /dev/sda4
fsck 1.40.2 (12-Jul-2007)
e2fsck 1.40.2 (12-Jul-2007)
Superblock last mount time is in the future.  Fix? yes

/dev/sda4: clean, 143271/640848 files, 989124/2562367 blocks
ubuntu@ubuntu:~$

Re: Aggiustare il filesystem?

Inviato: lunedì 27 aprile 2009, 20:31
da donPi
Immagino sia stato risolto.. L'autore del 3D metta [Risolto] nel titolo..  ;)