linux user group brescia

immagine del castello

Archivio della mailing list

File system check all'avvio

marco ghidinelli marcogh a linux.it
Mar 19 Ago 2003 10:20:12 UTC
On Tue, Aug 19, 2003 at 11:21:23AM +0200, Andrea Occhi wrote:
> 
> forcefsck non lo trova, ho provato sia cercandolo con la shell che mi
> da, che con init=/bin/sh.
> il messaggio esatto ?:
> 
> Setting hostname desktop	[  OK  ]
> modprobe: Can't open dependecies file
> /lib/modules/2.4.18-24.8.0/modules.dep (No such file or directory)
> Checking root file system
> fsck.ext3: Is a directory/:
> The superblock could not be read or does not describe a correct ext2
> filesystem. If the device is valid end 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 8139 <device>
> 
> while trying to open /
>                             [FAILED]
> 
> *** An error occurred during the file system check.
> *** Dropping you to a shell; the system will reboot
> *** when you leave the shell.
> Give root password for maintenance
> (or type Control-D for normal startup):

che cosa hai scritto nel file fstab?

in che partizione hai la root del filesystem?

la device di root che passi al kernel  (attraverso lilo) in fase di boot
deve essere uguale alla device specificata in fstab come root.

verifica questo, altrimenti avrai sempre casini.

> Se faccio Control-D mi si riavvia e mi si ferma ancora tale e quale.

allora: i file ci sono ma probabilmente fstab va a prendere in fstab dei
dati sbagliati.

> Analizzando il messaggio il primo problema ? la fantomatica assenza del
> file modules.dep, ma

quello e' un'errore dovuto al fatto che non riesce a montare i dischi in
scrittura, penso...

> (Repair filesystem) # ls -l /lib/modules/2.4.18-24.8.0/
> ...
> -rw-r--r-- 1 root root 101165 dic 7 2002 modules.dep
> ...

sicuro che sia lo stesso kernel????

se fai 'uname -r' dovrebbe darti 2.4.18-24.8.0 .. verificalo.

> Altro problema ? che fsck.ext3 ? una directory. Ma a me non sembra visto
> che
> (Repair filesystem) # ls -l /sbin
> ...
> -rwxr-xr-x 3 root root 534400 ago 11 2002 fsck.ext2
> -rwxr-xr-x 3 root root 534400 ago 11 2002 fsck.ext3
> ...
> 
> Inoltre 
> (Repair filesystem) # fsck /dev/hda2 (che ? la partizione di root)
> fsck 1.27 (8-Mar-2002)
> e2fsck 1.27 (8-Maar-2002)
> /: clean, 100402/624000 files, 873625/1247045 blocks

controlla quello che hai scritto in fstab...

> 
> 
> Spero di essere stato abbastanza completo nella descrizione dei miei
> tentativi.
> Se qualcuno ha una idea...
> 
> Ciao
> Andrea
> 
> PS. Il file system l'avevo formattato come ext3

quello non c'entra: ext2 e ext3 sono lo stesso formato.

-- 
BOFH excuse #422:

Someone else stole your IP address, call the Internet detectives!



Maggiori informazioni sulla lista Lug