Partition resizing, and other Q's

As stated in another post I’m new to Linux so struggling a bit with a few things as I was brainwashed by Bill Gates.
I have a wireless dongle on the way and have downloaded the drivers, but for the life of me can’t figure how to install them.
If you want to have a look, the instruction page (and download file) is here.
I know the instructions are for windows and if you look in the windows folder there is an exe file in there - straight forward.
But in the linux folder I can’t find anything to click on to install.

On another matter,
I installed Ubuntu on my laptop via wubi and as it was originally for trial purposes only didn’t alter anything just went ahead and installed.
Having decided to run it almost exclusively I want to increase the partition size.
The way my hard drive seem to be set up is -:
1 drive partitioned into :C (60gig) and :D(20gig) this is how it came from Dell
Windows is on C and so is everything to do with the system as it was before the installing Linux.
Ubunto is installed on D and seems to have created it’s own partition of 5gig but with updates and other installs (games, downloads etc) there is only about 300MB left.
I want to extend the partition size to take up about 11gig of the available space.
Is this possible or should I just start with a new HDD (which I will be doing eventually anyway)?
Any more info required just ask, I feel like such a no0b ::slight_smile:

Ooh edit -:
Is there a way for Ubuntu to be the primary boot instead of the selected alternative?


OK, first of all ignore that driver… it is rather old and probably won’t compile on your system… there is a newer version on the ralink site (I’ll give you a link in a bit).

It would be better, if you could wait till the wireless card arrives, then from a terminal run:

sudo lshw -C network

to be SURE the card is based on the Ralink RT3070 before installing the drivers.

Here’s the link to the latest RT3070 drivers:
2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO.tar.bz2 (you can enter ‘any’ name and email)

I see that Ralink are up to their old trick of labelling the archive as a tar.bz2 when it is really a tar.gz so it won’t unpack until you change the extension.

And that WPA/WPA2 support is disabled unless you edit the drivers before compiling.

The instructions will be SIMILAR to these:

but with slight modification.

Best to confirm the card IS an RT3070, then post back, and I’ll type up the instructions…

As for the hard drive/partitioning… I’m unsure if it is possible to resize a WUBI virtual drive once it has been created, it may even dynamically adjust its own size… I can look into this for you if you wish, but I think it would probably be better to wait till you have your new hard drive, then do a “proper” (non-WUBI, Linux native) install to the new drive.

You will then “easily” be able to edit the GRUB menu to make whichever OS you want the first OS to boot… as a matter of fact, a “proper” install will set Ubuntu as the first OS to boot by default.

Thanx for all that, I’ll wait till I get the dongle then and get back to you.
On a similar issue though, I downloaded firefox 4 (for the desktop) and can’t seem to find an install file in the package.
Also I installed google earth via Ubuntu software centre and although it shows in the applications>internet list nothing happens when clicked, any ideas?

Bet you wish you’d never let me join the forum eh :wink:


Heh… I enjoy helping, or I wouldn’t do it :wink:

Firefox 4… ditch what you downloaded, add the PPA, and install… Open a terminal and enter:

sudo add-apt-repository ppa:mozillateam/firefox-stable && sudo apt-get update && sudo apt-get upgrade

Hit enter, and your password when asked… this will update the version already on your system to version 4.

Google earth now seems to work fine(ish) for me (on Ubuntu 10.10 64bit)… it didn’t work at all a while ago, but I never bothered trying to fix it.
(it’s not perfect, the graphics are a bit screwed when I zoom in, but that’s probably my naff ATI graphics drivers)

Download the correct .deb version (depending on whether you have 32bit or 64bit Ubuntu):

double-click to install.

If it still refuses to start, can you open a terminal, and enter:


hit enter, and post back any output.

Reinstalled and working now :smiley:

Got the dongle today, plugged it in and it worked straight off so no worries there.

Heh, I’ll bet it wouldn’t do that in Windows :wink: … and people say Linux wireless is hard to set up :stuck_out_tongue:

Yeh, just asked for the ssid and password, it’s disconnected one so far but that might just be a feature of the device.
Got my file sharing network up and running too.
So far everything is as it should be.

It shouldn’t disconnect on its own, so if it becomes a regular occurrence, let us know and we’ll see if we can find a solution.
(it’s probably an easy fix, such as blacklisting rt2800usb, or installing the compat-wireless backports)

Glad it’s going well for you :slight_smile:

I think I’ll take you up on your offer if you don’t mind.
Although it’s only a small issue it’s annoying when it happens every half hour.
If you need any info just let me know
Just to clarify, the dongle isn’t disconnecting it just seems to loose the wireless signal and have to reconnect to router (and sometimes it can’t) but it’s not a router or signal issue because my laptop is connected and stable.


