LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-07-2004, 09:04 AM   #1
thezero
LQ Newbie
 
Registered: May 2004
Posts: 4

Rep: Reputation: 0
Mounting RAID


I've been using linux(Mandrake 9.2) for about a year or so now at school, and I'm finally ready to go 100% linux at home. But my only issue is my RAID drives. I've got 3 80gb Maxtor's. One is on the normal IDE port, and it's used for the OS only. The other two are on a striped RAID setup. (HPT-370 I believe) I have well over 150gb of data that I absolutely can not afford to risk losing upon installing linux/mounting/etc. My question is, once I get linux up and running on the first drive, how can I then mount the RAID drives(they are FAT32) without the risk of accidentally formatting them?
(In case it's relevant, the motherboard is an FIC AN19E.)
 
Old 05-07-2004, 10:55 AM   #2
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,187

Rep: Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526
I can not think of any reason why this should be a problem. Linux won't "format" anything, unless you tell it to; have confidence in that.

You didn't say what type of raid you are running. I can only assume it is a hardware raid controller. For saftey sake, always have a physical backup of your criticial data. Don't think you can not loose it with raid, you can.

As far as mounting the drives, you will have to edit fstab and make the entries for each drive. There are abundant examples on this forum. Hope this gets you going.
 
Old 05-07-2004, 12:24 PM   #3
thezero
LQ Newbie
 
Registered: May 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Is this the right way to do it in fstab?
/dev/hda1 /mnt/raid
/dev/hda2 /mnt/raid

If not, would you mind providing me with a couple of links? Thanks.
 
Old 05-08-2004, 07:14 AM   #4
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,187

Rep: Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526
There are two steps to mount the file system. You need to make the directory entry in your root file system. Then edit yoru fstab file, /etc/fstab. You have to edit it as root user.

Here are the two fat32 partitions I have mounted as an example.

/dev/hda1 /mnt/win_c vfat codepage=850,iocharset=iso8859-1,umask=000 0 0
/dev/hda5 /mnt/win_d vfat codepage=850,iocharset=iso8859-1,umask=000 0 0

The first field is the physical partition. The second field has to match the entry you make in the root file system. The third field is the type of file system; vfat should work for your fat32 file system.

You can get all the details by typing man fstab or man mount. Hope this helps.
 
Old 05-08-2004, 04:09 PM   #5
thezero
LQ Newbie
 
Registered: May 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks much and if I wanted to mount them as one combined drive, it would be something like this:

/dev/hda1 /mnt/win_g vfat codepage=850,iocharset=iso8859-1,umask=000 0 0
/dev/hda5 /mnt/win_g vfat codepage=850,iocharset=iso8859-1,umask=000 0 0

Right? I only ask because they are on a RAID-0, so I can't have them seperate...

/me hopes to not have just sounded like an idiot

Last edited by thezero; 05-08-2004 at 04:11 PM.
 
Old 05-08-2004, 04:19 PM   #6
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
If you have a proper RAID controller you should mount them as one single partition, i.e. /dev/md1 or whatever your RAID device is. Do not mount the partitions individually.


Håkan
 
Old 05-10-2004, 08:54 PM   #7
thezero
LQ Newbie
 
Registered: May 2004
Posts: 4

Original Poster
Rep: Reputation: 0
mdcreate raid0 /dev/md0 /dev/hda3 hda4
mdadd
mdrun
mount /dev/md0 /mnt/RAID

Is this right?
 
Old 05-11-2004, 10:11 AM   #8
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,187

Rep: Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526
I guessing from your last post you are asking how to make a directory. The command is mkdir. At a command prompt type man mkdir. The mount command will work, you shoun't need it if you correctly edit your fstab file. I'm not sure what those other commands? are. You may want ot have a look athttp://wiki.linuxquestions.org/wiki/Main_Page for help with various commands.
 
Old 05-12-2004, 12:16 AM   #9
emetib
Member
 
Registered: Feb 2003
Posts: 482

Rep: Reputation: 33
thezero, no. from memory, if you do that you will lose all of the data. that is to make a raid partition. not mount it.

if it's a pci raid controller, then it should only show up as one drive, since it's a raid 0 array.
 
  


Reply


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
Mounting RAID filesystem manudath Linux - Software 0 02-24-2005 09:32 PM
Mounting linear-raid partition daniel_lidstrom Linux - Software 2 12-29-2004 06:04 AM
mounting a windows raid drive Peter Geraedts Linux - Newbie 0 04-12-2004 01:56 PM
Help!! Mounting a raid array Cannedsoup Linux - Hardware 1 07-07-2003 07:26 PM
Help mounting Raid the_newbie Linux - Hardware 10 05-24-2003 07:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:56 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration