Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm running Xubuntu 10.10 via USB on a Dell Latitude D505.
Wireless card is a Netgear WPN111 and I'm using ndiswrapper to make it work.
My problem is this:
when I open any web browser and try to navigate to a page, the whole system freezes for a few min before crashing to desktop.
Using Task Manager during this time reveals that processor usage jumps to 100% and stays there until the program closes.
I've tried Xubuntu on another, faster machine and it was fine.
From this I conclude that it's related to the hardware, and I think it may be some hardware protection feature operating.
Is there anything I can do to sort it?
Specs:
Dell Latitude D505
256MB RAM
Integrated Graphics
Intel Celeron M 1.4GHz
It's got 256MB RAM. As for the swap partition, I'm not sure?
You can see the swap space size by issuing the following command in a terminal window.
Code:
cat /proc/swaps
That will show you the location and size of the active swap files. The size is in kilobytes so multiply the size by 1024 to see the size in bytes. Here is mine.
Code:
$ cat /proc/swaps
Filename Type Size Used Priority
/dev/sda3 partition 3903784 0 -1
I have a 4 GB swap partition (roughly). The /proc/swaps file says that my swap partition is 3903784 kilobytes so I multiply 3903784 by 1024 to see that my swap partition is 3,997,474,816 bytes.
Quote:
Originally Posted by mbonwick
EDIT: Just had a proper look on the madwifi website, it says it doesn't support USB wireless cards like the WPN111...thoughts?
I'm sorry about that misdirection. I will investigate more. Unfortunately I don't have a WPN111 to use for testing information that I find.
Last edited by stress_junkie; 11-27-2010 at 01:01 PM.
Coincidentally happens to be located here on LQ. I looked on other web sites via Google. Most of the things that I read suggested that people were frustrated.
Since you've already got it working then disregard all of the above.
Quote:
Originally Posted by mbonwick
It seems it doesn't have a swap file;
Code:
ubuntu@ubuntu:~$ cat /proc/swaps
Filename Type Size Used Priority
ubuntu@ubuntu:~$
I guess I should create one, but how?
Yes it does seem that you are missing a swap partition. That is the key. The swap area is usually in a partition on the disk.
We should see if you have any spare space on the disk that is not already allocated to a partition. I like to use cfdisk because it shows you everything in an easy to read format.
Open a terminal window and enter the following command.
Code:
sudo cfdisk /dev/sda
That command presumes that you have only one disk drive in the computer. (/dev/sda)
The cfdisk display will show if you have any space that is not already allocated.
Do that and report back please.
Last edited by stress_junkie; 11-27-2010 at 01:40 PM.
Ran cfdisk, results below. sda is the main windows hard drive on this laptop, so I used sdb which is the flashdrive in question instead.
I'm guessing that Xubuntu is installed on /dev/sda along with Windows. This is the drive that interests us. We probably don't want to use a flash drive for swap space.
That's okay. Since Xubuntu is installed on the flash drive then the flash drive is a good place to put the swap partition.
Now the question is how to do it. I don't know if Xubuntu has gparted installed and I don't know if gparted will resize a mounted partition.
Ideally we want to boot a live Linux CD and shrink the existing partition on the flash drive, then create a new partition that will be used for swap space, then tell Xubuntu to use that swap space automatically when it starts.
Did you install Xubuntu from a live CD? If you did then boot that, open a terminal window, and see if it has gparted by opening a terminal window and entering the following command.
We can make a swap file in the root directory of the Xubuntu file system. I've never made a swap file but I have manually configured a swap partition. It should be very similar.
Here are the steps:
1- create a 2 GB file in the root directory
2- mount that file as a loop device
3- format it
4- put a line in /etc/fstab to automatically mount the page file and activate swapping
Here are the commands:
1- create the 2 GB file in the root directory
4- put a line in /etc/fstab to automatically mount the swap file during system startup
Okay. Let's make a backup of the /etc/fstab file before we do anything.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.