LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to mount a New Hard Disk ! ? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-mount-a-new-hard-disk-104585/)

bennethos 10-16-2003 03:03 AM

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:newbie:

vegeta_nc 10-16-2003 03:09 AM

Try this.
mount /mnt/memphis /dev/sda
or
mount /dev/sda /mnt/memphis

vegeta_nc 10-16-2003 03:10 AM

Then do.

mount

And paste the output.

praveenk 10-16-2003 03:15 AM

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

bennethos 10-16-2003 03:37 AM

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

praveenk 10-16-2003 03:42 AM

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.

bennethos 10-16-2003 04:09 AM

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 ?


All times are GMT -5. The time now is 08:05 PM.