Re: "/etc/vfstab" re-creation
Russell_C_Page_at_national.com.au
Date: 06/03/04
- Previous message: Tim Evans: "Re: "/etc/vfstab" re-creation"
- In reply to: Lawrence Sica: "Re: "/etc/vfstab" re-creation"
- Next in thread: Wiest, Damian: "RE: "/etc/vfstab" re-creation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
To: "Lawrence Sica" <lomion@citruspub.net> Date: Thu, 3 Jun 2004 09:25:41 +1000
The following command prints currently mounted file systems in "vfstab"
format.
# mount -p
/dev/dsk/c0t0d0s0 - / ufs - no
rw,intr,largefiles,onerror=panic,suid,dev=2200000
/dev/dsk/c0t0d0s3 - /usr ufs - no
rw,intr,largefiles,onerror=panic,suid,dev=2200003
/proc - /proc proc - no dev=3ec0000
fd - /dev/fd fd - no rw,suid,dev=3f80000
mnttab - /etc/mnttab mntfs - no dev=4080000
/dev/dsk/c0t0d0s5 - /var ufs - no
rw,intr,largefiles,onerror=panic,suid,dev=2200005
swap - /var/run tmpfs - no dev=1
/dev/dsk/c0t0d0s6 - /opt ufs - no
rw,intr,largefiles,onerror=panic,suid,dev=2200006
swap - /tmp tmpfs - no dev=2
/dev/dsk/c0t0d0s7 - /u1 ufs - no
rw,intr,largefiles,onerror=panic,suid,dev=2200007
Just redirect the output to a file.
Russell Page
Certified Solaris Network Administrator
Security Analyst
Security Services
National Australia Bank Limited
+61 3 9886 2401
"The concept of the atom has proved rather useful." - Lord Rutherford
"Lawrence Sica" <lomion@citruspub.net>
03/06/2004 06:00 AM
To: ernalbant@uekae.tubitak.gov.tr
cc: focus-sun@securityfocus.com
Subject: Re: "/etc/vfstab" re-creation
<quote who="ernalbant@uekae.tubitak.gov.tr">
>
> Hi!
>
> I accidently deleted my /etc/vfstab on my solaris 2.5.1 server. I
copied
> the mount output to a file before rebooting. Using this file I have
> created vfstab file. However is there a way to re-create or to restore
the
> vfstab file?
>
> Thanks in advance!
> Ali
>
>
The only thing I can think of off the top of my head is using /etc/mnttab
as a template for recreating vfstab.
--Larry
- Previous message: Tim Evans: "Re: "/etc/vfstab" re-creation"
- In reply to: Lawrence Sica: "Re: "/etc/vfstab" re-creation"
- Next in thread: Wiest, Damian: "RE: "/etc/vfstab" re-creation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|