DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 13th November 2014
raindog308 raindog308 is offline
Fdisk Soldier
 
Join Date: Sep 2011
Posts: 61
Question n00b question: why doesn't this mount work?

Just curious. Here is my /etc/fstab for reference:

Code:
# cat /etc/fstab 
abd69b257348ce42.b none swap sw
abd69b257348ce42.a / ffs rw 1 1
abd69b257348ce42.m /data ffs rw,nodev,nosuid 1 2
abd69b257348ce42.k /home ffs rw,nodev,nosuid 1 2
abd69b257348ce42.d /tmp ffs rw,nodev,nosuid 1 2
abd69b257348ce42.f /usr ffs rw,nodev 1 2
abd69b257348ce42.g /usr/X11R6 ffs rw,nodev 1 2
abd69b257348ce42.h /usr/local ffs rw,nodev 1 2
abd69b257348ce42.j /usr/obj ffs rw,nodev,nosuid 1 2
abd69b257348ce42.i /usr/src ffs rw,nodev,nosuid 1 2
abd69b257348ce42.e /var ffs rw,nodev,nosuid 1 2
ce18a2d362d8319e.a /altroot ffs xx 0 0
So this works:

Code:
# umount /usr/src
# mount /usr/src
# mount | grep src
/dev/sd0i on /usr/src type ffs (local, nodev, nosuid)
#
But not this:

Code:
# umount /altroot
# mount /altroot
mount: can't find fstab entry for /altroot.
# mount ce18a2d362d8319e.a /altroot
# mount | grep altroot
/dev/sd1a on /altroot type ffs (local)
I assume it's something to do with the 'xx' part of how altroot works...but it's not like I'm giving some special parameter when explicitly giving the DUID for the second mount call.
Reply With Quote
  #2   (View Single Post)  
Old 13th November 2014
raindog308 raindog308 is offline
Fdisk Soldier
 
Join Date: Sep 2011
Posts: 61
Default

Answering my own question...

mount calls getfsspec(), which returns this struct:

Code:
 struct fstab {
                   char    *fs_spec;       /* block special device name */
                   char    *fs_file;       /* file system path prefix */
                   char    *fs_vfstype;    /* type of file system */
                   char    *fs_mntops;     /* comma separated mount options */
                   char    *fs_type;       /* rw, ro, sw, or xx */
                   int     fs_freq;        /* dump frequency, in days */
                   int     fs_passno;      /* pass number on parallel fsck */
           };
The man page for getfsspec says:

"All entries in the file with a type field equivalent to FSTAB_XX are ignored."
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help: NAT doesn't work on OpenBSD 4.9 lcxpics OpenBSD General 1 18th May 2011 09:46 AM
ln -f at boot doesn't work lordyan OpenBSD General 3 19th February 2009 03:50 PM
edonkey n00b question disappearedng FreeBSD General 5 17th November 2008 10:09 AM
n00b Eclipse question disappearedng FreeBSD General 3 3rd November 2008 05:29 PM
n00b question, installed theme via ports. How to use it? disappearedng FreeBSD General 1 25th June 2008 07:26 PM


All times are GMT. The time now is 07:23 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick