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. On 12/15/2014 01:06 PM, Steven Hartland wrote:> Is your disk attached to ada0? > > You can check this with camcontrol e.g. > camcontrol devlist > camcontrol identify <device> > > Personally I find diskid's more of a hindrance than a help so I > disable them in /boot/loader.conf with: > kern.geom.label.disk_ident.enable="0" > > For reference the same can be done for gpt and gptid, however gptid > are more useful: > kern.geom.label.gpt.enable="0" > kern.geom.label.gptid.enable="0" > > If your using 9.x I would also recommend moving to 10.1, lots of good > things in this. > > Regards > Steve > > On 15/12/2014 15:34, Net Warrior wrote: >> Hi there guys >> It's beeen a long time since I do not use FreeBSD, sice 9-RELEASE, now I >> back on the road and I found lots of cools stuff and thing which I'm >> trying >> to assimilate, now I have a simple problem which I cannot solve, cannot >> activate swap partition, can you lend me a hand with this? >> >> root@:~ # gpart show >> => 34 83886013 diskid/DISK-VB7030ac45-d4933b52 GPT (40G) >> 34 1024 1 freebsd-boot >> (512K) >> 1058 4194304 2 freebsd-swap >> (2.0G) >> 4195362 79690685 3 freebsd-zfs >> (38G) >> >> >> root@:~ # swapinfo >> Device 1K-blocks Used Avail Capacity >> >> root@:~ # swapon -a >> swapon: /dev/ada0p2: No such file or directory >> >> Best regards >> _______________________________________________ >> freebsd-stable at freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-stable >> To unsubscribe, send any mail to >> "freebsd-stable-unsubscribe at freebsd.org" > > _______________________________________________ > freebsd-stable at freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe at freebsd.org"
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