Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: baz on January 04, 2010, 12:03:21 AM

Title: GParted fails at creating SWAP partitions
Post by: baz on January 04, 2010, 12:03:21 AM
If you try and create a SWAP partition using GParted it will fail because it tries to run the command: mkswap -L "" /dev/sda2 which returns *instructions* on how to use mkswap. The proper command is simply: mkswap /dev/sda2

Why is that?
Title: Re: GParted fails at creating SWAP partitions
Post by: roberts on January 04, 2010, 12:29:18 AM
-L "" is trying to ensure that any label is removed.
mkswap in the base is a busybox applet which does not support the label (-L) option.

If you load util-linux-ng it should work.
Title: Re: GParted fails at creating SWAP partitions
Post by: baz on January 04, 2010, 12:33:03 AM
Beautiful, just tested it and it works. The SwapOff command in GParted also now works. Thanks!