[Solved] Need help manually assigning a disk volume label
I've managed to bork a volume label on a disk that's shared out via GPFS. There has to be a fairly simple dd command to rewrite the blocks in question, but I can't seem to dig up the information necessary anywhere I look. Any help would be greatly appreciated!
:confused: Hello,
In my Solaris system, I want to resize my mounted home directory slice.
1.I unmount the slice, #umount /export/home
2.Resize the directory #format>partition>
3.#format>label
4.#format>Cannot label disk when partitions are in use as described.
So, How can label ?
Thanks (2 Replies)
Hi Fellows,
I am trying to mirror 2 identical disks on a SUN Ultra 10 machines (with new installation of Solaris 8). In the process, I found 2 issues:
1. prtvtoc /dev/rdsk/c0t0d0s0 | fmthard -s - /dev/rdsk/c0t1d0s0
Result: Disk partitions between the 2 disks do not match up.
2. manually... (2 Replies)
I 'm having problem in importing a zfs pool was getting error device missing and upon further digging found that labels on my disk for zpool are missing
Does anyone know how to recover from it ?
root@essapl020-u006 # zdb -l /dev/dsk/emcpower0c
--------------------------------------------... (0 Replies)
I've a peculiar requirement that, i want to write the md5sum of the ISO image in to CD or DVD where i write that ISO.
If you want to write some other information as volume label/ID, we can use the mkisofs command's -V option. But i cannot use this because before the creation of the iso file,... (0 Replies)
Hello,
I'm brand new to Sun/Solaris.
I have a Sun Blade 150, with SunOS 5.8.
I wanted to make a backup to prevent future data loss, so I put the disk in a normal PC with Windows XP to try to make a backup with Norton Ghost, the disk was detected, but not the file volume, so I place the disk... (6 Replies)
Hi there,
I'm wondering how to display a disk label (why not edit it but I don't need that yet).
I found several commands on forums like disklabel and diskinfo but I can't find them on my system and don't know the package they belong to.
Can you help me?
Cheers
Santiago (2 Replies)
I have a external HD that I can't seem to open. When I try to open it with gparted it says unrecognized disk. When I run gparted from the terminal this is what it says.
~ $ sudo gparted
======================
libparted : 2.2
======================
/dev/sdb: unrecognised disk label
When I... (18 Replies)
I have a machine (5.10 Generic_142900-03 sun4u sparc SUNW,Sun-Fire-V210) that we are upgrading the storage and my task is to mirror what is already on the machine to the new disk. I have the disk, it is labeled and ready but I am not sure of the next steps to mirror the existing diskgroup and... (1 Reply)
Hi Guys,
Do you have any script to label a disk automatically.
It is part of my script but I am not able to find solution to label this inside script without user intervention. (2 Replies)
Hi everyone,
I have an external hard drive and I accidentally deleted the partition table.
Can I restore my files?
If I try to run the f-disk command this is what it says
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units =... (1 Reply)
Discussion started by: Sampa
1 Replies
LEARN ABOUT OPENSOLARIS
getvol
getvol(1M) System Administration Commands getvol(1M)NAME
getvol - verifies device accessibility
SYNOPSIS
/usr/bin/getvol -n [-l label] device
/usr/bin/getvol [-f | -F] [-ow] [-l label | -x label] device
DESCRIPTION
getvol verifies that the specified device is accessible and that a volume of the appropriate medium has been inserted. The command is
interactive and displays instructional prompts, describes errors, and shows required label information.
OPTIONS
The following options are supported:
-n Runs the command in non-interactive mode. The volume is assumed to be inserted upon command invocation.
-l label Specifies that the label label must exist on the inserted volume (can be overridden by the -o option).
-f Formats the volume after insertion, using the format command defined for this device in the device table.
-F Formats the volume after insertion and places a file system on the device. Also uses the format command defined for this device
in the device table.
-o Allows the administrator to override a label check.
-w Allows administrator to write a new label on the device. User is prompted to supply the label text. This option is ineffective
if the -n option is enabled.
-x label Specifies that the label label must exist on the device. This option should be used in place of the -l option when the label
can only be verified by visual means. Use of the option causes a message to be displayed asking the administrator to visually
verify that the label is indeed label.
OPERANDS
The following operands are supported:
device Specifies the device to be verified for accessibility.
EXIT STATUS
The following exit values are returned:
0 Successful completion.
1 Command syntax was incorrect, invalid option was used, or an internal error occurred.
3 Device table could not be opened for reading.
FILES
/etc/device.tab
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO attributes(5)NOTES
This command uses the device table to determine the characteristics of the device when performing the volume label checking.
SunOS 5.11 5 Jul 1990 getvol(1M)