Softupdate problems after crash!

Rick Fournier rick at rptn.net
Thu Apr 10 23:31:22 PDT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello all,

After a crash caused by a power failure on freebsd 5.0-RELEASE-p5, fsck ran in 
the background trying to fix stuff and booted ok... the next day I rebooted 
the system and during startup it brought be into single user mode telling me 
to run fsck -y. That ran ok fixing a few things. then their was a 
/usr/lost+found file so after a few reboots and all looked ok, I was not able 
to remove this directory.

[2:09](root at zombie)[~]> rm -fr /usr/lost+found/
rm: /usr/lost+found/#1872205: Directory not empty
rm: /usr/lost+found: Directory not empty

[2:11](root at zombie)[~]> ll -aoR /usr/lost+found/
total 8
drwx------   3 root  wheel  - 512 Apr 11 02:00 #1872205/
drwx------   4 root  wheel  - 512 Apr 10 21:52 ./
drwxr-xr-x  20 root  wheel  - 512 Apr 10 02:18 ../

/usr/lost+found/#1872205:
total 4
drwx------  3 root  wheel  - 512 Apr 11 02:00 ./
drwx------  4 root  wheel  - 512 Apr 10 21:52 ../

[2:12](root at zombie)[~]> rm -dfr /usr/lost+found/
rm: /usr/lost+found/#1872205: Directory not empty
rm: /usr/lost+found: Directory not empty

[2:11](root at zombie)[~]> rmdir /usr/lost+found/
rmdir: /usr/lost+found/: Directory not empty

I tried moving the dir but no luck...

[2:13](root at zombie)[/usr]> mv lost+found /home/
mv: lost+found/#1872205: Directory not empty
mv: lost+found: Directory not empty
mv: /bin/rm: terminated with 1 (non-zero) status: Cross-device link

[2:18](root at zombie)[/usr]> find . -inum 1872205
./ports/audio/mppdec/files
./lost+found/#1872205
find: fts_read: No such file or directory

[2:20](root at zombie)[/usr]> rm -fr /usr/ports/audio/mppdec/files
rm: /usr/ports/audio/mppdec/files: Directory not empty

[2:20](root at zombie)[/usr]> ll -Raio /usr/ports/audio/mppdec/files
total 4
1872205 drwx------  3 root  wheel  - 512 Apr 11 02:00 ./
1871175 drwxr-xr-x  1 root  wheel  - 512 Apr 11 02:00 ../

Is there any way I can fix this without having to newfs this filesystem?

- -- 
Rick Fournier (rick at rptn.net)
PGP Key: 31846E22 (http://www.rptn.net/rick.asc)
Key Fingerprint: B1E3 AE2E C867 F491  BF9F 9485 7818 122D 3184 6E22
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE+lmEzeBgSLTGEbiIRAtyAAJ4mcRz7UbvGj2pLyuLhmTL0MrIYigCg43gX
3tBXDvdABlHbiXx3BScu2v0=
=U7l0
-----END PGP SIGNATURE-----



More information about the freebsd-questions mailing list