Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Swap was put in between the used parts of other of the disk. This was tricky to get right, since you had to map out the system.

... one of the classic mistakes, well after the era the author refers to here, was to overlap a swap and filesystem partition. Worked just fine until that last block of swap got used; then suddenly the filesystem's hosed... but it repaired ok and then was good for sometime, until the same would happen again.

gaps in between partitions could provide useful hidden space for all manner of things too.

Someone recently posted an overlapped filesystem stunt that was at the same time a valid FAT and ext2? volume; i think. Can't recall enough of it to find a link now.



I personally ran into this on a Sun workstation. The earlier versions of the "format" command didn't do the partitioning math for you. So you had to add cylinder numbers yourself. In calculating the start position of /usr, which came immediately after swap, someone had forgotten to carry a 1.

When displaying the partition table, if I remember right it only showed starting position and size. So to verify it was correct when looking at it, you had to do the math again, so it was difficult to spot the error.

But it had the exact symptoms you describe. The user complained that the system worked fine until they opened a lot of stuff, then it crashed.

The only reason I figured it out was that we had several identical machines (with identical disk drives), and I happened to run "df", and this machine had a suspiciously large amount of disk space. Space was always tight because disks were small (200-400MB), but none of the filesystems seemed close to filling up. I couldn't explain that, so I started scrutinizing very carefully, and then it hit me.


You're probably referring to this: https://news.ycombinator.com/item?id=22055145


that's the bunny, thanks very much




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: