geom_label, fstab without device names & swap partition?
Freddie Cash
fjwcash at gmail.com
Wed Jan 12 19:19:12 UTC 2011
2011/1/12 Lev Serebryakov <lev at serebryakov.spb.ru>:
> Now, with "newfs -L name", geom_label and /dev/ufs/* it is possible
> to not use device names for FSes in "/etc/fstab" at all. But what to
> do with swap partitions? How to say, that I want swap on
> "/dev/ada0s1b" or "/dev/ad0s1b" whatever name it has now?
Use glabel(8) to label the device:
# glabel label swap ada0s1b
Then point to the label in /etc/fstab:
/dev/label/swap swap sw ...
--
Freddie Cash
fjwcash at gmail.com
More information about the freebsd-stable
mailing list