Displaying 20 results from an estimated 82 matches for "mklabel".
2010 Apr 05
1
RESEND: [PATCH node 1/3] enables ability for a common shared root
...ROOTDRIVE"
- # FIXME: save a backup copy, just in case?
- log "Wiping old boot sector"
- dd if=/dev/zero of=$ROOTDRIVE bs=1024K count=1
- reread_partitions $ROOTDRIVE
- partprobe -s $ROOTDRIVE
- log "Labeling Drive: $ROOTDRIVE"
- parted $ROOTDRIVE -s "mklabel ${LABEL_TYPE}"
+ if [ "$OVIRT_ROOT_INSTALL" == "y" ]; then
+ log "Starting partitioning of $ROOTDRIVE"
+ log "Partitioning drive: $ROOTDRIVE"
+ # FIXME: save a backup copy, just in case?
+ log "Wiping old boot sector"...
2016 Mar 13
1
C7 + UEFI + GPT + RAID1
...ond disk with
>> sgdisk, create md device for swap and /.
>
> Don't clone the partitions. If you do that, then you also need to
> randomize the UUIDs on the destination drive. It's probably easier to
> just create the partitions on each disk:
>
> parted -s /dev/sda mklabel gpt \
> mkpart primary ext4 1M 200M \
> mkpart primary ext4 200M 1224M \
> mkpart primary ext4 1224M 100%
> parted -s /dev/sdb mklabel gpt \
> mkpart primary ext4 1M 200M \
> mkpart primary ext4 200M 1224M \
> mkpart primary ext4 1224M 100%
>
&g...
2010 Apr 01
2
[PATCH node 1/3] Enables ability to have a common shared root
...ROOTDRIVE"
- # FIXME: save a backup copy, just in case?
- log "Wiping old boot sector"
- dd if=/dev/zero of=$ROOTDRIVE bs=1024K count=1
- reread_partitions $ROOTDRIVE
- partprobe -s $ROOTDRIVE
- log "Labeling Drive: $ROOTDRIVE"
- parted $ROOTDRIVE -s "mklabel ${LABEL_TYPE}"
+ if [ "$OVIRT_ROOT_INSTALL" == "y" ]; then
+ log "Starting partitioning of $ROOTDRIVE"
+ log "Partitioning drive: $ROOTDRIVE"
+ # FIXME: save a backup copy, just in case?
+ log "Wiping old boot sector"...
2010 Mar 31
1
[PATCH node] Handle space in storage wwid
...dd if=/dev/zero of=$BOOTDRIVE bs=1024K count=1
- reread_partitions $BOOTDRIVE
- partprobe -s $BOOTDRIVE
+ reread_partitions "$BOOTDRIVE"
+ partprobe -s "$BOOTDRIVE"
log "Creating boot partition"
- parted $BOOTDRIVE -s "mklabel ${LABEL_TYPE}"
- parted $BOOTDRIVE -s "mkpartfs primary ext2 0M ${boot_size_si}M"
- reread_partitions $BOOTDRIVE
- partboot=$BOOTDRIVE1
- if [ ! -e $partboot ]; then
- partboot=${BOOTDRIVE}p1
+ parted "$BOOTDRIVE" -s "mklab...
2014 Jan 21
2
After USB boot problems on Gigabyte GA-M55Plus-S3G
the closest i have gotten to a consistent way to test a MS-DOS filesystem
setup is:
dd if=/dev/zero of=binary.img bs=1M count=500
i="$(losetup -f --show binary.img )"
parted binary.img mklabel msdos -s -m
dd if=/usr/lib/syslinux/mbr.bin of="${i}"
parted binary.img mkpart primary -a optimal -s -m 0% 100%
parted binary.img set 1 boot on
mkfs.ext4 $(kpartx -savu "${i}" | awk 'NR==1{print "/dev/mapper/"$3 }' )
mount $(kpartx -savu "${i}" | awk...
2016 Mar 12
4
C7 + UEFI + GPT + RAID1
Hi list,
I'm new with UEFI and GPT.
For several years I've used MBR partition table. I've installed my
system on software raid1 (mdadm) using md0(sda1,sdb1) for swap,
md1(sda2, sdb2) for /, md2 (sda3,sdb3) for /home. From several how-to
concerning raid1 installation, I must put each partition on a different
md devices. I've asked times ago if it's more correct create the
2012 Feb 06
2
[PATCH 1/2] Revert "daemon: Run udev_settle after pwrite-device finishes."
From: "Richard W.M. Jones" <rjones at redhat.com>
This reverts commit a9c8123c72db47bcab8dd738e8d5256a9ae87f11.
---
daemon/file.c | 18 +++---------------
daemon/parted.c | 3 +--
2 files changed, 4 insertions(+), 17 deletions(-)
diff --git a/daemon/file.c b/daemon/file.c
index 057e15d..91746e0 100644
--- a/daemon/file.c
+++ b/daemon/file.c
@@ -525,7 +525,7 @@
2016 Mar 13
0
C7 + UEFI + GPT + RAID1
...ne gpt partition table on second disk with
> sgdisk, create md device for swap and /.
Don't clone the partitions. If you do that, then you also need to
randomize the UUIDs on the destination drive. It's probably easier to
just create the partitions on each disk:
parted -s /dev/sda mklabel gpt \
mkpart primary ext4 1M 200M \
mkpart primary ext4 200M 1224M \
mkpart primary ext4 1224M 100%
parted -s /dev/sdb mklabel gpt \
mkpart primary ext4 1M 200M \
mkpart primary ext4 200M 1224M \
mkpart primary ext4 1224M 100%
2012 Jan 12
0
SOLVED: Centos6 Installer can handle 3TB Disks with little prepare.
...that Anaconda Installer is not possible to handle the 3TB
Disks in Server
when u try to Partition them.
U can do only 3 normal partitions
or
u can do only 3 raid partitions,
the SOLUTION is:
Before U install Centos6 on the new naked server:
a) Start Server in Rescue mode
b) parted /dev/sda
c) mklabel gpt ( Answer YES, you will do new disk label )
d) print ( look that all is fine? )
e) parted /dev/sdb
f) mklabel gpt ( Answer YES, you will do new disk label )
g) print ( Answer YES, you will do new disk label )
h) q ( for quit )
Now go back to Hetzner Customer Menu, and activate VNC INSTALL Ce...
2012 Jun 29
1
A parted issue
We just got in a few server-class drives. They're Seagate Constellations,
3TB. I went to partition and format, and did a mklabel gpt in parted.
Ooops. It claims
Sector size (logical/physical): 512B/512B
After data sheet that doesn't tell me, and a long wait*, I spoke to a
Seagate tech, who agreed that it *is* 4k physical.
This is CentOS 6.2
Anyone know any way to correct this, or if it's a problem if I manually
a...
2014 Jun 12
0
Re: a small problem about *Disk* type pool
...question might be better on the libvirt-users mailing list,
| as it will reach a wider audience.
|
| >
| > On libvirt.org, the valid pool format type include "lvm2", which was
| > introduce by commit c47884a. While "POOL_DISK_LVM2 can not be created by
| > "parted mklabel" but is only returned from auto-detection on disk
| > pools", should this word be added to the org in case of misleading
| > building a "lvm2" type pool?
|
| Yes, it might make sense to document that libvirt can't currently create
| lvm partitions automatically (but s...
2013 Feb 01
0
snapshot scripts run on linux to allow samba to export Windows "Previous copies" when looking at a network file?
...7, extent_size=4194304, nextents=4077
Old volume active: Deactivated. Removed.
size=17100177408
Create vol. Home-2013.01.16-05.07.03, size 15.9G
Logical volume "Home-2013.01.16-05.07.03" created
About to copy base-diff dir to static
Copying diffs to dated static snap...Time: 403m, 11s.
mklabel@
/home/.snapdir/@GMT-2013.01.16-05.07.03/./._snapdat_=snap_copy_complete
after copy2staticsnap, status=1, !=
------
snap.log-130119-0507:
=====
delete vol Home-2013.01.09-05.07.02
Old volume active: Deactivated. Removed.
Deleted 1 snaps out of 14 for this base
0 snaps dated today.
Snapshot of Hom...
2009 Dec 10
0
[PATCH node] Enables stateless iscsi remote boot
...ROOTDRIVE
- partprobe -s $ROOTDRIVE
-
MEM_SIZE_MB=$(echo "scale=0; $MEM_SIZE_MB / 1024;" | bc -l)
local boot_size_si=$(echo "scale=0; $BOOT_SIZE * (1024 * 1024) / (1000 * 1000)" | bc -l)
- log "Labeling Drive: $ROOTDRIVE"
- parted $ROOTDRIVE -s "mklabel ${LABEL_TYPE}"
- if [ -n "$BOOTDRIVE" ]; then
+
+ if [ "$OVIRT_ISCSI_ENABLED" == "y" ]; then
+ log "Partitioning drive: $BOOTDRIVE"
+ log "Wiping old boot sector"
dd if=/dev/zero of=$BOOTDRIVE bs=1024K count=1...
2009 Dec 08
1
[PATCH node] iscsi remote root basework This lays most of the groundwork for iscsi installation and configuration. At this time configuring iscsi is disabled due to multiple issues with dependent pieces.
...tioning()
partprobe -s $ROOTDRIVE
MEM_SIZE_MB=$(echo "scale=0; $MEM_SIZE_MB / 1024;" | bc -l)
+ local boot_size_si=$(echo "scale=0; $BOOT_SIZE * (1024 * 1024) / (1000 * 1000)" | bc -l)
log "Labeling Drive: $ROOTDRIVE"
parted $ROOTDRIVE -s "mklabel ${LABEL_TYPE}"
+ if [ -n "$BOOTDRIVE" ]; then
+ dd if=/dev/zero of=$BOOTDRIVE bs=1024K count=1
+ blockdev --rereadpt $BOOTDRIVE
+ partprobe -s $BOOTDRIVE
+ log "Creating boot partition"
+ parted $BOOTDRIVE -s "mklabel ${LABEL_TYPE}...
2009 Nov 04
1
[PATCH node] add ability to select separate disks for Root and HostVG in o-c-storage
...-rereadpt $DRIVE
- partprobe -s $DRIVE
+ dd if=/dev/zero of=$ROOTDRIVE bs=1024K count=1
+ blockdev --rereadpt $ROOTDRIVE
+ partprobe -s $ROOTDRIVE
MEM_SIZE_MB=$(echo "scale=0; $MEM_SIZE_MB / 1024;" | bc -l)
- log "Labeling Drive"
- parted $DRIVE -s "mklabel ${LABEL_TYPE}"
+ log "Labeling Drive: $ROOTDRIVE"
+ parted $ROOTDRIVE -s "mklabel ${LABEL_TYPE}"
+ if [ $ROOTDRIVE != $HOSTVGDRIVE ]; then
+ log "Labeling Drive: $HOSTVGDRIVE"
+ parted $HOSTVGDRIVE -s "mklabel ${LABEL_TYPE}"
+ f...
2013 Feb 12
11
What can I do to make btrfs work?
...t 5 months ago[1]. Below is a very simple reproducer that anyone
can run.
*NB* before you run this, adjust /dev/sda & /dev/sda1 to point to an
unused block device!
----------------------------------------------------------------------
#!/bin/sh -
set -e
while true; do
parted -s -- /dev/sda mklabel msdos
parted -s -- /dev/sda mkpart primary 64s -64s
wipefs -a /dev/sda1
mkfs.btrfs --label TEST /dev/sda1
mount /dev/sda1 /sysroot
touch /sysroot/foo
mkdir /sysroot/bar
umount /sysroot
done
----------------------------------------------------------------------
On the latest 3.8.0 ker...
2009 Feb 03
1
hello and aoe booting
hi to the list,
Hello everyone, I am new in the world of pxe booting and i try to use
AOE to boot my linux debian lenny machines.
I install the linux like this:
parted -s /dev/etherd/e10.1 mklabel gpt
parted -s /dev/etherd/e10.1 mklabel gpt
parted -s /dev/etherd/e10.1 mkpart primary ext3 17408B 314590207B
parted -s /dev/etherd/e10.1 mkpart primary ext3 314590208B 3535815679B
parted -s /dev/etherd/e10.1 mkpart primary ext3 3535815680B 4609557503B
parted -s /dev/etherd/e10.1 mkpart primar...
2019 Feb 26
2
Problem with mdadm, raid1 and automatically adds any disk to raid
> On Mon, Feb 25, 2019 at 11:54 PM Simon Matter via CentOS
> <centos at centos.org>
> wrote:
>
>> >
>> > What makes you think this has *anything* to do with systemd? Bitching
>> > about systemd every time you hit a problem isn't helpful. Don't.
>>
>> If it's not systemd, who else does it? Can you elaborate, please?
>>
>
2010 Jul 08
2
partition offset/alignment on SAN devices.
Hey folks,
I've been getting requests from the users that they want the OCFS2
filesystems aligned to 64k boundaries, however, when I began the
project, the dummy of me, created the OCFS2 filesystem on top of the
whole disk device (no partition) for example, one of the SAN devices
would show up as /dev/dm-10, I created the filesystem using the
following command:
mkfs.ocfs2 -L SOMELABEL
2012 Nov 30
6
Illegal Opcode,the 2.
Hi to all,
from syslinux 4.06 and 5.00 pre 12 came the same dump.
Background: While trying to install syslinux on small (700 MB) FAT16 Partition on HP Server got Red Screen of Death with a register dump.
Illegal OpCode
EAX=00001F01 EBX=000001A4 ECX=00000000 EDX=00000019F
EBP=0000FBFA ESI=000007BE EDI=00000800
DS=0000 ES=0000 FS=0000 GS=0000
CS:EIP=0000:000083A6 SS:ESP=1000:0000AFF6