Tag Archives: partition

gdisk: A familiar face

I’ll try to keep this one quick; I am already short on time this weekend because of personal obligations. But I also think gdisk is something that resembles fdisk enough (and even perhaps cfdisk and some other partition tools) that mentioning it at all is a rehash of sorts.

Anyway, feast thine eyes:

2014-01-11-l3-b7175-gdisk

gdisk, for what I have seen, just about matches fdisk keypress for keypress, with the major difference being its relative comfort in working with the newer generation of hard drives that use GUID partition tables and not MBR style.

Wikipedia tells me the changeover took place sometime around 2009, and so it doesn’t surprise me that I use it so rarely. The newest, most powerful machine I have in the house right now is 8 years old, and I’m wondering if it isn’t time for me to upgrade that. …

I wouldn’t want to fall behind on the times, now would I? 🙄

Tagged: disk, drive, hard, hdd, information, manager, partition, system

Read More

Quick RAID0 and Drive Encryption on CentOS command line How To.

list drives by typing fdisk -l
create a primary partition and make it Linux Raid Auto partition for each drive.
fd = Linux raid auto

fdisk /dev/sdb
1. type n for new
n
2. type p for primary
p
2. 1 for first partition
1
3. T for type
t
4. fd for Linux Raid Auto
fd

5. do this for all the drives you want to include.

6. fdisk /dev/sdc
then follow the steps above
7. fdisk /dev/sdd
then follow steps above.

Create the raid0 partition (Raid0 is no redundancy but adds the space together.
mdadm –create –verbose /dev/md0 –level=0 –raid-devices=3 /dev/sdb1 /dev/sdc1 /dev/sdd1

setup the encryption and the encryption password.
cryptsetup -c aes-cbc-essiv:sha256 -y -s 256 luksFormat /dev/md0 cryptsetup luksOpen /dev/md0 burn

Format the newly created raid0 partition
mkfs -t ext3 /dev/mapper/burn

Make directory to mount new partition
mkdir /raid0
Mount the new raid0 partition.

mount /dev/mapper/burn /raid0

Done deal! Your now have setup a drive with encryption and a Raid0 partition. It does require a password to mount the drive.