On 21 June 2014 13:08, Baho Utot <[email protected]> wrote: > On Saturday, June 21, 2014 12:31:03 PM Philippe Delavalade wrote: > > Hi all. > > > > I want to build LFS on a new computer. > > > > It seems to me I have a problem with my swap partition. I did a mistake > > when creating the LFS partition and so, I had to recreate the swap > > partition. > > > > I used cgdisk on a ssd ; the host system is debian/testing. > > > > gdisk with the 'p' command says : > > > > Number Start (sector) End (sector) Size Code Name > > 1 2048 58593279 27.9 GiB 8300 racine > > 2 58593280 62787583 2.0 GiB 8200 > > 3 62787584 83759103 10.0 GiB 8300 lfs > > > > but a "swapon -s" command just says "Filename". > > > > A mount command does not say anything about the swap partition and blkid > > gives > > /dev/sda2: UUID="..." TYPE="ext4" >
You have to label the partition as "swap" with fdisk or gdisk. > > > > In my /etcfstab file I have the line > > /dev/sda2 none swap sw 0 0 > > > > I think it is not correct for my swap partition but maybe I'm wrong ? If > > I'm right, what should I do ? > > > > Thanks for help > The "free" command will show, together with memory allocation and use, whether the swap partition has been created and is being used. In all likelihood, if you have enough ram, swap will never be used and will show "0" when running "free". Depending on what your use case is, a swap partition can also be used for hibernation. > > > Don't use a swap partition > Why not? For example,If the swap file is on a btrfs partition it won't be read. On a separate partition a different file system can be chosen. > > See: https://wiki.archlinux.org/index.php/swap to create a swap file > instead > > Richard
-- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
