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" 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 -- In my opinion, you should NEVER put a swap partition on a SSD drive. The swap file is used to shift blocks of memory in and out of the "normal" filesystem(s). Hence, there will be a lot of writing and deleting - just the thing that wears out a SSD. This also means, that there will be very little or none performance gain by using a SSD like this. If your machine also has a traditional harddisk, then place the swap partition there. If not, you could create a ramdisk (in your physical RAM memory) to hold the swap partition. I would even guess (I have never tried) that you did not have to bother to save the ramdisk content before shutting down - at shut-down time the swapfile does not contain any usable data anyway. I'm not so sure about this, but I would give it a try. Niels -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
