Subject: LFS panic
To: None <>
From: Julio Merino <>
List: current-users
Date: 09/04/2002 13:07:46

I have a 3.2GB drive with a single partition formated with LFS, using the
recommended values in the manpage, 8192/1024/7. Look:

/dev/wd1e on /sources type lfs (nosuid, nodev, local)
Filesystem  1K-blocks     Used     Avail Capacity  Mounted on
/dev/wd1e     2873867  2124390    462091    82%    /sources

The contents of the partition are (you see, only lots of small source

/home/jmmv$ ls /sources
distfiles       htdocs          lost+found      src             xsrc
doc             ifile           pkgsrc          src-1.6

Well, I built xsrc (which placed all the object files inside /sources/xsrc).
Yesterday I went to /sources/xsrc and did 'make cleandir'. Haha, the kernel

lfs_truncate: segment 216159 short by 8192
panic: lfs_truncate: negative bytes

I tried 'sync' from ddb, and it COMPLETLY hangs. It says 'syncing disks...'
and it stays there, no possibility to reboot. I think I can't get a core...

Is this panic a known issue? Maybe I need to reformat the drive using
the same bsize and fsize? (i.e. 8192/8192 or 4096/4096...)

Thank you

HispaBSD admin -
For the developer -
Julio Merino <>