LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-20-2003, 10:25 PM   #1
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Attempting to access beyond end of device?


Hello, I am not sure if this is actually a security question, however I haven't had this problem before opening my box up to the internet as a webserver/ftp server. For the last 2 or 3 mornings I've woken up to my box creaping. It's moving very slow, and there is intermittent hard drive churning, very slow. A reboot fixes it, however, here's what /var/log/messages has to say about it:
Code:
Jan 20 08:32:40 masterc kernel: attempt to access beyond end of device
Jan 20 08:32:40 masterc kernel: 03:01: rw=0, want=883664940, limit=4192933
Jan 20 08:32:40 masterc kernel: attempt to access beyond end of device
Jan 20 08:32:40 masterc kernel: 03:01: rw=0, want=150237860, limit=4192933
Jan 20 08:32:40 masterc kernel: attempt to access beyond end of device
Jan 20 08:32:40 masterc kernel: 03:01: rw=0, want=150237861, limit=4192933
Jan 20 08:32:40 masterc kernel: attempt to access beyond end of device
Jan 20 08:32:40 masterc kernel: 03:01: rw=0, want=150237861, limit=4192933
Jan 20 08:32:40 masterc kernel: attempt to access beyond end of device
Jan 20 08:32:40 masterc kernel: 03:01: rw=0, want=150237862, limit=4192933
Jan 20 08:32:40 masterc kernel: attempt to access beyond end of device
Jan 20 08:32:40 masterc kernel: 03:01: rw=0, want=150237862, limit=4192933
Jan 20 08:32:40 masterc kernel: attempt to access beyond end of device
Jan 20 08:32:40 masterc kernel: 03:01: rw=0, want=150237863, limit=4192933
Jan 20 08:32:40 masterc kernel: attempt to access beyond end of device
Jan 20 08:32:40 masterc kernel: 03:01: rw=0, want=150237863, limit=4192933
Jan 20 08:32:40 masterc kernel: attempt to access beyond end of device
Jan 20 08:32:40 masterc kernel: 03:01: rw=0, want=150237864, limit=4192933
Jan 20 08:32:50 masterc kernel: attempt to access beyond end of device
Jan 20 08:32:50 masterc kernel: 03:01: rw=0, want=420933836, limit=4192933
Jan 20 08:32:50 masterc kernel: attempt to access beyond end of device
Jan 20 08:32:50 masterc kernel: 03:01: rw=0, want=420933837, limit=4192933
Jan 20 08:32:50 masterc kernel: attempt to access beyond end of device
Jan 20 08:32:50 masterc kernel: 03:01: rw=0, want=420933837, limit=4192933
This repeats for a good 1000+ messages until the reboot. Now I have found some scary info somewhere in the mix of these messages:
Code:
Jan 19 09:17:18 masterc kernel: attempt to access beyond end of device
Jan 19 09:17:18 masterc kernel: 03:01: rw=0, want=115139139, limit=4192933
Jan 19 09:17:18 masterc kernel: attempt to access beyond end of device
Jan 19 09:17:18 masterc kernel: 03:01: rw=0, want=115139140, limit=4192933
Jan 19 09:18:22 masterc sshd[713]: Accepted password for masterc from 198.97.167
.88 port 2742 ssh2
Jan 19 09:18:23 masterc sshd[714]: Could not reverse map address 198.97.167.88.
Jan 19 09:47:17 masterc -- MARK --
Jan 19 10:07:17 masterc -- MARK --
Jan 19 10:27:17 masterc -- MARK --
Jan 19 10:44:53 masterc sshd[797]: Accepted password for masterc from 198.97.167
.88 port 2265 ssh2
Jan 19 10:44:54 masterc sshd[798]: Could not reverse map address 198.97.167.88.
Jan 19 11:07:17 masterc -- MARK --
Jan 19 11:27:17 masterc -- MARK --
Jan 19 11:47:17 masterc -- MARK --
Jan 19 12:07:17 masterc -- MARK --
Jan 19 12:27:17 masterc -- MARK --
Jan 19 12:47:17 masterc -- MARK --
However, I looked back and that was me ssh'ing from work, phew! Here's where it starts, there is really nothing indicating anything, it's just random:
Code:
Jan 19 23:47:19 masterc gconfd (masterc-1569): starting (version 1.0.9), pid 156
9 user 'masterc'
Jan 20 00:07:17 masterc -- MARK --
Jan 20 00:27:17 masterc -- MARK --
Jan 20 00:47:17 masterc -- MARK --
Jan 20 00:47:19 masterc gconfd (masterc-1569): GConf server is not in use, shutt
ing down.
Jan 20 00:47:19 masterc gconfd (masterc-1569): Exiting
Jan 20 01:07:17 masterc -- MARK --
Jan 20 01:27:17 masterc -- MARK --
Jan 20 01:47:17 masterc -- MARK --
Jan 20 02:07:17 masterc -- MARK --
Jan 20 02:27:17 masterc -- MARK --
Jan 20 02:47:17 masterc -- MARK --
Jan 20 03:07:17 masterc -- MARK --
Jan 20 03:27:17 masterc -- MARK --
Jan 20 03:47:17 masterc -- MARK --
Jan 20 04:07:17 masterc -- MARK --
Jan 20 04:27:17 masterc -- MARK --
Jan 20 04:40:26 masterc kernel: attempt to access beyond end of device
Jan 20 04:40:26 masterc kernel: 03:01: rw=0, want=1103013496, limit=4192933
Jan 20 04:40:26 masterc kernel: attempt to access beyond end of device
I am wondering if this would have anything to do with ssh?

