How to set permanent mount point on Solaris ?

How to set permanent mount point on Solaris ?

Post by ¤¤°ê¤ » Fri, 25 Oct 2002 17:16:08



Dear all,

Does anyone know how Ito set the permanent mount point on Solaris ?

I can mount the directory with the following command:

"mount -Flofs /export/share /export/home/tony/share" .

It was working fine but when I reboot the system, the mount point was
disappear.  Do you know how to set the permanent mount point on Solaris ?

Thanks a lot !

Tony

 
 
 

How to set permanent mount point on Solaris ?

Post by Jimm » Fri, 25 Oct 2002 17:33:07



> Does anyone know how Ito set the permanent mount point on Solaris ?

> I can mount the directory with the following command:

> "mount -Flofs /export/share /export/home/tony/share" .

> It was working fine but when I reboot the system, the mount point was
> disappear.  Do you know how to set the permanent mount point on Solaris ?

You need to add an entry to /etc/vfstab.

-Jimmo

 
 
 

How to set permanent mount point on Solaris ?

Post by ¤¤°ê¤ » Fri, 25 Oct 2002 17:58:51


Can you give me example to add the entry on /etc/vfstab, because I am newbie
on Solaris....thanks!

Example: Add the shortcut from /export/share to /export/home/tony/share

Below is my vfstab file :

# more vfstab
#device         device          mount           FS      fsck    mount
mount
#to mount       to fsck         point           type    pass    at boot
options
#
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/dsk/c0t0d0s1       -       -       swap    -       no      -
/dev/dsk/c0t0d0s0       /dev/rdsk/c0t0d0s0      /       ufs     1       no
-
/dev/dsk/c0t0d0s7       /dev/rdsk/c0t0d0s7      /export/home    ufs     2
yes     -
swap    -       /tmp    tmpfs   -       yes     -

Thanks a lot,
Tony




> > Does anyone know how Ito set the permanent mount point on Solaris ?

> > I can mount the directory with the following command:

> > "mount -Flofs /export/share /export/home/tony/share" .

> > It was working fine but when I reboot the system, the mount point was
> > disappear.  Do you know how to set the permanent mount point on Solaris
?

> You need to add an entry to /etc/vfstab.

> -Jimmo

 
 
 

How to set permanent mount point on Solaris ?

Post by Jimm » Fri, 25 Oct 2002 18:09:24



> Can you give me example to add the entry on /etc/vfstab, because I am
newbie
> on Solaris....thanks!

> Example: Add the shortcut from /export/share to /export/home/tony/share

Sure, just add this line to /etc/vfstab:

/export/share    -    /export/home/tony/share     lofs    - yes -

...and that should do the trick.  You can mount it right away with:

# mount /export/home/tony/share

...and the "yes" for mount at boot should mount it when the machine next
boots automatically for you.

Cheers
Jimmo

 
 
 

How to set permanent mount point on Solaris ?

Post by PhilTheHil » Fri, 25 Oct 2002 18:19:42


/device/to/mount     /device/to/fsck( none here replace by - sign)
/mount/point(a directory in the file system)     Filesystem type (ufs here)
fsck     mount at boot (yes/no)     mount options (see "man vfstab")

these are the fields to add to your vfstab file on one line.

if you just want to add a shortcut,

ln -s /export/share /export/home/tony/share (see "man ln")

P.



> Can you give me example to add the entry on /etc/vfstab, because I am
newbie
> on Solaris....thanks!

> Example: Add the shortcut from /export/share to /export/home/tony/share

> Below is my vfstab file :

> # more vfstab
> #device         device          mount           FS      fsck    mount
> mount
> #to mount       to fsck         point           type    pass    at boot
> options
> #
> fd      -       /dev/fd fd      -       no      -
> /proc   -       /proc   proc    -       no      -
> /dev/dsk/c0t0d0s1       -       -       swap    -       no      -
> /dev/dsk/c0t0d0s0       /dev/rdsk/c0t0d0s0      /       ufs     1       no
> -
> /dev/dsk/c0t0d0s7       /dev/rdsk/c0t0d0s7      /export/home    ufs     2
> yes     -
> swap    -       /tmp    tmpfs   -       yes     -

> Thanks a lot,
> Tony




> > > Does anyone know how Ito set the permanent mount point on Solaris ?

> > > I can mount the directory with the following command:

> > > "mount -Flofs /export/share /export/home/tony/share" .

> > > It was working fine but when I reboot the system, the mount point was
> > > disappear.  Do you know how to set the permanent mount point on
Solaris
> ?

> > You need to add an entry to /etc/vfstab.

> > -Jimmo

 
 
 

How to set permanent mount point on Solaris ?

Post by ¤¤°ê¤ » Fri, 25 Oct 2002 23:38:55


Dear Jimmo and PhilTheHill,

It work for me .....thanks a lot !

Thanks for your help !



> > Can you give me example to add the entry on /etc/vfstab, because I am
> newbie
> > on Solaris....thanks!

> > Example: Add the shortcut from /export/share to /export/home/tony/share

> Sure, just add this line to /etc/vfstab:

> /export/share    -    /export/home/tony/share     lofs    - yes -

> ...and that should do the trick.  You can mount it right away with:

> # mount /export/home/tony/share

> ...and the "yes" for mount at boot should mount it when the machine next
> boots automatically for you.

> Cheers
> Jimmo

 
 
 

How to set permanent mount point on Solaris ?

Post by ¤¤°ê¤ » Fri, 25 Oct 2002 23:39:08


Dear Jimmo and PhilTheHill,

It work for me .....thanks a lot !

Thanks for your help !


> /device/to/mount     /device/to/fsck( none here replace by - sign)
> /mount/point(a directory in the file system)     Filesystem type (ufs
here)
> fsck     mount at boot (yes/no)     mount options (see "man vfstab")

> these are the fields to add to your vfstab file on one line.

> if you just want to add a shortcut,

> ln -s /export/share /export/home/tony/share (see "man ln")

> P.



> > Can you give me example to add the entry on /etc/vfstab, because I am
> newbie
> > on Solaris....thanks!

> > Example: Add the shortcut from /export/share to /export/home/tony/share

> > Below is my vfstab file :

> > # more vfstab
> > #device         device          mount           FS      fsck    mount
> > mount
> > #to mount       to fsck         point           type    pass    at boot
> > options
> > #
> > fd      -       /dev/fd fd      -       no      -
> > /proc   -       /proc   proc    -       no      -
> > /dev/dsk/c0t0d0s1       -       -       swap    -       no      -
> > /dev/dsk/c0t0d0s0       /dev/rdsk/c0t0d0s0      /       ufs     1
no
> > -
> > /dev/dsk/c0t0d0s7       /dev/rdsk/c0t0d0s7      /export/home    ufs
2
> > yes     -
> > swap    -       /tmp    tmpfs   -       yes     -

> > Thanks a lot,
> > Tony




> > > > Does anyone know how Ito set the permanent mount point on Solaris ?

> > > > I can mount the directory with the following command:

> > > > "mount -Flofs /export/share /export/home/tony/share" .

> > > > It was working fine but when I reboot the system, the mount point
was
> > > > disappear.  Do you know how to set the permanent mount point on
> Solaris
> > ?

> > > You need to add an entry to /etc/vfstab.

> > > -Jimmo

 
 
 

How to set permanent mount point on Solaris ?

Post by Greg Hil » Thu, 31 Oct 2002 08:54:29


Does anyone know how to force an unmount of a file system?  On some
flavors of unix there is a flag to force it.  Anything like that for
solaris?

Baring that, what command/syntax can I use to determine exactly who/what
is using that mount?

Thanks for any help
Greg

 
 
 

How to set permanent mount point on Solaris ?

Post by Rich Tee » Thu, 31 Oct 2002 09:17:53



> Does anyone know how to force an unmount of a file system?  On some
> flavors of unix there is a flag to force it.  Anything like that for
> solaris?

I have no idea.  I wonder what the man page says?

Wait, that's too hard: I know, I'll post a question to Usenet
instead...  ;-)

--
Rich Teer

President,
Rite Online Inc.

Voice: +1 (250) 979-1638
URL: http://www.rite-online.net

 
 
 

How to set permanent mount point on Solaris ?

Post by Marc Richte » Thu, 31 Oct 2002 09:22:20



Quote:

> Baring that, what command/syntax can I use to determine exactly who/what
> is using that mount?

fuser -cu <filesystem>

--Marc

 
 
 

How to set permanent mount point on Solaris ?

Post by Miranda Hawarden-Ogat » Thu, 31 Oct 2002 09:32:30


I believe Solaris 8 has this feature (Solaris 7 and earlier don't):

umount -f /home/user

Hope this helps!
Miranda

Does anyone know how to force an unmount of a file system?  On some
flavors of unix there is a flag to force it.  Anything like that for
solaris?

Baring that, what command/syntax can I use to determine exactly
who/what
is using that mount?

Thanks for any help
Greg

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.404 / Virus Database: 228 - Release Date: 10/19/02

 
 
 

How to set permanent mount point on Solaris ?

Post by Greg Hil » Thu, 31 Oct 2002 11:24:25


Thanks for those who attempted to help.  I am running on solaris 7 and
there is no -f option.

using fuser -cu <mnt>

reports no processes even though when I try to unmount it, it says it is
busy...

Thanks anyway.

Greg


> Date: Tue, 29 Oct 2002 14:32:30 -1000

> Newsgroups: comp.unix.solaris
> Subject: Re: Forcing umount

> I believe Solaris 8 has this feature (Solaris 7 and earlier don't):

> umount -f /home/user

> Hope this helps!
> Miranda


> Does anyone know how to force an unmount of a file system?  On some
> flavors of unix there is a flag to force it.  Anything like that for
> solaris?

> Baring that, what command/syntax can I use to determine exactly
> who/what
> is using that mount?

> Thanks for any help
> Greg

> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.404 / Virus Database: 228 - Release Date: 10/19/02

 
 
 

How to set permanent mount point on Solaris ?

Post by Anthony Mandi » Thu, 31 Oct 2002 14:00:16



> Thanks for those who attempted to help.  I am running on solaris 7 and
> there is no -f option.

> using fuser -cu <mnt>

> reports no processes even though when I try to unmount it, it says it is
> busy...

        Its a bug. I've had the same problem on S8.

-am     ? 2002

 
 
 

How to set permanent mount point on Solaris ?

Post by Robert Montj » Thu, 31 Oct 2002 14:26:01





>> Thanks for those who attempted to help.  I am running on solaris 7 and
>> there is no -f option.

>> using fuser -cu <mnt>

>> reports no processes even though when I try to unmount it, it says it is
>> busy...

>    Its a bug. I've had the same problem on S8.

Verify that the directory is not shared. If it is you will not be able
to umount it. Try unshare /mountpoint before umount /mountpoint.

lsof is more effective in finding what process or processes are
holding a mountpoint open.

--
Rob Montjoy - Information Technology Analyst 2 - U of Cincinnati - ECECS Dept


-- If you live in a country run by committee, be on the committee.

 
 
 

How to set permanent mount point on Solaris ?

Post by Andrew Gabri » Thu, 31 Oct 2002 19:12:41




Quote:

> Thanks for those who attempted to help.  I am running on solaris 7 and
> there is no -f option.

> using fuser -cu <mnt>

> reports no processes even though when I try to unmount it, it says it is
> busy...

There are other reasons a filesystem can be busy:
Another filesystem mounted inside it;
Filesystem is exported (this varies between releases);
Probably more...

--
Andrew Gabriel
Consultant Software Engineer