There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus bios bsod computer crash drive driver drivers error ethernet excel freeze games gaming hard drive hardware hdmi internet laptop malware memory monitor motherboard music network obp operating system printer problem ram random registry router slow software sound trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Solved: Ubuntu 8.04 Hangs For No Apparent Reason

Reply  
Thread Tools
golddust's Avatar
Senior Member with 1,786 posts.
 
Join Date: Jan 2005
Location: Florida
Experience: Once again in English!!!!
03-Jul-2008, 12:41 PM #1
Solved: Ubuntu 8.04 Hangs For No Apparent Reason
Created new partition on my Gateway 5464 desktop. Hard drive is 320 GB and I partitioned it in half with it's own drive letter for the second half. Loaded Ubuntu 8.04 on the second half (Vista is on the other half).

Problem is Ubuntu arbitrarily hangs as I'm working. No specific file or program involved. Sometimes the hang is for just a few seconds - like it is trying to catch up. Other times it completely freezes so I have to restart the computer to get out of it. Windows still works fine. I've uninstalled and reformatted that partition then reinstalled twice with no change in behavior. What could be going wrong?
lotuseclat79's Avatar
Distinguished Member with 21,345 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
03-Jul-2008, 05:27 PM #2
Did you partition a swap partition for Linux? If not, that could be your problem.

Post the output of the command as root:
# fdisk -l
or as a regular user:
$ sudo fdisk -l

You should be seeing a separate swap partition - if not, you did not partition one.

Use the rule of thumb of partitioning 380 cylinders of the 160GB reserved for Linux, and the remainder for the root, /, partition. Use 26 cylinders for a boot partition - if you create one. Figure out the math first (from the fdisk -l data output).

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein
golddust's Avatar
Senior Member with 1,786 posts.
 
Join Date: Jan 2005
Location: Florida
Experience: Once again in English!!!!
03-Jul-2008, 06:12 PM #3
Sure did. 4 GB swap file. The OS is sitting in a 25 GB section of the drive.
lotuseclat79's Avatar
Distinguished Member with 21,345 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
04-Jul-2008, 07:44 AM #4
Hi golddust,

Ok, then what applications were you running at the time?

In a separate Terminal window, you can run the "top" command to see what is using the cpu to monitor what is going on. Why don't you try that to help determine what may be causing the hang - hopefully, the system will hang while running top.

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein
golddust's Avatar
Senior Member with 1,786 posts.
 
Join Date: Jan 2005
Location: Florida
Experience: Once again in English!!!!
04-Jul-2008, 12:06 PM #5
That's the weird part. It seems to be random. Sometimes I'm on the internet. Other times I'm using OpenOffice Writer. Another time I was just looking through the menus to see what Linux has to offer (I'm really really new). Another time I was looking at my email.
It's whenever it decides to go nuts!! Is it possible the 30 Gigabytes I alloted for the OS/Swapfile area isnt' big enough?
lotuseclat79's Avatar
Distinguished Member with 21,345 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
04-Jul-2008, 12:15 PM #6
Hi golddust,

If anything, I think your swap file is too big. Look at my previous post where I suggested a value for what size I thought you should make your swap partition - do the fdisk -l command first and do the math.

-- Tom
golddust's Avatar
Senior Member with 1,786 posts.
 
Join Date: Jan 2005
Location: Florida
Experience: Once again in English!!!!
04-Jul-2008, 12:56 PM #7
Just reading on the Ubuntu site that swap file should be twice the size of computer memory (which is 2 GB). So 4 GB for the swap file should be correct. I had given up trying and removed Ubuntu from my computer so it isn't installed right now. Attended part one of a lecture at my computer club (we are just getting into Linux) about downloading the software and installing it. Part 2 of the lecture is next week. I mentioned the problem I was having and our lecturer (one of our members) was really stumped! Nobody seems to be able to figure out what is going wrong! Figured I'd do more research before trying again.

Last edited by golddust; 04-Jul-2008 at 01:02 PM..
golddust's Avatar
Senior Member with 1,786 posts.
 
Join Date: Jan 2005
Location: Florida
Experience: Once again in English!!!!
04-Jul-2008, 05:04 PM #8
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x390ad1d5

Device Boot Start End Blocks Id System
/dev/sda1 * 1 22216 178443264 7 HPFS/NTFS
/dev/sda2 22217 33538 90943965 82 Linux swap / Solaris
/dev/sda3 33539 38913 43174687+ 5 Extended
/dev/sda5 33539 38687 41359311 83 Linux
/dev/sda6 38688 38913 1815313+ 82 Linux swap / Solaris

Last edited by golddust; 04-Jul-2008 at 05:11 PM..
lotuseclat79's Avatar
Distinguished Member with 21,345 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
04-Jul-2008, 11:06 PM #9
Hi golddust,

I see two Linux swap partitions, but only ever one is required on a disk with multiple Linux partitions. You can probably get rid of one, and reallocate the space by resizing your partitions. I would put it into the Linux partition in sda5.

Another comment. It probably does not matter, but I would juxtapose the NTFS and Extented partitions as Windows uses them, and then put the Linux partitions after.

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein
golddust's Avatar
Senior Member with 1,786 posts.
 
Join Date: Jan 2005
Location: Florida
Experience: Once again in English!!!!
04-Jul-2008, 11:14 PM #10
I thought that looked odd myself. How do I get rid of one and which one should I get rid off? I know how to partition and juggle the space around in Windows, but how do I do it in Linux? The breakdown you see here was created during the install. I just used the slider in the install to create the sections for the operating system and rest of the file area and this is what it did.
lotuseclat79's Avatar
Distinguished Member with 21,345 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
05-Jul-2008, 01:04 PM #11
Download Gparted+parted, i.e. the frontend and partition editor (Gnome) and use that to delete the last swap partition (sda6), then add the freed up disk space to increase sda5.

-- Tom
golddust's Avatar
Senior Member with 1,786 posts.
 
Join Date: Jan 2005
Location: Florida
Experience: Once again in English!!!!
06-Jul-2008, 08:15 PM #12
Looks like this problem is solved. My hard drive crashed this morning. Guess that was where the problem was coming from. Fortunately, it is still under warranty - only had a month to go. Gateway is going to send me a replacement hard drive. Hubby is going to put it in. Good thing I had copied my important stuff to my laptop last week.
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 05:26 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.