Breaking News

Noctua introduces NT-CP1 Carbice carbon nanotube thermal pad for AM5 CORSAIR Launches the HX1000i SHIFT CRYSTAL Power Supply GIGABYTE Expands Its Local AI Portfolio with the Launch of AI TOP AERO Powered by NVIDIA RTX SPARK Viltrox Announces Exclusive Deals and Shopping Rewards for Black Friday 2026 ASUS Showcases ProArt GR1X, ProArt P16 & P14 Laptops, ProArt OLED Monitors, and AI-Powered Solutions for Creatives at Adobe MAX 2026

logo

  • Share Us
    • Facebook
    • Twitter
  • Home
  • Home
  • News
  • Reviews
  • Essays
  • About
    • Submit News

    • Contact Us
    • Privacy

    • Promotion
    • Advertise

    • RSS Feed

Search form

Linux Raid Guide

Feb 14,2007 0

2. Partitioning

 

Review Pages

1. Introduction
2. Partitioning
3. Kernel and modules
4. Making the array
5. Performance

 

Untitled Document Get r00t

Ok, I'm not really going to show you how to get root access. Let's assume that you have root access and proceed to the next step.

Partitioning

This is not hard, if you know how to make partitions with any of the popular linux tools, like cfdisk, fdisk, sfdisk and parted. My favorite is cfdisk, because it is relatively easier and confusion has to be avoided when partitioning your drive! Your distribution definitely includes one or more of these tools and, quite possibly, a graphical front-end for KDE or Gnome, so choose the one that suits you best. All you have to do is make two partitions of the approximate same size (say 10GB or whatever you think is necessary for your most important files) and mark them as “fd” instead of “82” or “83”. This last step is particularly important, because “fd” marks the partition as Linux RAID autodetect and enables the kernel to recognize it at boot time as part of a RAID setup.

―DANGER―

Creating and deleting partitions can result in loss of data. Be really careful.

Backup your drives at this point. No, not later. Now.

You partition table should contain the new partition, marked as Linux raid autodetect. Repeat the process for both disks, of course. In the following example, /dev/sdb5 and /dev/sda5 will be used as part of the RAID mirror. The fact that they are both fifth is irrelevant, we could have used /dev/sdb1 and /dev/sda3, but not /dev/sda1 and /dev/sda2, because they are on the same device:

The output from /dev/sda follows, here too we have a partition of equal length (97659103 blocks), marked as Linux raid autodetect (fd):

Now we have to ensure that the system RAID devices are available under /dev (ls -l /dev/md* or ls -l /dev/md/*). Most probably they are available. If not, you can create them with (mdadm can also do that automatically, but you should also know how to do it by hand):

or (depending on your /dev structure)

We will now assume that you will use the /dev/md0 device, so substitute accordingly if you're using /dev/md/0 or /dev/md1, for example. You are free to use any other name, of course, like /dev/md/home or /dev/md/stuff. You only need one md device for every RAID array.

 

Review Pages

1. Introduction
2. Partitioning
3. Kernel and modules
4. Making the array
5. Performance

 

Pages

  • « first
  • ‹ previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • next ›
  • last »

Linux

Tags: Linux
Previous Post
Motorola Q (Sprint Moto Q)
Next Post
Asus P5W64WS Pro

Related Posts

  • NVIDIA Accelerates Open Data Center Innovation

  • System76's Lemur Pro Linux Laptop Now Available

  • System76 Is Designing Its Own Keyboard

  • Microsoft Brings Microsoft Defender ATP to Linux, iOS and Android

  • Tuxedo Computers and Manjaro Team Up on New Linux Laptops

  • Huawei Unveils The openEuler CentOS-based Linux Distribution

  • Lazarus Group Targets Linux With New Malware

  • Microsoft Teams Available on Linux

Latest Reviews

GMK TriggerKey
Gadgets

GMK TriggerKey

The Best Online Casino Games to Play on a Browser
Enterprise & IT

The Best Online Casino Games to Play on a Browser

be quiet! Light Wings Pro IO fan
Cooling Systems

be quiet! Light Wings Pro IO fan

Why Intelligent Firmware Matters More Than Peak Throughput in NAS Systems
Enterprise & IT

Why Intelligent Firmware Matters More Than Peak Throughput in NAS Systems

Fanxiang MP83 M.2 NVMe SSD Enclosure
Enterprise & IT

Fanxiang MP83 M.2 NVMe SSD Enclosure

Popular News

MSI’s Latest AMD X870E MAX & EVO Series Motherboards

MSI’s Latest AMD X870E MAX & EVO Series Motherboards

COLORFUL Launches iGame B850M ULTRA Series Micro-ATX Motherboards

COLORFUL Launches iGame B850M ULTRA Series Micro-ATX Motherboards

COLORFUL Launches iGame B850I MINI OC V14 Motherboard

COLORFUL Launches iGame B850I MINI OC V14 Motherboard

COLORFUL Presents Limited Edition Chitu MAG-60 Magnetic Keyboard Inspired by the Year of the Horse

COLORFUL Presents Limited Edition Chitu MAG-60 Magnetic Keyboard Inspired by the Year of the Horse

COLORFUL Launches the iGame X870E VULCAN W OC Motherboard

COLORFUL Launches the iGame X870E VULCAN W OC Motherboard

COLORFUL Presents iGame Z890 ULTRA-S W and iGame Z890M ULTRA Z Motherboards

COLORFUL Presents iGame Z890 ULTRA-S W and iGame Z890M ULTRA Z Motherboards

COLORFUL Launches iGame X870E ULTRA-S V14 Motherboard

COLORFUL Launches iGame X870E ULTRA-S V14 Motherboard

COLORFUL Expands B850 Motherboard Lineup with New CVN, Battle-Ax, and MEOW Models

COLORFUL Expands B850 Motherboard Lineup with New CVN, Battle-Ax, and MEOW Models

Main menu

  • Home
  • News
  • Reviews
  • Essays
  • About
    • Submit News

    • Contact Us
    • Privacy

    • Promotion
    • Advertise

    • RSS Feed
  • About
  • Privacy
  • Contact Us
  • Promotional Opportunities @ CdrInfo.com
  • Advertise on out site
  • Submit your News to our site
  • RSS Feed