Stupid question about mountpoints and fstab

Daniel Bye freebsd-questions at slightlystrange.org
Tue Aug 15 16:34:54 UTC 2006


On Tue, Aug 15, 2006 at 06:41:43PM +0300, Odhiambo Washington wrote:
> Hello people,
> 
> I have never figured out something like this can be done, but today I 
> see it. We have purchased s co-lo server. They have installed it and
> given me access to "do whatever you want with the box", but their
> fstab has left me thirsty, wanting to know what's going on ...
> 
> 
> sp2817a# less /etc/fstab
> # Device                Mountpoint      FStype  Options         Dump    Pass#
> /dev/ad0s1b             none            swap    sw              0       0
> /dev/ad0s1a             /               ufs     rw              1       1
> /dev/ad0s1g             /home           ufs     rw              2       2
> /dev/ad0s1e             /tmp            ufs     rw              2       2
> /dev/ad0s1f             /usr            ufs     rw              2       2
> /dev/ad0s1d             /var            ufs     rw              2       2
> /dev/ad0s2              /home           ufs     rw              2       2
> /dev/acd0               /cdrom          cd9660  ro,noauto       0       0
> 
> sp2817a# df -h
> Filesystem     Size    Used   Avail Capacity  Mounted on
> /dev/ad0s1a    2.9G     54M    2.6G     2%    /
> devfs          1.0K    1.0K      0B   100%    /dev
> /dev/ad0s1g     15G     22K     13G     0%    /home
> /dev/ad0s1e    248M    8.0K    228M     0%    /tmp
> /dev/ad0s1f    9.7G    1.9G    7.0G    22%    /usr
> /dev/ad0s1d    6.8G     46M    6.2G     1%    /var
> /dev/ad0s2      72G     22K     66G     0%    /home
> 
> 
> Now, if someone can explain to me what the hell is being done with
> /home in this server... ;)

Erm, isn't it where your home directory will go?  ;-p

It looks to me like it might be some species of typo, or possibly a
a lesser spotted oversight.  You can easily enough create a new 
mountpoint and edit /etc/fstab accordingly, as you have been given 
carte blanche to do what you will...  As it stands, I think ad0s2 
will get mounted on top of ad0s1g, rendering it invisible and 
inaccessible.

Dan

-- 
Daniel Bye

PGP Key: http://www.slightlystrange.org/pgpkey-dan.asc
PGP Key fingerprint: D349 B109 0EB8 2554 4D75  B79A 8B17 F97C 1622 166A
                                                                     _
                                              ASCII ribbon campaign ( )
                                         - against HTML, vCards and  X
                                - proprietary attachments in e-mail / \
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20060815/6010e68b/attachment.pgp


More information about the freebsd-questions mailing list