thunderbird pegs and hogs hard drive disc io
thufir
hawat.thufir at gmail.com
Mon Mar 23 00:58:32 UTC 2015
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.
>
>
> Nils
Very generous of you to say "someone" ;)
thufir at tleilax:~$ sudo mkswap /dev/sda2
[sudo] password for thufir:
Sorry, try again.
[sudo] password for thufir:
Setting up swapspace version 1, size = 4184928 KiB
no label, UUID=f04cbd74-c97a-47f7-bdf4-917bef80d6bc
thufir at tleilax:~$
thufir at tleilax:~$
thufir at tleilax:~$ sudo swapon /dev/sda2
thufir at tleilax:~$
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
thufir at tleilax:~$
So, swap is on?
I'll google this up, but I guess this just needs to be in a startup
script somewhere?
thanks,
Thufir
More information about the ubuntu-users
mailing list