I didn't realize that 12 GB out my 64 GB SSD was taken for a swap drive when I installed Linux Lite. Does anyone know how I can delete that? My PC has 12 GB ram which is a lot for Linux Lite so I would probably never need the swap drive anyway. Thanks for any help.
(04-30-2017, 05:10 PM)johnnyboy5000 link Wrote: [ -> ]I didn't realize that 12 GB out my 64 GB SSD was taken for a swap drive when I installed Linux Lite. Does anyone know how I can delete that? My PC has 12 GB ram which is a lot for Linux Lite so I would probably never need the swap drive anyway. Thanks for any help.
As far as I know this way:
- Identify the file names of the swap partitions. To do so, list swap partitions with the command "[tt]swapon -s[/tt]".
- Deactivate swap with the command "[tt]swapoff[/tt]". For example: "[tt]swapoff /dev/sda7[/tt]", if sda7 is your swap partition.
- Eliminate lines from the file "[tt]fstab[/tt]" in the directory "[tt]/etc[/tt]", which would mount the swap partitions after any start of Linux.
- Delete the swap partitions. (You can do this from GUI with GParted or from command line with cfdisk. Be careful, but it's not complicated.)
In my own "[tt]fstab[/tt]" for example are two lines for mounting the swap partitions:
Code:
# swap was on /dev/sda11 during installation
UUID=52a1d79c-d752-4904-b608-c2b66129a913 none swap sw 0 0
# swap was on /dev/sda7 during installation
UUID=a6ececfd-2af5-4877-abc4-52e90b7254ea none swap sw 0 0
If I would delete those two lines, both preceded with a comment, Linux would not try to mount those swap partitions at start.
More information on commands to delete a partition:
How to create or delete partitions with fdisk.
Thanks for the info. I managed to delete the swap drive, but now Linux Lite hangs at start up. It won't go pass the feather screen. I can start up with the advanced options.
(05-02-2017, 01:36 AM)johnnyboy5000 link Wrote: [ -> ]Thanks for the info. I managed to delete the swap drive, but now Linux Lite hangs at start up. It won't go pass the feather screen. I can start up with the advanced options.
If hanging at the feather - I believe hitting ESC will allow one to see to whats processing in the background. May lend to whats hanging the system.
Also a thought - confirm that swap is off and not trying to mount...??...
Yes, the swap was not off. So I used sudo nano / etc / fstab and deleted the info that had swap text. The PC starts up normal and no more 12GB swap drive.

Thanks
Good to hear!!!
It's always the little things LOL ;D ;D