LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 08: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, 09:55 AM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,214

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
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, 11:24 AM   #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, 06:14 AM   #4
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,214

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
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, 03: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 03:11 PM.
 
Old 05-08-2004, 03: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, 07: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, 09:11 AM   #8
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,214

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
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-11-2004, 11:16 PM   #9
emetib
Member
 
Registered: Feb 2003
Posts: 484

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



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

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

All times are GMT -5. The time now is 04:03 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
Open Source Consulting | Domain Registration