1834814 Members
2891 Online
110070 Solutions
New Discussion

Mounts

 
Scott Callicott
Occasional Advisor

Mounts

I had to do a restore on our Unix box over the weekend. Now there are mounts that I need that I no longer have. I am new to Unix and am not sure how to create these mounts again. In NT to create a share is easy. Any help would be great. Thanks
4 REPLIES 4
Sachin Patel
Honored Contributor

Re: Mounts

Hi Scott,
In unix it is more easy.
say you have mount point /mydir earlier then
#>cd /
#>mkdir mydir
Now you have mydir is as mount point.
If you do restore on it and if you trying to mount external disk then you have to use vgimport vg0? /dev/dsk/c?t?d?
vgchange -a y vg0?
mount /dev/vg0?/lvlol? /mydir
so many question marks(?) that you have to figure out.

Sachin

Is photography a hobby or another way to spend $
A. Clay Stephenson
Acclaimed Contributor

Re: Mounts

Hi Scott:

This can be very easy or it could involve creating a volume group, logical volumes, and filesystems. None of that is difficult but you could clobber the system if you don't know what you are doing.

Let's do easy first:

If you really have the space but the filesystems names are wrong, you can fix that in two ways.
1) Unmount an existing filesystem and remount it as another. e.g. you have /u01 and you need to make it /u02.
a) umount /u01
b) mkdir /u02
c) vi /etc/fstab; find the /u01 entry and change it to /u02.
d) mount /u02
You are done


2) Create a symbolic link from /u02 to /u02
ln -s /u01 /u02
You are done.

Now for the scary ones. Create a new volume group/logical volume. In your case, I would use SAM. The important thing is to determine that the particular device is not really used.
e.g. just because you don't see it with bdf does not mean that a logical volume is not being used for swap space.
If you want to try this:
sam -> Disks & Filesystems
Maybe volume groups, maybe logical volumes - it depends. Use the online help.

Hope this gets you started, Clay




If it ain't broke, I can fix that.
Shahul
Esteemed Contributor

Re: Mounts

Hi

It is very easy in Unix. I will write down the syntax of mount here.

#mount source mountpoint

Example

U have a file system in /dev/vg01/lvol1..u want to mount this to /data. Follow these

#mkdir /data
#mount /dev/vg01/lvol1 /data

U are done..If U want this to be added in /etc/fstab

#mount -p > /etc/fstab

for more information, See man page of mount.

Best of luck

Shahul
Ravi_8
Honored Contributor

Re: Mounts

Hi,
create a mount point #mkdir /mnt_pt
then mount #mount /dev/xxx/xxx /mnt_pt
never give up