LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-04-2007, 12:31 AM   #1
Four
Member
 
Registered: Aug 2005
Posts: 298

Rep: Reputation: 30
non-contigeous? what is that?


Linux crashed and did a check when it started. I forced another check by using a live CD and I get this line

/dev/hda5: 151409/1024128 files (2.0% non-contiguous), 1592736/2048279 blocks

I don't understand what it means. Linux seams to crash when working heavily with files. Or just using the hardrive alot e.g. after running fsck using -n. It all started when I was trying to install starcraft on linux, and it crashed when I tryed to open starcraft a few times and now my file system is "non-contiguous".

I ran fsck more than once and here is what it produced

root@ubuntu:/home/ubuntu# fsck /dev/hda5 -f
fsck 1.38 (30-Jun-2005)
e2fsck 1.38 (30-Jun-2005)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/hda5: 151409/1024128 files (2.0% non-contiguous), 1592736/2048279 blocks
root@ubuntu:/home/ubuntu# fsck /dev/hda5 -f -V
fsck 1.38 (30-Jun-2005)
[/sbin/fsck.ext3 (1) -- /dev/hda5] fsck.ext3 -f /dev/hda5
e2fsck 1.38 (30-Jun-2005)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/hda5: 151409/1024128 files (2.0% non-contiguous), 1592736/2048279 blocks


I use kubuntu, don't know what filesystem Iam using. on a Dell laptop with hardrive partitioned.

What should I do about this? what can I do to prevent such things from the future?

I program things and test on my own laptop, sometimes my own programs crash when Iam debuging. However they do system dependant tasks that unfortunatly cause the whole system to crash. Should I test programs on another computer or create some virtual computer that won't effect mine? I don't know?

Thanks
 
Old 04-04-2007, 01:21 AM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
the 2 have little is anything to do with each other. contiguous just means continuous, well that is one easy way to think of it.

in other words the data was all of 2% out of wack in your system. VERY good considering even after running defrag under windows 10 times in a row, the best you will get is close to 5 - 10% that is out of wack.

as to what is causing the crash, more info is needed and im not skilled enough to help beyound informing you in a real basic means of what contiguous is.
 
Old 04-04-2007, 10:48 AM   #3
Four
Member
 
Registered: Aug 2005
Posts: 298

Original Poster
Rep: Reputation: 30
I was thinking it means that files were corupted.

How should I get more info, what logs do I check? And also linux usually puts files into RAM memory when they are written, and as memory is depleted they are physically written to the drive. If I have a crash do I need anything special to have the logs written directly to physical drive rather than to ram first?

Thanks
 
Old 04-05-2007, 02:21 AM   #4
Hendronicus
Member
 
Registered: Feb 2006
Location: Oldsmar, Fl. USA
Distribution: Slackware, Ubuntu
Posts: 175

Rep: Reputation: 38
If you use a journaling filesystem, then writes are committed at regular intervals. I recommend reiserfs, I've found it to be quite a bit faster than ext3. As far as getting Linux to write changes to disk immediately, well, I don't think you'd want that because it would make your system horribly slow. Even MS-DOS waited until the cursor came back to commit to disk and that was without smartdrv. I can't help with the game situation, sorry. Your system logs should be in the directory /var/log

Last edited by Hendronicus; 04-05-2007 at 03:52 PM.
 
Old 04-05-2007, 03:43 AM   #5
)(*&^%$#@!
LQ Newbie
 
Registered: Apr 2007
Posts: 10

Rep: Reputation: 0
non-contigeous? contigeous
In general, refers to an object that is adjacent to another object.
When referring to a computer hard disk drive, contiguous means sectors on a disk that are by each other.
When referring to computer memory, contiguous means sections of memory that are next to one another.

kubuntu uses by default ext3 as a file system

as to the crashes ,dont have a clue .but i would uninstall and try again to install to see if you can reproduce the error ,keep a close eye on what is happening then the next time you may be able to give some specific details that may help solve this issue
 
Old 04-05-2007, 09:00 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,932

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
BTW
How much memory is installed in the laptop?
How much swap do you have and how much is being used?
 
Old 04-05-2007, 04:20 PM   #7
Four
Member
 
Registered: Aug 2005
Posts: 298

Original Poster
Rep: Reputation: 30
I have 256mb of ram and 512 of swap.

Also I have noticed (I noticed this along time ago) that the led for the hardrive using kubuntu comes on litterly every 5seconds (I timed it 7 times in 34.8sec). Is it normal? I remember having another linux distribution (Slackware) and the led didn't come up this often.

Thanks
 
Old 04-05-2007, 04:33 PM   #8
SlowCoder
Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Fedora (Desktop), CentOS (Server), Knoppix (Diags)
Posts: 934

Rep: Reputation: 38
Quote:
Originally Posted by Four
I have 256mb of ram and 512 of swap.

Also I have noticed (I noticed this along time ago) that the led for the hardrive using kubuntu comes on litterly every 5seconds (I timed it 7 times in 34.8sec). Is it normal? I remember having another linux distribution (Slackware) and the led didn't come up this often.

Thanks
Reread Hendronicus' post. Writes are committed every 5 seconds to the drive. Hence the LED blink every 5 seconds.
 
  


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




All times are GMT -5. The time now is 05:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration