To display VTOC information


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting To display VTOC information
# 1  
Old 11-02-2004
Question To display VTOC information

Hello everybody!

1. Can someone explain, how to obtain the information about every logical volume in the system?
2. And then list vtoc on every volume in the system?

O.S.: UnixWare 7.1.*
shell: ksh
# 2  
Old 11-02-2004
Use the df command

The following will print all directories where file systems are mounted:
df | awk '{print $7}'

If you run ls command on this you will get the content of all directories:
ls `df | awk '{print $7}'`
or (in ksh only)
ls $(df | awk '{print $7}')

But be careful: the ouput may be voluminous.
Run df first to see all file systems.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to display information of the script while its running?

how to display the messages on screen IN PERL such as " 1. Entering while loop" if the script enters a while loop. 2. Checking FILENAME. etc... 3. Print statement is also not helpful.... (1 Reply)
Discussion started by: Rashid Khan
1 Replies

2. UNIX for Dummies Questions & Answers

Display full command (including options) information in running

Suppose I am a Unix user, not a root. I can see all commands in running by ps -elf, or some similar commands. Such commands may be submit by other Unix users. Is there a way that I can display those commands with their full parameters/options. For example, I can see a user is running "ls"... (3 Replies)
Discussion started by: happy_lotus
3 Replies

3. Programming

store information in hash and display number of keys.

I am trying to store this information (info and number) in hash. number is the key and info is value in a hash.i shown my code below. #!/usr/bin/perl use warnings; use strict; use XML::LibXML::Reader; my $file;open $file, 'formal.xml'); my $reader =... (0 Replies)
Discussion started by: veerubiji
0 Replies

4. Shell Programming and Scripting

Run a bash script, display on the screen and save all information in a file including error info

Hi all, How to: Run a bash script, display on the screen and save all information in a file including error information. For example: I have a bash script called test.sh now I want to run the test.sh and display the output on the screen and save the output including error info to a file. ... (1 Reply)
Discussion started by: Damon sine
1 Replies

5. Solaris

Labeling VTOC

How to relabeling the disk VTOC if i relabel the disk the previous data is available or not (5 Replies)
Discussion started by: chandu.bezawada
5 Replies

6. Solaris

Remove VTOC.

Hi, Does anyone know how I can remove the VTOC from a disk. I'm trying to initialize this disk under VxVM but it won't let me as there is still a VTOC present on the disk. I don't want to encapsulate the disk. I just want to have a raw disk that I can play with. Any ideas? Thanks. (5 Replies)
Discussion started by: gwhelan
5 Replies

7. Solaris

after ZFS can not restore VTOC of disk..

I tried to use zfs .. only for test ..so when I take my test disks into zfs pool their VTOC changed .. and 7th slice does not appear now. How can I restore default VTOC to my disks. my machine is x86 .. SunFire X4200 .. so this disks do not have slices like sparc machines .. they have... (6 Replies)
Discussion started by: samar
6 Replies

8. Solaris

tegsrding VTOC........

hi all......... if my VTOC is corrupt or deleted then what to do.....is there any method to reconfigure that........ my second question is , how to see the data block and super block ..... my third question is what is the difference between raw device & block device.... (2 Replies)
Discussion started by: sudhansu
2 Replies

9. Solaris

no VTOC problem

I am using Solaris 10. I restart it today because it halts during working. When i restart it then there is nothing. No Operating system found. I try to boot from Solaris 10 CD but it shows a single disk but there were two operating systems Solaris 10 and windows Xp. There is now only on complete... (2 Replies)
Discussion started by: mansoorulhaq
2 Replies

10. UNIX for Dummies Questions & Answers

backing up the vtoc

Can you backup the vtoc, then restore it if you somehow mess it up? This is solaris 9, x86. (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies
Login or Register to Ask a Question