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.
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.
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)
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)
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)
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)
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)
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)
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
LEARN ABOUT OPENSOLARIS
write_vtoc
read_vtoc(3EXT) Extended Library Functions read_vtoc(3EXT)NAME
read_vtoc, write_vtoc - read and write a disk's VTOC
SYNOPSIS
cc [ flag ... ] file ... -ladm [ library ... ]
#include <sys/vtoc.h>
int read_vtoc(int fd, struct vtoc *vtoc);
int write_vtoc(int fd, struct vtoc *vtoc);
int read_extvtoc(int fd, struct extvtoc *extvtoc);
int write_extvtoc(int fd, struct extvtoc *extvtoc);
DESCRIPTION
The read_vtoc() and read_extvtoc() functions return the VTOC (volume table of contents) structure that is stored on the disk associ-
ated with the open file descriptor fd. On disks larger than 1 TB read_extvtoc() must be used.
The write_vtoc() and write_extvtoc() function stores the VTOC structure on the disk associated with the open file descriptor fd. On disks
larger then 1TB write_extvtoc() function must be used.
The fd argument refers to any slice on a raw disk.
RETURN VALUES
Upon successful completion, read_vtoc() and read_extvtoc() return a positive integer indicating the slice index associated with the open
file descriptor. Otherwise, they return a negative integer indicating one of the following errors:
VT_EIO An I/O error occurred.
VT_ENOTSUP This operation is not supported on this disk.
VT_ERROR An unknown error occurred.
VT_OVERFLOW The caller attempted an operation that is illegal on the disk and may overflow the fields in the data structure.
Upon successful completion, write_vtoc() and write_extvtoc() return 0. Otherwise, they return a negative integer indicating one of the fol-
lowing errors:
VT_EINVAL The VTOC contains an incorrect field.
VT_EIO An I/O error occurred.
VT_ENOTSUP This operation is not supported on this disk.
VT_ERROR An unknown error occurred.
VT_OVERFLOW The caller attempted an operation that is illegal on the disk and may overflow the fields in the data structure.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |Unsafe |
+-----------------------------+-----------------------------+
SEE ALSO fmthard(1M), format(1M), prtvtoc(1M), ioctl(2), efi_alloc_and_init(3EXT), attributes(5), dkio(7I)BUGS
The write_vtoc() function cannot write a VTOC on an unlabeled disk. Use format(1M) for this purpose.
SunOS 5.11 7 Oct 2008 read_vtoc(3EXT)