LinuxQuestions.org
Review your favorite Linux distribution.
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 08-20-2005, 07:16 AM   #1
amer_58
Member
 
Registered: Mar 2004
Distribution: Slackware 10.2
Posts: 213

Rep: Reputation: 30
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.
 
Old 08-20-2005, 07:24 AM   #2
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

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

regards
 
Old 08-20-2005, 07:30 AM   #3
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 363

Rep: Reputation: 33
Code:
fdisk -l
Will show a list of all partitions/hard-drives.
 
Old 08-20-2005, 07:31 AM   #4
amer_58
Member
 
Registered: Mar 2004
Distribution: Slackware 10.2
Posts: 213

Original Poster
Rep: Reputation: 30
sorry but do u mean use fdisk before system startsup or on my terminal?
 
Old 08-20-2005, 07:33 AM   #5
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
on your terminal dear
 
Old 08-20-2005, 07:39 AM   #6
amer_58
Member
 
Registered: Mar 2004
Distribution: Slackware 10.2
Posts: 213

Original Poster
Rep: Reputation: 30
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
 
Old 08-20-2005, 07:46 AM   #7
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
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..
 
Old 08-20-2005, 07:49 AM   #8
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 363

Rep: Reputation: 33
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
 
Old 08-20-2005, 07:53 AM   #9
amer_58
Member
 
Registered: Mar 2004
Distribution: Slackware 10.2
Posts: 213

Original Poster
Rep: Reputation: 30
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.
 
Old 08-20-2005, 08:00 AM   #10
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
u need to read this
 
Old 08-20-2005, 08:26 AM   #11
amer_58
Member
 
Registered: Mar 2004
Distribution: Slackware 10.2
Posts: 213

Original Poster
Rep: Reputation: 30
thanks ruudra i got it mounted...
 
  


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 a scsi harddisk Problems colpe Linux - Newbie 17 09-11-2005 03:56 PM
Mounting a scsi harddisk Problems colpe Linux - Distributions 1 09-10-2005 05:40 PM
Harddisk problem with mounting [ntfs] Enemyforce Linux - General 3 02-19-2004 02:02 PM
Mounting new harddisk Bodycount Linux - Newbie 1 10-26-2003 07:32 AM
mounting ext3 harddisk Goatdemon Linux - General 4 08-16-2003 01:57 AM

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

All times are GMT -5. The time now is 04:07 AM.

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