On Mon, Dec 15, 2014 at 8:50 AM, Net Warrior <netwarrior863 at gmail.com> wrote:> Hi Steve > After disabling gpt and gptid at boot the swap is back > > root@:~ # swapinfo > Device 1K-blocks Used Avail Capacity > /dev/ada0p2 2097152 0 2097152 0% > > Thank you very much. >While this works, I find it best to leave gpt in place and then use gpart to label all partitions (except swap which does not support it) and use glabel to label swap. Now everything is named and there should never be any confusion. You can see why I leave gpt labels enabled. Here is my fstab: # Device Mountpoint FStype Options Dump Pass# /dev/gpt/swap none swap sw 0 0 /dev/gpt/rootfs / ufs rw 1 1 /dev/gpt/tmp /tmp ufs rw 2 2 /dev/gpt/usr /usr ufs rw 2 2 /dev/gpt/var /var ufs rw 2 2 /dev/ntfs/Windows7_OS /media/Windows7_OS ntfs rw,failok,uid=9381,gid=15,norecover,noatime,windows_names,late,mountprog=/usr/local/bin/ntfs-3g 0 0 /dev/ntfs/Media /media/Media ntfs rw,failok,uid=9381,gid=15,norecover,noatime,windows_names,late,mountprog=/usr/local/bin/ntfs-3g 0 0 #/dev/acd0 /cdrom cd9660 ro,noauto 0 0 -- R. Kevin Oberman, Network Engineer, Retired E-mail: rkoberman at gmail.com
On Mon, 15 Dec 2014, Kevin Oberman wrote:> On Mon, Dec 15, 2014 at 8:50 AM, Net Warrior <netwarrior863 at gmail.com> > wrote: > >> Hi Steve >> After disabling gpt and gptid at boot the swap is back >> >> root@:~ # swapinfo >> Device 1K-blocks Used Avail Capacity >> /dev/ada0p2 2097152 0 2097152 0% >> >> Thank you very much. >> > > While this works, I find it best to leave gpt in place and then use gpart > to label all partitions (except swap which does not support it)Umm....> and use glabel to label swap.GPT labels are stored in the metadata, so swap can have a GPT label just like all the other partitions. Maybe you are thinking of UFS filesystem labels?> Now everything is named and there should never be any confusion. You can > see why I leave gpt labels enabled. Here is my fstab: > # Device Mountpoint FStype Options Dump Pass# > /dev/gpt/swap none swap sw 0 0^^^^^^^^^^^^^^^ That is a GPT label right there.
Kevin Oberman wrote on 12/15/2014 23:11:> While this works, I find it best to leave gpt in place and then use gpart > to label all partitions (except swap which does not support it) and use > glabel to label swap. > Now everything is named and there should never be any confusion.Best ... and you can never attach another disk with the same labels (same naming scheme, probably your disk from another computer for recovery). Miroslav Lachman