Labeling VTOC


 
Thread Tools Search this Thread
Operating Systems Solaris Labeling VTOC
# 1  
Old 05-22-2010
Labeling VTOC

How to relabeling the disk VTOC
if i relabel the disk the previous data is available or not
# 2  
Old 05-22-2010
I'm a little confused. Do you have a disk named VTOC? Or do you just need to "rename" partition tables? Or do you need to resize them?
# 3  
Old 05-22-2010
i have created a partition table
and take the backup of table by using prtvtoc to a file

now i would like to rearrange the partition table and do some mountings on it
later i would like to relabel the disk with backed up VTOC.

then in that case, will i get the previous data?
# 4  
Old 05-22-2010
Quote:
Originally Posted by chandu.bezawada
now i would like to rearrange the partition table and do some mountings on it
later i would like to relabel the disk with backed up VTOC.

then in that case, will i get the previous data?

I'm still confused. Why would you need to rearrange the partition table? As in, put two where six is and six where four is? At that point your just changing your name and number. I'm unsure if that would work.

Code:
* Unallocated space:
*       First     Sector    Last
*       Sector     Count    Sector
*           0   8395200   8395199
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       0      2    00    8395200   4711488  13106687   /
       1      7    00   13106688   4192512  17299199   /var
       2      5    00          0 143349312 143349311
       3      3    01          0   8395200   8395199
       5      0    00   17299200 108058944 125358143   /opt
       6      4    00  125358144   9595968 134954111   /usr
       7      8    00  134954112   8395200 143349311   /export/home

I'm pretty sure that the sector counts are where they do there starting and stopping. If you change anything in the sectors, you will probably loose data. I'm unsure what you are trying to do exactly. If you made a partition table too big, let's say on /usr, you should be able to backup /usr, re-partition that partition. Reformat and then restore.

Does this help?
# 5  
Old 05-22-2010
Quote:
Originally Posted by adelsin
I'm a little confused. Do you have a disk named VTOC?
The VTOC (Virtual Table of Contents) is the name of the Solaris partition (slice) table, not to confuse with the fdisk partition table on x86.
# 6  
Old 05-23-2010
you will definitely need to restore your data on the re-partitioned VTOC
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

PHP Labeling/Punctuation Syntax Question

Greetings! My first PHP question; and, no doubt, a "no-brainer" for the initiated :) The question centers around the proper syntax for input field labeling. The snippet which puzzles me (and the candidate which I wish to modify) goes like this:<?php _e('Hello World'); ?>:<br />What I'd like... (0 Replies)
Discussion started by: LinQ
0 Replies

2. UNIX for Dummies Questions & Answers

Numerical Labeling using sed

Hi, I have been working on this problem, but could only get so far. I have a file that looks like this (cat,chimp,(((dog,cat,cow),orangutan),((horse,((cat,dog),(cow,pig))),cat,mouse,rat))); I would like after each instance of the word 'cat' to have an incrementing numerical label. I... (5 Replies)
Discussion started by: cavanac2
5 Replies

3. 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

4. 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

5. 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

6. Solaris

Automatic disk labeling

First post :) ... Here is a script for automatic labeling of previously unlabeled disks. Other methods exist (format -f cmd_file), but I like this because it's all in one place. #!/bin/ksh #---------------------- # format_label # Automatic labeling of previously unlabeled disks #... (1 Reply)
Discussion started by: kwachtler
1 Replies

7. 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

8. Shell Programming and Scripting

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 (1 Reply)
Discussion started by: gold4u
1 Replies
Login or Register to Ask a Question