Solved

How do I rename an existing file system?

Posted on 2004-09-27
3
374 Views
Last Modified: 2013-12-27
I am running Solaris 9 with two 20gig mirrored hard drives.  I need to rename an existing file system.  I want to rename export/home to /export.  How can I do this?  I need step by step instructions. See my current partiton table below.

Current partition table (original):
Total disk cylinders available: 39533 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       0 -  8322        4.00GB    (8323/0/0)   8389584
  1       swap    wu    8323 - 10403        1.00GB    (2081/0/0)   2097648
  2     backup    wm       0 - 39532       19.00GB    (39533/0/0) 39849264
  3        usr    wm   10404 - 20562        4.88GB    (10159/0/0) 10240272
  4        var    wm   20563 - 32135        5.56GB    (11573/0/0) 11665584
  5       home    wm   32136 - 39490        3.54GB    (7355/0/0)   7413840
  6 unassigned    wm   39491 - 39532       20.67MB    (42/0/0)       42336
  7 unassigned    wm       0                0         (0/0/0)            0

# df -k  
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/md/dsk/d30      4127894  708533 3378083    18%    /
/dev/md/dsk/d32      5038454 1008509 3979561    21%    /usr
/proc                      0       0       0     0%    /proc
mnttab                     0       0       0     0%    /etc/mnttab
fd                         0       0       0     0%    /dev/fd
/dev/md/dsk/d33      5739845  155301 5527146     3%    /var
swap                 1428456      24 1428432     1%    /var/run
swap                 1428432       0 1428432     0%    /tmp
/dev/md/dsk/d34      3647766  153828 3457461     5%    /export/home
/export/home/<name of dir>  3647766  153828 3457461     5%    /home/<name of dir>


0
Comment
Question by:dee43
3 Comments
 
LVL 40

Assisted Solution

by:jlevie
jlevie earned 250 total points
ID: 12166064
Edit /etc/vfstab and change the mount point for /dev/md/dsk/d34 from /export/home to /export. That's best done from a single user boot.
0
 
LVL 38

Accepted Solution

by:
yuzh earned 250 total points
ID: 12166249
jlevie is correct.

In single user mountYou need:
umount /export/home
and make sure /export is a empty dir, so that can mount  /dev/md/dsk/d34 on /export


If you have any software installed under /export/home you might need to modify the ENV
setting for using them.  (or you need to modify the scripts for runing the software)
0
 
LVL 3

Expert Comment

by:cagri
ID: 12166786
Actually, as other friends explained, you do not "rename" filesystems on Solaris, but rather, mount them under different directories. Normally a filesystem does not have a name, and it can be mounted under any directory of your choice.

Btw, /export/home is the default directory for a number of applications, so I suggest, making and keeping a "home" folder under your newly mounted /export filesystem for just in case.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question