Anyway, if this is not security related, I'd appreciate it being moved to the correct forum and thank you for your time

If anyone has any suggestions or wants me to post other portions of my logs just let me know, I'll be happy to show you.

Thanks again
 
Old 01-21-2003, 03:49 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
some_sw: gimme the nfo!
your_disk: k, it's indexed to be at 1103013496, want it?
your_disk: k, let's see 4192930, let's see 4192931, let's see 4192932, let's see 4192933, (...), 1103013496. 1103013496? I ain't got no steenkin 1103013496! Everything after 4192933 is like, radically bogoid, dude!

Did you run fsck?
// I can move this to general or hardware, whatever you want.
 
Old 01-21-2003, 03:51 AM   #3
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Rep: Reputation: 30
OMG! Somebody else has gotten this problem also! Hehe, I guess that isn't such a _good_ thing for you, but now maybe we'll have more of a chance to get it sorted

I've had this problem also, but it didn't have anything to do with SSH, etc...it was to do with Wine...I'd put my fake C-Drive on a 10 gig HDD, but eventually I'd get those same errors as you, then i noticed files disappearing...not too many, but enough to make games start cracking the shits...

But yeah, they are the same errors i was getting with wine...remember me mentioning something about it corrupting the filesystem, well, thats what it was doing...dunno if it was Wine causing it or not though, i never did find out, i just gave up...
 
Old 01-21-2003, 10:29 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Original Poster
Rep: Reputation: 69
Quote:
Originally posted by unSpawn
some_sw: gimme the nfo!
your_disk: k, it's indexed to be at 1103013496, want it?
your_disk: k, let's see 4192930, let's see 4192931, let's see 4192932, let's see 4192933, (...), 1103013496. 1103013496? I ain't got no steenkin 1103013496! Everything after 4192933 is like, radically bogoid, dude!

Did you run fsck?
// I can move this to general or hardware, whatever you want.
Thanks for the reply unSpawn, yeah from the sounds of it, and Grim's reply, I'd think it's a hardware issue rather than an attempted attack on my system. If you can move it over there, that'd be great thank you.

Some more info:

I got home today and the same thing, it appears to be able to be fixed by dropping back to runlevel 1 and then switching back up to 3. I am also venturing out tonight to see if it's just a filesystem problem, so I am gonna umount each partition, 1 at a time, each night to see if that's that problem. Grim, your response plus there seemed to be something mentioning vfat or something when I dropped back to runlevel 1, so I will try that first.

Thanks
 
Old 01-21-2003, 10:36 AM   #5
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Rep: Reputation: 30
Cool, tell me how ya go
 
Old 01-22-2003, 05:46 AM   #6
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Well before you go trying each partition the message indicates this:
kernel: 03:01: rw=0, want=420933837, limit=4192933

