Hi Folks,
this is totally my fault, I designed bad by partition layout, hence I had to recover space to create a swap a partition from the where is installed Linux.
The point is I first read this:
And I tried:
But it didn't work out:
Still get the Fat32 partition, hence I looked into:
But I need to add only the partition not the whole disk.
Always in the same paragraph is shown this:
I may use this command instead to format the partition as swap, but I am not very confident since the documentation doesn't consider a scenario with multiple filesystems and multiple OSes.
Thanks!
this is totally my fault, I designed bad by partition layout, hence I had to recover space to create a swap a partition from the where is installed Linux.
The point is I first read this:
I check my disk:12.12.1. Swap on a New Hard Drive or Existing Partition
Adding a new hard drive for swap gives better performance than using a partition on an existing drive. Setting up partitions and hard drives is explained in “Adding Disks” while “Designing the Partition Layout” discusses partition layouts and swap partition size considerations.
Use swapon to add a swap partition to the system. For example:
Code:# swapon /dev/ada1s1b
It is possible to use any partition not currently mounted, even if it already contains data. Using swapon on a partition that contains data will overwrite and destroy that data. Make sure that the partition to be added as swap is really the intended partition before running swapon.
Code:
$ gpart show ada0
=> 34 488397101 ada0 GPT (233G)
34 2014 - free - (1.0M)
2048 1951744 1 efi (953M)
1953792 2048 - free - (1.0M)
1955840 1953792 3 linux-data (954M)
3909632 2048 2 linux-data (1.0M)
3911680 471900160 4 linux-data (225G)
475811840 2048 - free - (1.0M)
475813888 12582912 5 ms-basic-data (6.0G)
488396800 335 - free - (168K)
And I tried:
Code:
swapon ada0p5
But it didn't work out:
Code:
$ gpart show ada0
=> 34 488397101 ada0 GPT (233G)
475811840 2048 - free - (1.0M)
475813888 12582912 5 ms-basic-data (6.0G)
488396800 335 - free - (168K)
Still get the Fat32 partition, hence I looked into:
18.2. Adding Disks
And it is described in there a method to add a disk while I actually need only ada0p5
Code:
# gpart create -s GPT ada1
# gpart add -t freebsd-ufs -a 1M ada1
But I need to add only the partition not the whole disk.
Always in the same paragraph is shown this:
Code:
# newfs -U /dev/ada0p5
I may use this command instead to format the partition as swap, but I am not very confident since the documentation doesn't consider a scenario with multiple filesystems and multiple OSes.
Thanks!