Just to be sure… can you send the output from:

sudo lshw -C network



Remember, Linux commands ARE case sensitive… so capital C in the first Command :wink:

Sorry for the slow reply, been out on the bike all afternoon.
Here’s the results.
If you don’t mind explaining as we go along, what are we asking for and what are the results telling us?

sudo lshw -C network

description: Ethernet interface
product: 82562EZ 10/100 Ethernet Controller
vendor: Intel Corporation
physical id: 8
bus info: pci@0000:03:08.0
logical name: eth0
version: 02
serial: 00:11:25:37:a3:98
size: 10MB/s
capacity: 100MB/s
width: 32 bits
clock: 33MHz
capabilities: pm bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e100 driverversion=3.5.24-k2-NAPI duplex=half firmware=N/A latency=66 link=no maxlatency=56 mingnt=8 multicast=yes port=MII speed=10MB/s
resources: irq:20 memory:e8100000-e8100fff ioport:2000(size=64)
description: Wireless interface
physical id: 1
logical name: wlan0
serial: 00:e0:4c:a0:61:5b
capabilities: ethernet physical wireless
configuration: broadcast=yes ip= multicast=yes wireless=Ralink STA



Module Size Used by
binfmt_misc 6599 1
snd_intel8x0 25664 2
snd_ac97_codec 99227 1 snd_intel8x0
ac97_bus 1014 1 snd_ac97_codec
snd_pcm 71475 2 snd_intel8x0,snd_ac97_codec
snd_seq_midi 4588 0
snd_rawmidi 17783 1 snd_seq_midi
snd_seq_midi_event 6047 1 snd_seq_midi
i915 295435 4
snd_seq 47174 2 snd_seq_midi,snd_seq_midi_event
snd_timer 19067 2 snd_pcm,snd_seq
snd_seq_device 5744 3 snd_seq_midi,snd_rawmidi,snd_seq
drm_kms_helper 30200 1 i915
ppdev 5556 0
rt2870sta 406690 1
drm 168060 4 i915,drm_kms_helper
parport_pc 26058 1
usbhid 36882 0
snd 49038 11 snd_intel8x0,snd_ac97_codec,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
crc_ccitt 1351 1 rt2870sta
hid 67742 1 usbhid
shpchp 29886 0
intel_agp 26566 2 i915
soundcore 880 1 snd
i2c_algo_bit 5168 1 i915
video 18712 1 i915
snd_page_alloc 7120 2 snd_intel8x0,snd_pcm
agpgart 32011 2 drm,intel_agp
output 1883 1 video
lp 7342 0
parport 31492 3 ppdev,parport_pc,lp
e100 30356 0
floppy 54311 0
mii 4425 1 e100

one more thing… with the USB wireless card plugged in, can you send the output from:


Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 045e:00e1 Microsoft Corp. Wireless Laser Mouse 6000 Reciever
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 148f:2070 Ralink Technology, Corp. RT2070 Wireless Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

In case it matters, the previous results were with the dongle in and working (it is at the moment)

Are you using Ubuntu 10.10 ?

Yes. Why?

So I know if the rt3070 drivers will need modification, and know what to test them on.

Ah right.

OK your card needs the RT3070 drivers, so download them from here:
Ralink Linux Driver Page
(HINT - change the files extension to tar.gz before unpacking… for some reason it comes up as an invalid bz2 archive, but unpacks properly as a tar.gz)

It can be unpacked by right-clicking, and selecting “Extract here

Move the resulting 2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO folder into your Home directory (just so I know where it is)

If you use WPA/WPA2 encryption, you will have to change the lines

(inside the unpacked driver)


So open a terminal and enter:

gedit ~/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/os/linux/

make the changes, then save the file and exit gedit. (be sure to save)

Next, because your specific device ID string isn’t included in the driver… we’ll add it.

gedit ~/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/common/rtusb_dev_id.c

now find the line:
#ifdef RT3070

and just below it add a new line that reads:
{USB_DEVICE(0x148F,0x2070)}, /* Ralink Generic 2070 */

so it now looks like:

#ifdef RT3070 {USB_DEVICE(0x148F,0x2070)}, /* Ralink Generic 2070 */ {USB_DEVICE(0x148F,0x3070)}, /* Ralink 3070 */

save the file and exit gedit.

OK, now you need to install some software packages to allow you to compile the driver:

sudo apt-get install build-essential linux-headers-generic

Now build and install the driver (for some reason the make command has to be run as root):

cd ~/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO


sudo make


sudo make install

Now reboot, and see if:

sudo lshw -C network

says that your wireless card is using the rt3070sta driver.

and preferably post back here, the output from: