thunderbird pegs and hogs hard drive disc io

Nils Kassube kassube at gmx.net
Mon Mar 23 06:09:34 UTC 2015


thufir wrote:
> On Sun, 22 Mar 2015 20:48:46 +0100, Nils Kassube wrote:
> > thufir wrote:
> >> thufir at tleilax:~$ sudo swapon /dev/sda2 swapon: /dev/sda2: read
> >> swap
> >> header failed
> >> 
> >> thufir at tleilax:~$ sudo fdisk -l
> >> 
> >> Device     Boot     Start       End  Sectors  Size Id Type
> >> 
> >> /dev/sda2 147926520 156296384  8369865    4G 82 Linux swap /
> >> Solaris
> > 
> > To me it looks like someone forgot to use mkswap:
> > 
> > sudo mkswap /dev/sda2
> > 
> > After that command the swapon should work.
> 
> Very generous of you to say "someone" ;)

:)

> thufir at tleilax:~$ sudo swapon /dev/sda2
> thufir at tleilax:~$ free -h
>              total       used       free     shared    buffers    
> cached Mem:          1.9G       1.1G       819M       257M        78M
>       604M -/+ buffers/cache:       488M       1.5G
> Swap:         4.0G         0B       4.0G
> 
> So, swap is on?

Yes.

> I'll google this up, but I guess this just needs to be in a startup
> script somewhere?

No, there should be an entry in "/etc/fstab" like this line:

UUID=3868e562-b608-409e-a1c8-e079c53271bc none swap sw 0 0

Of course you should replace the UUID with the one for your sda2 
partition which you can find out with this command:

ls -l /dev/disk/by-uuid|grep sda2


Nils





More information about the ubuntu-users mailing list