Sponsored Content
Full Discussion: disk command
Operating Systems Solaris disk command Post 43550 by kduffin on Wednesday 19th of November 2003 12:15:57 AM
Old 11-19-2003
prtvtoc will give you dimensions of /dev/rdsk/<some device>

Keith
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

command to know disk controllers in a machine

Hi!! I am these days working on a project, where I need to know about the disk controllers available in a machine (e.g., 3ware,IBM,etc). Please, let me know the command by which I can get the information. thnx, priyanka (3 Replies)
Discussion started by: reply2priyanka
3 Replies

2. UNIX for Dummies Questions & Answers

disk usage command on unix?

hi, Can anyone tell me how I make a tree on the console showing the largest folders on my UNIX system? I want to know where are located the biggest files so I can free some disk space. thanks a lot. (3 Replies)
Discussion started by: gandoura
3 Replies

3. Shell Programming and Scripting

Command to find how many disk arrays and versions

Hello, Can you tell me a command to tell how many disk arrays are installed in the system, their RAID types and versions. I am working on Solaris 9. Thanks very much in advance. Mohammed (1 Reply)
Discussion started by: Mohammed
1 Replies

4. Solaris

Command to List Hard Disk Information

I have a SparcStation5 that is making sounds that make me think the disk drive(s) may be on the verge of quiting. What is the command to list the disk types and sizes? I'm thinking I can possibly pick up another drive or two and compy the exisiting drives while they are still working. (1 Reply)
Discussion started by: muletrainman
1 Replies

5. Shell Programming and Scripting

Verify two disk pvid with command awk

I do a #lspv |grep rootvg and i got : hdisk0 0006a81f3efcbe58 rootvg hdisk1 0006a81fd9ff4014 rootvg I want to verify for each server if the pvid is the same with use of the command lspv Can you help to wrote a shell with the command awk for exemple . Thank you (4 Replies)
Discussion started by: khalidou13
4 Replies

6. Shell Programming and Scripting

Unix - Disk usage command

Hi, I need a command that gives me the user who is using more space in the unix box (1 Reply)
Discussion started by: abinaya
1 Replies

7. AIX

How to use dd command to erase the data in disk

how to use dd command to erase the data in disk, such as hdisk2? (9 Replies)
Discussion started by: rainbow_bean
9 Replies

8. AIX

Command to get Disk Adapter details in AIX

Hi, What is the command to get the disk adapter performance details in AIX?. Guide me. (2 Replies)
Discussion started by: maruthu
2 Replies

9. Red Hat

Command for cumulative disk space

I wanted to know the Red Hat Linux command for cumulative disk space usage and the free space as df -h gives used and free space individually for the drives. Or, a command to check free space on the server would also be fine. I hope, my question is clear. Please revert with the reply to my... (2 Replies)
Discussion started by: RHCE
2 Replies

10. UNIX for Beginners Questions & Answers

Grep mpath disk name from lsblk command

When I use lsblk | tail -1 | awk -F " " '{print $1}' command and if a disk is a multipath I get output as └─mpathe But i need only mpathe to be grepped as output.. Please help.. But It works well if the disk is not mpath (2 Replies)
Discussion started by: Priya Amaresh
2 Replies
prtvtoc(1M)                                               System Administration Commands                                               prtvtoc(1M)

NAME
prtvtoc - report information about a disk geometry and partitioning SYNOPSIS
prtvtoc [-fhs] [-t vfstab] [-m mnttab] device DESCRIPTION
The prtvtoc command allows the contents of the label to be viewed. The command can be used only by the super-user. The device name can be the file name of a raw device in the form of /dev/rdsk/c?t?d?s2 or can be the file name of a block device in the form of /dev/dsk/c?t?d?s2. OPTIONS
The following options are supported: -f Report on the disk free space, including the starting block address of the free space, number of blocks, and unused parti- tions. -h Omit the headers from the normal output. -m mnttab Use mnttab as the list of mounted filesystems, in place of /etc/mnttab. -s Omit all headers but the column header from the normal output. -t vfstab Use vfstab as the list of filesystem defaults, in place of /etc/vfstab. EXAMPLES
Example 1: Using the prtvtoc Command The following example uses the prtvtoc command on a 424-megabyte hard disk: example# prtvtoc /dev/rdsk/c0t3d0s2 * /dev/rdsk/c0t3d0s2 partition map * * Dimension: * 512 bytes/sector * 80 sectors/track * 9 tracks/cylinder * 720 sectors/cylinder * 2500 cylinders * 1151 accessible cylinders * * Flags: * 1: unmountable * 10: read-only * * First Sector Last * Partition Tag Flags Sector Count Sector Mount Directory 0 2 00 0 76320 76319 / 1 3 01 76320 132480 208799 2 5 00 0 828720 828719 5 6 00 208800 131760 340559 /opt 6 4 00 340560 447120 787679 /usr 7 8 00 787680 41040 828719 /export/home example# The data in the Tag column above indicates the type of partition, as follows: Name Number UNASSIGNED 0x00 BOOT 0x01 ROOT 0x02 SWAP 0x03 USR 0x04 BACKUP 0x05 STAND 0x06 VAR 0x07 HOME 0x08 ALTSCTR 0x09 CACHE 0x0a RESERVED 0x0b The data in the Flags column above indicates how the partition is to be mounted, as follows: Name Number MOUNTABLE, READ AND WRITE 0x00 NOT MOUNTABLE 0x01 MOUNTABLE, READ ONLY 0x10 Example 2: Using the prtvtoc Command with the -f Option The following example uses the prtvtoc command with the -f option on a 424-megabyte hard disk: example# prtvtoc -f /dev/rdsk/c0t3d0s2 FREE_START=0 FREE_SIZE=0 FREE_COUNT=0 FREE_PART=34 Example 3: Using the prtvtoc Command on a Disk Over One Terabyte The following example uses uses the prtvtoc command on a disk over one terabyte:. example# prtvtoc /dev/rdsk/c1t1d0s2 * /dev/rdsk/c1t1d0s2 partition map * * Dimensions: * 512 bytes/sector * 3187630080 sectors * 3187630013 accessible sectors * * Flags: * 1: unmountable * 10: read-only * * First Sector Last * Partition Tag Flags Sector Count Sector Mount Directory 0 2 00 34 262144 262177 1 3 01 262178 262144 524321 6 4 00 524322 3187089340 3187613661 8 11 00 3187613662 16384 318763004 ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
devinfo(1M), fmthard(1M), format(1M), mount(1M), attributes(5) WARNINGS
The mount command does not check the "not mountable" bit. SunOS 5.10 25 Jul 2002 prtvtoc(1M)
All times are GMT -4. The time now is 05:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy