LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-16-2003, 03:03 AM   #1
bennethos
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: -- Slackware for servers -- Debian for desktops --
Posts: 124

Rep: Reputation: 16
Question How to mount a New Hard Disk ! ?


Hi, i have 4x HD in RAID 5, Hardware controller, recompiled kernel etc...

Linux detects the drive as /dev/sda

so i did a cfdisk , made 1 big partition

after that i did : mkfs -t ext3 /dev/sda

then : mkdir /mnt/memphis (name for my sda device)

and then im stuck. i have to put smthing in etc/fstab

can u tell me what to add and how to mount or copy files to this new disk ???

thx
 
Old 10-16-2003, 03:09 AM   #2
vegeta_nc
LQ Newbie
 
Registered: Oct 2003
Location: Spring Tx.
Distribution: Mandrake and Slackware
Posts: 16

Rep: Reputation: 0
Try this.
mount /mnt/memphis /dev/sda
or
mount /dev/sda /mnt/memphis
 
Old 10-16-2003, 03:10 AM   #3
vegeta_nc
LQ Newbie
 
Registered: Oct 2003
Location: Spring Tx.
Distribution: Mandrake and Slackware
Posts: 16

Rep: Reputation: 0
Then do.

mount

And paste the output.
 
Old 10-16-2003, 03:15 AM   #4
praveenk
Member
 
Registered: Oct 2003
Location: /india/tn/chennai/vadapalani/hcl/networking
Distribution: Debian GNU/Linux SID, FreeBSD
Posts: 59

Rep: Reputation: 15
You have only one partition in /dev/sda. It should be /dev/sda1.

mkfs.ext3 /dev/sda1
mkfs -t ext3 /dev/sda1


To mount this partition manually on /mnt/memphis,

mount -t ext3 /dev/sda1 /mnt/memphis

To put it in fstab, add the following line

/dev/sda1 /mnt/memphis ext3 defaults 1 2

This should work fine.

For more info,

man fstab

Last edited by praveenk; 10-16-2003 at 03:19 AM.
 
Old 10-16-2003, 03:37 AM   #5
bennethos
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: -- Slackware for servers -- Debian for desktops --
Posts: 124

Original Poster
Rep: Reputation: 16
the "defaults" doest that mean that i can write and read on the disk ?

cause i saw my buddy writes RW where u write defaults
 
Old 10-16-2003, 03:42 AM   #6
praveenk
Member
 
Registered: Oct 2003
Location: /india/tn/chennai/vadapalani/hcl/networking
Distribution: Debian GNU/Linux SID, FreeBSD
Posts: 59

Rep: Reputation: 15
Default option includes rw support.

Other options are

ro : read only
rw : read write
noauto : no auto mount at start-up
auto : auto mount at start-up
loop : loop device
user : mountable by normal users

You can club options together such that they are not ambiguous.
 
Old 10-16-2003, 04:09 AM   #7
bennethos
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: -- Slackware for servers -- Debian for desktops --
Posts: 124

Original Poster
Rep: Reputation: 16
Thumbs up thx a LOT

I'll try it in the eve.

one more question ...

My boot disk has 3 partitions :

/dev/hda1 (swep 512 mb)
/dev/hda2 (Root) <-----
/dev/hda3 (I would like to mount my home dir here ! )

How can i mount my /home on /dev/hda3 ?
 
  


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
Mount hard disk problem jolly Linux - General 7 03-24-2006 09:36 PM
Trying to mount a second hard disk clucas Linux - Newbie 8 11-11-2004 08:53 PM
How do I get my USB 2.0 Hard Disk to MOUNT? Hawky Linux - Newbie 5 10-26-2004 12:11 AM
How to mount my usb hard disk? raoqn Fedora 1 04-01-2004 05:21 AM
PCMCIA Hard Disk Mount rdanda Slackware 6 04-25-2003 05:10 PM

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

All times are GMT -5. The time now is 06:15 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