1

Is file /etc/vfstab Solaris specific. I mean it only exists in SunOS/Solaris and there is no such file in other UNIX-es/Linux/*BSD.

2 Answers 2

3

No. /etc/vfstab is used by Solaris but it is specific to all SVR4 systems.

This is the equivalent of the UNIX-es/Linux/*BSD /etc/fstab. In fact the old SunOS 4.x was using /etc/fstab as well.

Here is a small list of known equivalent for /etc/fstab used by other proprietary OS:

  • IBM AIX (3.x and 4.x): /etc/filesystems
  • HP-UX (up to 9.x): /etc/checklist
  • Solaris (since 2.x): /etc/vfstab
  • Sco Unix: /etc/vfstab

Edit: fixing answer due to the underlying question (OS identification).

5
  • Thank you. My goal was to find a file which exists only in Solaris I'm going to use that file as hallmark for platform/OS detection.
    – hostmaster
    Commented Mar 20, 2014 at 11:23
  • 1
    What about other means to detect platform such as uname ?
    – Ouki
    Commented Mar 20, 2014 at 11:25
  • There are plenty of them actually.
    – hostmaster
    Commented Mar 20, 2014 at 11:28
  • I just meant that basing your plaform/OS detection on specific files is maybe that wise (my 2 cents).
    – Ouki
    Commented Mar 20, 2014 at 11:30
  • I agree with you. that is just a small part of the real case.
    – hostmaster
    Commented Mar 20, 2014 at 12:38
3

No, it's the SVR4 standard location - it's just that Solaris is the most common SVR4 based OS remaining today.

If you look at the Unix Rosetta stone you will find vfstab was also used on other less well-known SVR4 based OS'es.

1
  • True. But I did not get at first what was the underlying question.
    – Ouki
    Commented Mar 21, 2014 at 0:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .