LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-23-2004, 11:33 AM   #1
Brian Puccio
LQ Newbie
 
Registered: May 2004
Posts: 5

Rep: Reputation: 0
Adding RAID array LSI 150-6 to exisiting Debian install


(Yes, i've searched, yes, I've googled.)

I've just put in a 5x250GB SATA RAID 5 array into my Debian (unstable) system. I'm a bit new to linux, I'm familiar with it as a server, but it's new to me as a desktop OS. That being said, I've never added a drive. so far, I fdisk'd it to create a primary partition:

Code:
Command (m for help): p
 
Disk /dev/sdb: 1003.9 GB, 1003982159872 bytes
255 heads, 63 sectors/track, 122060 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
 
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1      122060   980446918+  83  Linux
 
Command (m for help):
This seems correct (one drive lost for parity) to me.

Next, I should use mke2fs, correct? I tried it (with the j switch to it's ext3) and it said that it was not a partition, but rather an entire device. Rather than screw something up, here I am. I do want to mke2fs -j /dev/sdb, right?

After that, I need to edit /etc/fstab, correct? Here is what it currently reads:

Code:
alpha:/etc# cat fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/sda5       none            swap    sw              0       0
/dev/sda1       /               ext3    defaults,errors=remount-ro 0       1
/dev/scd0       /media/cdrom    iso9660 ro,user,noauto  0       0
/dev/scd0       /media/cdrom0   iso9660 ro,user,noauto  0       0
/dev/scd1       /media/cdrom1   iso9660 ro,user,noauto  0       0
/dev/scd0       /cdrom          iso9660 ro,user,noauto  0       0
My current SCSI disk has numbers after it, 5 and 1, where did those numbers come from and should sdb have numbers as well (I'm assuming each number is a parttion)?

So the entry I should add should read:

Code:
/dev/sdb        /tb             ext3    defaults,errors=remount-ro 0       1
And that will let me access the drive at /tb, correct? After which I can put a link from my home directory to that for quick and easy access?

Thanks!

EDIT: If Debian has some automagic way to do this (which would rock) I'd like to go that way. I know Debian has it's own ways of doings things sometimes.

Last edited by Brian Puccio; 05-23-2004 at 11:35 AM.
 
Old 05-23-2004, 12:20 PM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Replace every /dev/sdb with /dev/sdb1 and you are in business.

The /dev/sdb represents the whole drive, /dev/sdb1 is first partition in it. With fdisk you have successfully created the partition (containing the whole drive). Now you have to create a filesystem for the partition: 'mke2fs -j /dev/sdb1' should do it. Next, to have a permanent mountpoint, you have to create a directory /tb (eg. mkdir /tb) and have a line in fstab; similar to the one you suggested, but with /dev/sdb1.

In fact, creating a partition is not necessary in a strict sense in linux, but *strongly* recommended.

If you have a one TB of space, I would recommend using LVM and reiserfs with it. YMMV.
 
Old 05-23-2004, 02:52 PM   #3
Brian Puccio
LQ Newbie
 
Registered: May 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for the info, that clears things up. I'll give it a shot once I get back home.
 
  


Reply



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
LSI MegaRAID Sata 150-2 + Debian 3.1 lil_drummaboy Linux - Hardware 1 08-19-2005 09:07 AM
Problems adding Highpoint 1520 Raid 1 array to working RH9 spifl Linux - Hardware 3 07-16-2005 08:47 AM
Trying to install Debian (woody) on IBM x335 w/LSI u320 JIZ Linux - Hardware 1 10-07-2004 03:14 PM
How do Install to system with 3 disks, 2 of which are RAID array ? Raptor Ramjet Slackware 1 09-28-2003 09:07 AM
need help installing debian on highpoint raid array sev_v2 Linux - Distributions 2 08-23-2002 04:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:41 AM.

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