Bug: mkswap

Please post any bugs you have found
Post Reply
Message
Author
psiklops
Posts: 2
Joined: Tue 26 Mar 2013, 15:22

Bug: mkswap

#1 Post by psiklops »

I am running Precise-5.5 Live on AMD 2800+ 4GB RAM and wanted to create a 4GB Swap file:

Code: Select all

dd if=/dev/zero of=swapfile bs=1M count=4000 

Code: Select all

mkswap swapfile
and received this error message:

mkswap: /lib/libblkid.so.1: version `BLKID_2.21' not found (required by mkswap)

None the less the lib is present in /lib/

Is there a patch out there for this?

--------------------------------------------------------------

SOLVED:

Since libblkid is part of util-linux, i downloaded:

http://ftp.de.debian.org/debian/pool/ma ... rig.tar.gz

Code: Select all

tar xfz util-linux_2.20.1.orig.tar.gz

Code: Select all

cd util-linux-2.20.1

Code: Select all

./configure && make && make install
cd to swapfile directory

Code: Select all

mkswap swapfile 
Setting up swapspace version 1, size = 4194300 KiB
no label, UUID=WhatEverNumbersDashesAndLetters


Cheers,

PsiKlops
Last edited by psiklops on Wed 27 Mar 2013, 15:31, edited 1 time in total.

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#2 Post by pemasu »


psiklops
Posts: 2
Joined: Tue 26 Mar 2013, 15:22

#3 Post by psiklops »

Kool Thanx.

Does my way of solving this Issue apply to be correct ? Or does it impose security or other issues ? Better said, is it better to upgrade util-linux using your suggested method ?

Cheers,

PsiKlops

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#4 Post by pemasu »

You will miss Barry`s patches.

http://bkhome.org/sources/alphabetical/ ... 2fs.tar.gz

u: puppy
p: linux

I recommend to use that pet.

Post Reply