Date: Fri, 11 Apr 2003 02:31:15 -0400 From: Rick Fournier <rick@rptn.net> To: freebsd-questions@freebsd.org Subject: Softupdate problems after crash! Message-ID: <200304110231.16272.rick@rptn.net>
next in thread | raw e-mail | index | archive | help
=2D----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=20 the background trying to fix stuff and booted ok... the next day I rebooted= =20 the system and during startup it brought be into single user mode telling m= e=20 to run fsck -y. That ran ok fixing a few things. then their was a=20 /usr/lost+found file so after a few reboots and all looked ok, I was not ab= le=20 to remove this directory. [2:09](root@zombie)[~]> rm -fr /usr/lost+found/ rm: /usr/lost+found/#1872205: Directory not empty rm: /usr/lost+found: Directory not empty [2:11](root@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@zombie)[~]> rm -dfr /usr/lost+found/ rm: /usr/lost+found/#1872205: Directory not empty rm: /usr/lost+found: Directory not empty [2:11](root@zombie)[~]> rmdir /usr/lost+found/ rmdir: /usr/lost+found/: Directory not empty I tried moving the dir but no luck... [2:13](root@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@zombie)[/usr]> find . -inum 1872205 =2E/ports/audio/mppdec/files =2E/lost+found/#1872205 find: fts_read: No such file or directory [2:20](root@zombie)[/usr]> rm -fr /usr/ports/audio/mppdec/files rm: /usr/ports/audio/mppdec/files: Directory not empty [2:20](root@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? =2D --=20 Rick Fournier (rick@rptn.net) PGP Key: 31846E22 (http://www.rptn.net/rick.asc) Key Fingerprint: B1E3 AE2E C867 F491 BF9F 9485 7818 122D 3184 6E22 =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+lmEzeBgSLTGEbiIRAtyAAJ4mcRz7UbvGj2pLyuLhmTL0MrIYigCg43gX 3tBXDvdABlHbiXx3BScu2v0=3D =3DU7l0 =2D----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304110231.16272.rick>