03:01 would be major number 3 and minor number 1
If you look through the major numbers and minor numbers of the /dev files that should be /dev/hda1
So that's the partition it's trying to access.
 
Old 01-22-2003, 05:54 AM   #7
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Just another thing, next time it happens. Instead of switching to runlevel 1 why don't you try shooting down your processes one by one and see if you can find the culprit that way. Or try to see with a ps listing or top which process is taking up all your resources.
 
Old 01-23-2003, 02:42 AM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Original Poster
Rep: Reputation: 69
I will Mik, thanks for the tip off on the device! I have a hard time doing anything once it gets into this problem though. The system literally creeps almost to a halt. Killing X takes a good 5 minutes to complete. Then to su - into root takes another good 10 minutes. By the time init 1 begins it's been ~30 minutes, no exageration. But I would like to pin down what's going on, so I will try a few processes 1 by 1 at least, in a hopeful attempt to hit in on one of those. I tried top, but must not have given enough time, because after about 10 minutes I figured the system had just creeped to a halt.

If it starts up again tonight, I'll have more time tomorrow to pin it down.

Thanks again for the tips.

Cool
 
Old 01-23-2003, 02:22 PM   #9
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Original Poster
Rep: Reputation: 69
Woohoo! Mik, you are the man

It's updatedb giving me problems. I think it's with my mounted /dev/hda1 because I tried umounting it and it would just throw up "device busy" and return me to a prompt.

Then I ran top. At the top of the list updatedb had been running for something like 315 minutes, so I figure that's gotta be it. I kill -15 it's pid and it's back to normal!

So now at least we've identified the problem (maybe) but what to do for the solution? I know I could just umount /dev/hda1 when it's not in use, it's just a win partition anyway and actually I don't think I've actually used it forever.

Woohoo!

Thanks
 
Old 01-24-2003, 04:30 AM   #10
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Well if you don't use the partition then you could probably unmount it. A nicer solution might be to prevent updatedb from searching any windows filesystems.
If you read through the man pages of updatedb the default would be to ignore nfs and proc. You could add vfat or dosfs or whatever it's called by using --prunefs or setting the PRUNEFS environment variable. Something like:

updatedb --prunefs="nfs proc dosfs"

Hmm weird I just tried that on a different system but it doesn't have the --prunefs, I guess it's a different version of updatedb. But you could still always use the --prunepaths switch.
 
Old 01-29-2003, 01:55 AM   #11
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Rep: Reputation: 30
w00t!

How is updatedb being run anyway? It can't be set for a cron job because I don't think i have that enabled/installed...

ummm, if you could work out that way to stop it from reading vfat/ntfs partitions that would be unreal...

So does updatedb --prunepaths /files /windows

would that stop updatedb from reading those directories/partitions (because thats where their mounted to..)
 
Old 01-29-2003, 04:43 AM   #12
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
A lot of distro's do set updatedb to be run as a cron job. I don't know about slackware. But I'm pretty sure slackware would at least include cron.

According to the man pages the syntax would have to be:
updatedb --prunepaths='/files /windows'
 
Old 01-29-2003, 05:22 AM   #13
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Original Poster
Rep: Reputation: 69
Check your /etc/cron.daily folder. There is slocate in mine (Slack 8.1) It updates once daily, which to me is a good thing. You can change that if you'd like, or remove it completely, or as Mik as shown, have specific folders not included.

BTW, it's been a while now, and working great. Thanks again Mik

Cool
 
Old 01-29-2003, 06:57 AM   #14
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Rep: Reputation: 30
Mad, I'll take a squiz.

Thank you two HEAPPPPS! That'll stop a few problems! w00t! On with WineX!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error during device I/O when attempting to scan using Plustek OpticPro UT24 Basel Slackware 5 11-18-2005 04:27 PM
"attempt to access beyond end of device" rcstest Linux - Hardware 0 03-31-2005 04:22 AM
Permission error attempting to access a web image ServerStorm Linux - Software 2 03-07-2005 05:10 PM
"attempt to access beyond end of device" problem.... AnalyticaL Linux - Hardware 0 10-01-2004 02:16 PM
log: attempt to access beyond end of device 360 Linux - General 1 09-18-2003 08:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration