Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

increase fs and root dir

Status
Not open for further replies.

jlmk

MIS
Feb 1, 2001
12
HK
Hi,

I am new to Solaris and have some question. First, Which command to check the available free space. I have execute the df command but it only shows the installed fs with its availability and used. How to check the physical used free space and how to increase that free space into the paticular fs?? Please indicate.

Second, I have created a user with its home directory. But when I login, it can goes to the home dir but it can cd to another dir. How can I restict its home dir to root dir??

Thanks
 
df -k will show you a more helpful format in kilobytes. However, it may be that you have disks which aren't being used. You can check this with format (but if you're inexperienced with this be very careful), comparing the disks with entries in /etc/vfstab. To any add extra space to filesystems, I use Solstice Disksuite, which you should find available in your mediapack. The instructions for this product are covered in some detail at and I would recommend you read the relevant parts carefully before embarking on any changes. Post again if anything isn't clear.

There is a discussion of the restricted shell at thread60-65063 and you may find this useful to tie down your user. Hope this helps.
 
As always don't forget the "man" pages: - " man df" will give details of the df command. Ditto with format. As KenC says caution on format but to get the feel of the command here is an example of a 2 x disk system where the format command gives a simple listing of the disks and their contents: -

enter: format
Searching for disks...done

AVAILABLE DISK SELECTIONS:
0. c0t1d0 <SUN9.0G cyl 4924 alt 2 hd 27 sec 133>
/iommu@f,e0000000/sbus@f,e0001000/espdma@f,400000/esp@f,800000/sd@1,0
1. c0t3d0 <SUN2.1G cyl 2733 alt 2 hd 19 sec 80>
/iommu@f,e0000000/sbus@f,e0001000/espdma@f,400000/esp@f,800000/sd@3,0
Specify disk (enter its number): 0 (to view disk 0)
selecting c0t1d0
[disk formatted]
Warning: Current Disk has mounted partitions. (this is OK so ignore)

FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format > p (simply enter the letter p for partition)
PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
7 - change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!<cmd> - execute <cmd>, then return
quit

partition> p (again enter p this time to print your partition table)
partition > quit
partition > disk (to view another disk)
partition > 1 (disk 1)
partition > p (partition table)
partition > p (print details of disk 1)

partition > quit then quit again or simply control d to exit




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top