Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General > Member Success Stories
User Name
Password Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.


  Search this Thread
Old 11-28-2006, 09:41 PM   #1
LQ Newbie
Registered: Nov 2006
Location: Germany - Franken - Nuremberg
Distribution: Slackware 11
Posts: 28

Rep: Reputation: 15
How to do a Raid-0 Installation with one boot :-)

How to do a Raid-0 Installation with one boot :-)

Hi, I read several How-To and everybody told you have to install at first linux and then you can create a raid-1.

But I want a raid-0 without installing linux first on a single disk. And YES I know a Raid-0 with 3 disks is not the best choice, but I have a good data backup system.

My system:

3 * Sata-150 Harddisks 80GB
Asus A8N-Sli Motherboard with nforce4 Chipset

Ok, here is my How-To:

Warning! You will lost ALL YOUR DATA on your Harddrive !!!

1. Deactivate nvidia Raid in Bios

2. Boot with Slackware 11 DVD

3. Start fdisk (not cfdisk)

	-fdisk /dev/sda
	-o (New Dos Partition Table)
	Do the same with /dev/sdb and /dev/sdc
4. Start cfdisk
Create on each Harddisk exact the same partitions
	PartNr. Size     Flag    Type (later)Mount (later)
	1       2000     Boot    Ext2        /boot
	2       2000     Swap				
	3      14000     Linuxraidautodetect reiserfs /
	4      62026.84  Linuxraidautodetect reiserfs /home
5. Create a file called /etc/raidtab with the following entries:

	raiddev	/dev/md0
			raid-level		0
			nr-raid-disks	3
			chunk-size		4
			persistent-superblock	1
			device	/dev/sda3
			raid-disk	0
			device	/dev/sdb3
			raid-disk	1
			device	/dev/sdc3
			raid-disk	2
	raiddev	/dev/md1
			raid-level		0
			nr-raid-disks	3
			chunk-size		4
			persistent-superblock	1
			device	/dev/sda4
			raid-disk	0
			device	/dev/sdb4
			raid-disk	1
			device	/dev/sdc4
			raid-disk	2
6. Execute these 3 commands:

	-mkraid /dev/md0
	-mkraid /dev/md1
	-raidstart --all
7. Finished! Start the Setup :-)

8. Maybe you should save the /etc/raidtab on floppy, so you don't have to enter it by hand again if something goes wrong. Because I'm not really a crack. I installed Linux 25 times until I got this way. I'm a try and error guy....

9. Lilo installation:

Use the expert mode! Maybe you have to edit it by hand /mnt/etc/lilo.conf and install it with lilo -r /mnt

This Lilo configuration is not the original I'm using at setup, but it's nearly the same:

# LILO configuration file
# generated by 'liloconfig'
# Start LILO global section
boot = /dev/sda
append="hda=ide-scsi hdc=ide-scsi" #Need for vmware player
#compact        # faster, but won't work on all systems.
timeout = 30
# VESA framebuffer console @ 1024x768x64k
vga = 791
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# ramdisk = 0     # paranoia setting
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
  initrd = /boot/initrd.gz #Added after kernel upgrade
  root = /dev/md0
  label = Linux
  read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends
10. Here is the fstab, notice the pri=1 on the swap drives.

/dev/sda2        swap             swap        defaults,pri=1   0   0
/dev/sdb2        swap             swap        defaults,pri=1   0   0
/dev/sdc2        swap             swap        defaults,pri=1   0   0
/dev/md0         /                reiserfs    defaults         1   1
/dev/sda1        /boot            ext2        defaults         1   2
/dev/md1         /home            reiserfs    defaults         1   2
/dev/cdrom       /mnt/cdrom       auto        noauto,user,ro   0   0
/dev/fd0         /mnt/floppy      auto        noauto,user      0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0

Last edited by madking75; 11-29-2006 at 03:49 AM.
Old 12-29-2006, 05:35 AM   #2
Registered: Dec 2005
Location: New York
Distribution: Debian/GNU
Posts: 235

Rep: Reputation: 31
amazing. impressive. thanks!


boot, help, howto, install, installation, raid0, raid1, setup

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
linux installation on dual boot software raid Sjaaksken Linux - Hardware 10 12-18-2007 04:31 PM
using windows nt boot loader to dual boot in raid erichoangnguyen Linux - Newbie 7 12-21-2006 08:13 PM
Hardware raid 1 | Fedora 5 | 3Ware raid | boot gomanza Linux - Hardware 4 09-28-2006 12:56 PM
RAID 5 after installation visitashu Red Hat 1 04-26-2006 07:07 AM
Installation on ViA VT6410 RAID MudPuppy Fedora 1 02-21-2006 04:28 AM > Forums > Linux Forums > Linux - General > Member Success Stories

All times are GMT -5. The time now is 11:14 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration