The GNU of Life, the Universe and Everything

October 16, 2007

how to fix a mount point if it fails in desktopbsd

Filed under: desktopbsd — Tags: , , , , , — Pedro Carvalho @ 8:33 pm

Sometimes i get the "mount: operation not permitted" error message if i want to mount a partition on the desktopbsd laptop (codenamed jaguar).

If i look at dmesg i’ll see that it’s failing due to the partition not being clean, something like:

"WARNING: R/W mount denied. Filesystem is not clean - run fsck"

Most common cause is a fault in previous umount’ing (last night it drown out of battery).

Did the obvious thing, and fsck ( # fsck ) showed what was wrong.

EDIT: after running fsck, you’ll have to run it again  on the specific partition, until fsck marks the partition as clean.

So, i’ve also edited /etc/fstab and changed the 6th field for that mount point to 2 (was 0). So, on the next boot, it will check for consistency and if its clean it will skip the full verification. Which in my case wasn’t and took a couple of minutes to clean it.

from man fstab

The sixth field, (fs_passno), is used by the fsck(8) program to determine the order in which file system checks are done at reboot time.[...]

If the sixth field is not present or is zero, a value of zero is returned and fsck(8) will assume that the file system does not need to be checked.

as always, there’s a nice article on this in the free bsd diary

On a complementing note, it was nice to note that there are bz2 of previous messages from the system (the messages file), a dmesg.today and a dmesg.yesterday. I have to make my gentoo do something similar if i ever want to find out what is causing the kernel panics.

October 11, 2007

long string : kernel_downgrade

Filed under: desktopbsd, kde4 — Tags: — Pedro Carvalho @ 5:25 am

i’ve downgraded to 2.6.21-ck2 (yes, thats the Con Kolivas patchset) which means no more happy daily panicking. AND i’ve almost burned a cd with k3b!! halted at 68% and gave to the system hiccups. Real hiccups.. really. For every 2-3 seconds the system halted for some 5-6 seconds. Which made writing so much fun! i was able to write a short “HALP” to a friend of mine and he ofc, knew what to do: “kill him”. Well not his exact words but more of “killall -9 k3b” and “been there done that”. Great. thx ;)

/me ponders if he should downgrade to 2.6.17. been ages with it and i could actually burn cds and dvds. when all free space is left is (df -h) 2.5 gb and having to fix the partition tables on the desktopBSD laptop real soon, burning cds and dvds is somewhat useful.

And my 820gb ordered hard drives (with the 2 gb of ram ) are still on hold :/

BTW: i’ve ressusciteded the laptop and proceeded with the kde4 builds. Failed but i hope to get it working this weekend. The laptop is to be returned to the Departement of Informatics of my uni. next week. I hope they don’t give it the electroshocks and let me have it for one more year. Sooo useful “to work” on those days when i don’t want to leave the premises of my bed. really. bed + laptop = work.

BTW BTW: this editor is teh sux with konqueror. I have to use firefox to write all my posts on wordpress. He doesn’t delete, no new lines, no nothing. :(

I’m not going to touch that little handle to stretch this editor either! last time i tried that i got a kernel panic. I don’t mind using all five lines in it. as if i was 1996 in mobile phones. cute.

Theme: Shocking Blue Green. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.