LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mounting my second harddisk? (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-my-second-harddisk-355144/)

amer_58 08-20-2005 07:16 AM

Mounting my second harddisk?
 
what is the command that will list all harddisks that are connected to my pc, I need to know bc i want to mount my second hd.

Thanks.

b0nd 08-20-2005 07:24 AM

use "fdisk /dev/hdx"
replace x with a/b/c/d one by one
where ever u find some details press "p" there

regards

saman007uk 08-20-2005 07:30 AM

Code:

fdisk -l
Will show a list of all partitions/hard-drives.

amer_58 08-20-2005 07:31 AM

sorry but do u mean use fdisk before system startsup or on my terminal?

b0nd 08-20-2005 07:33 AM

on your terminal dear

amer_58 08-20-2005 07:39 AM

ok i found my hd,
Disk /dev/hdb: 8447 MB, 8447459328 bytes

so is this right to add in my fstab file:

/dev/hdb /myfiles ntfs defaults,users,umask=0002 0 0

b0nd 08-20-2005 07:46 AM

if you would like to give permission to users other than root then its required to add "owner/users" there othewise
/dev/hdb /myfiles ntfs defaults 0 0
this much is enough..

saman007uk 08-20-2005 07:49 AM

NO. You are trying to mount a hard-disk, and not a partitions - you can only mount partitions.

If the disk is new and blank, you have to create some partitions before you can use it. To do that:
Code:

cfdisk /dev/hdb

amer_58 08-20-2005 07:53 AM

Quote:

Originally posted by saman007uk
NO. You are trying to mount a hard-disk, and not a partitions - you can only mount partitions.

If the disk is new and blank, you have to create some partitions before you can use it. To do that:
Code:

cfdisk /dev/hdb

the harddisk is already partitioned and contains windows files.

b0nd 08-20-2005 08:00 AM

u need to read this

amer_58 08-20-2005 08:26 AM

thanks ruudra i got it mounted...


All times are GMT -5. The time now is 09:10 AM.