First of all, I'm not an English speaker, so sorry for my bad English.
Here is the case:
This machine had a corrupted 10 GB partition and it had another 117 GB partition free, so I removed this bigger partition (with gpart(8)) and created two partitions: one of them with 15 GB and the other with 102 GB and then dump(8)ed the corrupted partition and restore(8)d it to the 15 GB one.
But I have done something wrong, as it seems, because the 15 GB partition is shown as a 117 GB partition on df(1). gpart(8) shows the right size, though. I didn't run newfs(8) on the new 15 GB partition before the dump(8) restore(8) procedure (I don't know if this is the problem).
Now, the system doesn't boot normally (but if I just exit single user mode it loads ok) because this partition is reported as corrupt (even though it's not) and when I run fsck_ufs(8) (with -b 160, otherwise it doesn't work) it finds a bunch of invalid bad blocks (at the 100 GB final part of the disk (of course, it doesn't exist!)).
I searched all over the Internet and I was unable to find a way to fix it without reformatting it. Maybe you can help. Thanks.
Here is the case:
This machine had a corrupted 10 GB partition and it had another 117 GB partition free, so I removed this bigger partition (with gpart(8)) and created two partitions: one of them with 15 GB and the other with 102 GB and then dump(8)ed the corrupted partition and restore(8)d it to the 15 GB one.
But I have done something wrong, as it seems, because the 15 GB partition is shown as a 117 GB partition on df(1). gpart(8) shows the right size, though. I didn't run newfs(8) on the new 15 GB partition before the dump(8) restore(8) procedure (I don't know if this is the problem).
Now, the system doesn't boot normally (but if I just exit single user mode it loads ok) because this partition is reported as corrupt (even though it's not) and when I run fsck_ufs(8) (with -b 160, otherwise it doesn't work) it finds a bunch of invalid bad blocks (at the 100 GB final part of the disk (of course, it doesn't exist!)).
I searched all over the Internet and I was unable to find a way to fix it without reformatting it. Maybe you can help. Thanks.