Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Relocating File System

Posted on 2004-10-26
1
Medium Priority
?
321 Views
Last Modified: 2013-12-27
I have a new FS as follows:

Filesystem            kbytes    used   avail capacity  Mounted on
/dev/dsk/c0t0d0s0    10326052 6376528 3846264    63%    /
/proc                      0       0       0     0%    /proc
fd                         0       0       0     0%    /dev/fd
mnttab                     0       0       0     0%    /etc/mnttab
swap                 1077040      16 1077024     1%    /var/run
swap                 1078264    1240 1077024     1%    /tmp
/dev/dsk/c0t0d0s3    27631775       9 27355449     1%    /space

I would like to remove /space and create two new mount points.
/var = 10G
/opt = 20G.
How can I do that, with the command please?

Another simple question is how can I mount CDRom?
0
Comment
Question by:matchz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 34

Accepted Solution

by:
PsiCop earned 200 total points
ID: 12418577
"Another simple question is how can I mount CDRom?"

Enter --> rmmount

See --> man rmmount

You haven't bothered to specify the VERSION of Solaris you're using. Modern versions include an auto-mounter which should detect the CD-ROM and mount it in /cdrom

You don't have 30 GB of space in /dev/dsk/c0t0d0s3 to split into a 10 GB and a 20 GB partitions. You've only got about 26.35 GB.

As for the proper tools, you need this command --> format

See --> man format

You need to be super-user to run format. You should unmount the /space filesystem first. Then use format (select the disk, enter the "partition" menu, change the approrpiate slices) to alter the disk allocation. Be sure to use the "label" command to write the new disk label.

You can then use --> newfs

See --> man newfs

The "newfs" command puts a filesystem on the new slices.

Don't forget to make sure they are added in the filesystem table --> man vfstab

Finally, and perhaps most importantly, note that you can't just create a /var and a /opt and mount them and expect everything to work. The system already has a /var and a /opt, under /. These directories already contain files and sub-directories (certainly /var does). You *might* be able to use cpio or some similar tool to copy the data over to the new filesystems - that's WAY out of the scope of your Question (and worth a LOT more, too).

0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
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.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

610 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