LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-06-2005, 08:38 AM   #1
deranged58
LQ Newbie
 
Registered: Dec 2005
Location: Singapore
Distribution: Fedora Core 4
Posts: 3

Rep: Reputation: 0
Unable to access additional hard disk


I have two hard disks in my computer, and after installing Fedora on one, I cannot "see" the second hard disk. Fedora doesn't allow me to access the other hard disk at all. Any idea why? Or do I need to download additional software? Thanks in advance.
 
Old 12-06-2005, 08:51 AM   #2
Okie
Senior Member
 
Registered: Mar 2002
Location: Oklahoma
Posts: 1,154

Rep: Reputation: 187Reputation: 187
you need to add the second disk's info to /etc/fstab

then create empty directories to correspond with the mount points...
 
Old 12-06-2005, 08:57 AM   #3
deranged58
LQ Newbie
 
Registered: Dec 2005
Location: Singapore
Distribution: Fedora Core 4
Posts: 3

Original Poster
Rep: Reputation: 0
Erm, ok, but how? Cos I'm a complete newbie at this, so I'd appreciate any help I'd get. =)
 
Old 12-06-2005, 09:07 AM   #4
Okie
Senior Member
 
Registered: Mar 2002
Location: Oklahoma
Posts: 1,154

Rep: Reputation: 187Reputation: 187
/dev/hda = primary master
/dev/hdb = primary slave
/dev/hdc = secondary master
/dev/hdd = secondary slave

with the partition numbering added to the correct disk location, just add the info in single lines to fstab

syntax depends on how fedora identifies the disks, slackare is going to be slightly different so if i posted a copy of mine it will only have limited value, hopefully a fedora guru will jump in here and be of more help to you...

and i only have one drive so all mount points are /dev/hda# except for my cdrom & floppy

Code:
/dev/hda2        swap             swap        defaults         0   0
/dev/hda3        /                ext3        defaults         1   1
/dev/hda1        /boot            ext3        defaults         1   2
/dev/hda5        /usr             ext3        defaults         1   2
/dev/hda6        /home            ext3        defaults         1   2
/dev/hda7        /save            ext3        noauto,defaults  1   2
/dev/cdrom       /cdrom           auto        noauto,users,ro  0   0
/dev/fd0         /floppy          auto        noauto,users     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
 
Old 12-06-2005, 09:26 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
First, find out what your existing drive is...

Using mtab: type: "cat /etc/mtab" and find the device that is mounted on root (/)

Here is my mtab entry for root:
/dev/hdg1 / ext3 rw,errors=remount-ro 0 0
This says that /dev/hdg1 is on root-----hdg1 means partition 1 on drive hdg

If you have a basic system, your main drive is probably hda.

Now look for your new drive with fdisk: type:
"fdisk /dev/hdb" it will be obvious if it finds a drive
then:
"p" to list the partitions. If there are none, you will need to create some.

Now---stop and read some things before proceeding:

man fdisk
man mkfs
man mount
man fstab
 
Old 12-06-2005, 11:53 AM   #6
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,284
Blog Entries: 4

Rep: Reputation: 3293Reputation: 3293Reputation: 3293Reputation: 3293Reputation: 3293Reputation: 3293Reputation: 3293Reputation: 3293Reputation: 3293Reputation: 3293Reputation: 3293
I believe that fstab is the file to edit; that mtab is an information-only file that's maintained by the system...

The drive must:
  • Be properly installed.
  • Be partitioned.
  • Have a filesystem (or swap) installed on each partition.
  • Be listed in /etc/fstab, with an empty-directory set aside for each mount-point.
  • Actually be mounted... which the system can be told to do at startup, or which root can do.
Notice the subtle difference between /dev/hdc and /dev/hdc2. The first is a reference to the entire device. The second is a reference to the second partition (counting from '1', not 0) on that device. The fact that it is hdc tells me that it is the master device on the second EIDE chain.
 
Old 12-06-2005, 12:54 PM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
mtab tells you what is actually mounted

you can mount the drive without putting anything in fstab

Quickest way to see what's where might be fdisk.......
 
  


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
how to access to second hard disk ? medya General 6 10-27-2005 12:45 AM
Unable to boot from hard disk, but cdrom kinda works georgel_2004 Slackware - Installation 5 10-26-2004 09:20 PM
hard disk access staudman Linux - Hardware 2 07-25-2004 07:54 AM
How do I access my other hard disk partitions?? Bilal Linux - Newbie 4 12-21-2003 06:17 AM
Hard disk partitioning and access blake2000 Linux - Hardware 6 05-14-2003 01:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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