Monday, January 19, 2009

attempt to access beyond end of device

I ran across this error the other day and couldn't figure out what it meant. For starters, it was talking about a partition that wasn't in use (/dev/hda3). Google has a lot of information, but none of it solved my problem. So I thought I'd share.

First, the error message:

attempt to access beyond end of device
hda3: rw=16, want=8, limit=2
Read-error on swap-device (3:3:0)

Some background: I recently changed my partition table. My old swap partition was /dev/hda3. The new one is /dev/hda5. But /dev/hda3 is mentioned no where in /etc/fstab, so who is telling the kernel anything about the old swap partition?

Oh, that's right, I was. It's in the kernel settings themselves. I don't usually enable the hibernation power controls on linux cause I haven't had good results, but I thought I might try it out someday, so I checked that box in the kernel setup (Power management options - Hibernation). Now we have a new question: what should be the default resume partition? And there was my problem; I hadn't changed /dev/hda3 to /dev/hda5.

A quick recompile and reboot and no more error message.

1 comment:

  1. El Cajon Casino & Hotel Map - Casinos in San Diego
    Find your 대전광역 출장안마 way around the casino, find where everything is located with Mapyro's interactive 하남 출장샵 map. Nearby Casinos: El Cajon Casino Resort, 파주 출장안마 Red Rock 김포 출장마사지 Casino, 동해 출장샵

    ReplyDelete