Cannot label disk when partitions are in use as described
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>[resize operation9]
3.#format>label
4.#format>Cannot label disk when partitions are in use as described.
This is first time post...found this forum when looking for possible solution to fix my sun pc. Just one day can't boot it already showing the following:
Boot device: disk File args:
Bad magic number in disk label
Can't open disk label package
Evaluating: boot
Can't open boot device... (40 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)
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!
Fri Feb 28 15:20:26 EST 2014:... (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 there,
I am trying to do root volume mirroring on SunFire V210 server. I have two disks in it.First one is c1t0do and second one is c1t1do. Both disks already have partitions in them so I am deleting the partitions of second disk(c1t1do) using format command and selecting cylinder start 0... (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)
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)
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)
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)
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)
SYSTEMD-GPT-AUTO-GENERATOR(8) systemd-gpt-auto-generator SYSTEMD-GPT-AUTO-GENERATOR(8)NAME
systemd-gpt-auto-generator - Generator for automatically discovering and mounting root, /home and /srv partitions, as well as discovering
and enabling swap partitions, based on GPT partition type GUIDs.
SYNOPSIS
/lib/systemd/system-generators/systemd-gpt-auto-generator
DESCRIPTION
systemd-gpt-auto-generator is a unit generator that automatically discovers root, /home, /srv and swap partitions and creates mount and
swap units for them, based on the partition type GUIDs of GUID partition tables (GPT). It implements the Discoverable Partitions
Specification[1]. Note that this generator has no effect on non-GPT systems, or where the directories under the mount points are already
non-empty. Also, on systems where the units are explicitly configured (for example, listed in fstab(5)), the units this generator creates
are overridden, but additional implicit dependencies might be created.
This generator will only look for root partitions on the same physical disk the EFI System Partition (ESP) is located on. It will only look
for the other partitions on the same physical disk the root file system is located on. These partitions will not be searched on systems
where the root file system is distributed on multiple disks, for example via btrfs RAID.
systemd-gpt-auto-generator is useful for centralizing file system configuration in the partition table and making manual configuration in
/etc/fstab or suchlike unnecessary.
This generator looks for the partitions based on their partition type GUID. The following partition type GUIDs are identified:
Table 1. Partition Type GUIDs
+-------------------------------------+--------------------------------+--------------------------------------+
|Partition Type GUID | Name | Explanation |
+-------------------------------------+--------------------------------+--------------------------------------+
|44479540-f297-41b2-9af7-d131d5f0458a | Root Partition (x86) | On 32-bit x86 systems, the first x86 |
| | | root partition on the disk the EFI |
| | | ESP is located on is mounted to the |
| | | root directory /. |
+-------------------------------------+--------------------------------+--------------------------------------+
|4f68bce3-e8cd-4db1-96e7-fbcaf984b709 | Root Partition (x86-64) | On 64-bit x86 systems, the first |
| | | x86-64 root partition on the disk |
| | | the EFI ESP is located on is mounted |
| | | to the root directory /. |
+-------------------------------------+--------------------------------+--------------------------------------+
|69dad710-2ce4-4e3c-b16c-21a1d49abed3 | Root Partition (32-bit ARM) | On 32-bit ARM systems, the first ARM |
| | | root partition on the disk the EFI |
| | | ESP is located on is mounted to the |
| | | root directory /. |
+-------------------------------------+--------------------------------+--------------------------------------+
|b921b045-1df0-41c3-af44-4c6f280d3fae | Root Partition (64-bit ARM) | On 64-bit ARM systems, the first ARM |
| | | root partition on the disk the EFI |
| | | ESP is located on is mounted to the |
| | | root directory /. |
+-------------------------------------+--------------------------------+--------------------------------------+
|993d8d3d-f80e-4225-855a-9daf8ed7ea97 | Root Partition (Itanium/IA-64) | On Itanium systems, the first |
| | | Itanium root partition on the disk |
| | | the EFI ESP is located on is mounted |
| | | to the root directory /. |
+-------------------------------------+--------------------------------+--------------------------------------+
|933ac7e1-2eb4-4f13-b844-0e14e2aef915 | Home Partition | The first home partition on the disk |
| | | the root partition is located on is |
| | | mounted to /home. |
+-------------------------------------+--------------------------------+--------------------------------------+
|3b8f8425-20e0-4f3b-907f-1a25a76f98e8 | Server Data Partition | The first server data partition on |
| | | the disk the root partition is |
| | | located on is mounted to /srv. |
+-------------------------------------+--------------------------------+--------------------------------------+
|0657fd6d-a4ab-43c4-84e5-0933c84b4f4f | Swap | All swap partitions located on the |
| | | disk the root partition is located |
| | | on are enabled. |
+-------------------------------------+--------------------------------+--------------------------------------+
|c12a7328-f81f-11d2-ba4b-00a0c93ec93b | EFI System Partition (ESP) | The first ESP located on the disk |
| | | the root partition is located on is |
| | | mounted to /boot or /efi, see below. |
+-------------------------------------+--------------------------------+--------------------------------------+
The /home and /srv partitions may be encrypted in LUKS format. In this case, a device mapper device is set up under the names
/dev/mapper/home and /dev/mapper/srv. Note that this might create conflicts if the same partition is listed in /etc/crypttab with a
different device mapper device name.
Mount and automount units for the EFI System Partition (ESP) are generated on EFI systems. The ESP is mounted to /boot, unless a mount
point directory /efi exists, in which case it is mounted there. Since this generator creates an automount unit, the mount will only be
activated on-demand, when accessed. On systems where /boot (or /efi if it exists) is an explicitly configured mount (for example, listed in
fstab(5)) or where the /boot (or /efi) mount point is non-empty, no mount units are generated.
When using this generator in conjunction with btrfs file systems, make sure to set the correct default subvolumes on them, using btrfs
subvolume set-default.
systemd-gpt-auto-generator implements systemd.generator(7).
SEE ALSO systemd(1), systemd.mount(5), systemd.swap(5), systemd-fstab-generator(8), systemd-cryptsetup@.service(8), cryptsetup(8), fstab(5),
btrfs(8)NOTES
1. Discoverable Partitions Specification
https://www.freedesktop.org/wiki/Specifications/DiscoverablePartitionsSpec/
systemd 237SYSTEMD-GPT-AUTO-GENERATOR(8)