search for: mkpart

Displaying 20 results from an estimated 84 matches for "mkpart".

2016 Mar 13
1
C7 + UEFI + GPT + RAID1
...gdisk, 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% > > ____________________...
2016 Sep 27
1
Am I crazy (parted)
I swear I've done this dozens of times: a new server, going to install (CentOS 7, in this case), and I manually partition the disk before the install using parted, and do mkpart pri 0.0GB +1.0GB Except now it appears to be saying it doesn't like the +1.0GB, I *think* it's the plus sign. mark
2010 Apr 05
1
RESEND: [PATCH node 1/3] enables ability for a common shared root
...TDRIVE + partprobe -s $ROOTDRIVE + log "Labeling Drive: $ROOTDRIVE" + parted $ROOTDRIVE -s "mklabel ${LABEL_TYPE}" + log "Creating Root and RootBackup Partitions" + let RootBackup_end=${ROOT_SIZE}*2 + parted $ROOTDRIVE -s "mkpart primary ext2 0M ${ROOT_SIZE}M" + parted $ROOTDRIVE -s "mkpart primary ext2 ${ROOT_SIZE}M ${RootBackup_end}M" + # sleep to ensure filesystems are created before continuing + sleep 10 + mke2fs ${ROOTDRIVE}1 -L Root + mke2fs ${ROOTDRIVE}2 -L RootBackup...
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
2016 Mar 13
0
C7 + UEFI + GPT + RAID1
...ble 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%
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 primary ext3 4609557504B 6757041151B parted -s /dev/etherd/e10.1 mkpart primary ext3 6...
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? >> >
2012 Jan 18
0
blockdev --flushbufs required [was: parted issue/question
...ot; does indeed make parted behave the same with dm-backed storage as with other devices. Adjusting my small example, cd /tmp; truncate -s 10m g && loop=$(losetup --show -f g) echo 0 100 linear $loop 0 | dmsetup create zub dev=/dev/mapper/zub parted -s $dev \ mklabel gpt \ mkpart efi 34s 34s \ mkpart root 35s 35s \ mkpart roo2 36s 36s \ u s p blockdev --flushbufs $dev # FIXME: required with device-mapper-1.02.65-5 # write random bits to p1 dd of=${dev}p1 if=/dev/urandom count=1 dd if=${dev}p1 of=p1-copy.pre count=1 parted -s $dev mkpart p4 37s 37s b...
2013 Apr 10
4
Formatting a USB Drive
...mmands. (parted) select /dev/sdg Using /dev/sdg (parted) print Model: DROBO DroboPro (scsi) Disk /dev/sdg: 17.6TB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags (parted) and looking at an example of creating a partition: (parted) mkpart primary 106 16179 I dont know what to do next since I dont see any partitions listed. I dont know what do to for the start and end point, although the man page says "size in MB". Do I just say 0 to (and convert 16.0TB to MB? Yes, I know it says 17.6 TB but this model drobo can only suppo...
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 @@
2010 Apr 01
2
[PATCH node 1/3] Enables ability to have a common shared root
...TDRIVE + partprobe -s $ROOTDRIVE + log "Labeling Drive: $ROOTDRIVE" + parted $ROOTDRIVE -s "mklabel ${LABEL_TYPE}" + log "Creating Root and RootBackup Partitions" + let RootBackup_end=${ROOT_SIZE}*2 + parted $ROOTDRIVE -s "mkpart primary ext2 0M ${ROOT_SIZE}M" + parted $ROOTDRIVE -s "mkpart primary ext2 ${ROOT_SIZE}M ${RootBackup_end}M" + # sleep to ensure filesystems are created before continuing + sleep 10 + mke2fs ${ROOTDRIVE}1 -L Root + mke2fs ${ROOTDRIVE}2 -L RootBackup...
2007 Sep 24
2
parted - is there a problem
.../dev/sdc. The system came with some SCCI drives that are labeled as /dev/sda and /dev/sdb. I was surprised that the sata drives used sdc. Are the sata drives considered more like SCCI or IDE drives? The real problem occurred when I tried to partition the drive with parted. I used he command mkpart to form one partition of 300 gigs which created /dev/sdc1, and then after 'quiting' parted used mkfs.ext3 to create a file system. Everything went as expected with the ability to mount the file system and copy files into it. However, /dev/sdc1 disappeared when I rebooted. After the reboot...
2015 Feb 27
2
OT: AF 4k sector drives with 512 emulation
...when we started getting 3TB drives a couple-three years ago. Proper alignment made a measured... trying to remember, but I think it was at *least* 20% difference in throughput. Alignment's easy: using parted (the user-hostile program), if you do go in with parted -a optimal /dev/drive, and do mkpart pri ext4 0.0GB 100% (for non-root drives, for example), it's aligned correctly. mark
2015 Jan 13
3
CentOS 6.6 64-bit won't install on a 3 TB disk
> I'm having an issue getting a C6.6 install to work on a 3 TB dual hard >drive system, raid 0. I'm hoping that someone here can help. 1: Is this system booting UEFI or BIOS? 2: Is the disk partitioned with MBR or GPT? 3: Is /boot on its own partition? 3TB drives are larger than MBR and BIOS properly support, so they're only really expected to work on a system partitioned with
2017 Feb 15
1
Kickstart - part ignore onpart ??
I'm ill, i'm german ... the script is looks ok, copy from a slim installation of anaconda. Insert only the "pre part" and part /boot --onpart=/dev/sda1 part / --onpart=/dev/sda2 part swap --onpart=/dev/sda3 As i wrote: Jump over to another console and the partitions are there. Sincerely Andy Am Mittwoch, den 15.02.2017, 11:16 -0800 schrieb John R
2017 Feb 15
2
Kickstart - part ignore onpart ??
...e # clear the MBR and partition table dd if=/dev/zero of=/dev/sda bs=512 count=1 parted -s /dev/sda mklabel msdos TOTAL=`parted -s /dev/sda unit mb print free | grep Free | awk '{print $3}' | cut -d "M" -f1` let SWAP_START=$TOTAL-820 let ROOT_END=$TOTAL-128-820 parted -s /dev/sda mkpart primary ext2 0 128 parted -s /dev/sda mkpart primary ext2 128 $ROOT_END parted -s /dev/sda mkpart primary linux-swap $SWAP_START $TOTAL mkfs.ext2 /dev/sda1 mkfs.ext2 /dev/sda2 mkswap /dev/sda3 %end %addon com_redhat_kdump --enable --reserve-mb='auto' %end %anaconda pwpolicy root --minl...
2010 Jul 21
0
[PATCH] RFC: Advanced Storage Configuration
...log "cleanup the storage using standard disk tools." @@ -569,48 +627,52 @@ reread_partitions() create_hostvg() { - log "Creating LVM partition" - - if [ "$ROOTDRIVE" = "$HOSTVGDRIVE" ]; then - parted "$HOSTVGDRIVE" -s "mkpart primary ext2 ${RootBackup_end}M -1" - hostvgpart="3" - elif [ "$BOOTDRIVE" = "$HOSTVGDRIVE" ]; then - parted "$HOSTVGDRIVE" -s "mkpart primary ext2 ${boot_size_si} -1" - hostvgpart="2" - # FIXME : set fo...
2010 Mar 31
1
[PATCH node] Handle space in storage wwid
..._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 "mklabel ${LABEL_TYPE}" + parted "$BOOTDRIVE" -...
2015 Feb 27
0
OT: AF 4k sector drives with 512 emulation
On 2/27/2015 3:06 PM, m.roth at 5-cent.us wrote: > Alignment's easy: using parted (the user-hostile program), if you do go in > with parted -a optimal /dev/drive, and do > mkpart pri ext4 0.0GB 100% (for non-root drives, for example), it's > aligned correctly. i found -a optimal to do weird things, and almost always complain. I just use -a none now, and specify partition start in (512b) sectors, like.. # parted /dev/sdc align none mklabel gpt...
2012 Jan 09
2
centos6.2, parted and alignment
...e one big partition I want, it gives me a warning. # parted /dev/sda "mklabel gpt" Warning: The existing disk label on /dev/sda will be destroyed and all data on this disk will be lost. Do you want to continue? Yes/No? yes # parted -a optimal /dev/sda "mkpart primary 128s -1s" Warning: You requested a partition from 65.5kB to 81.0TB. The closest location we can manage is 65.5kB to 81.0TB. Is this still acceptable to you? Yes/No? yes Warning: The resulting partition is not properly aligned for best performance. Ignore/...