LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-06-2006, 05:20 PM   #1
wetnose23
LQ Newbie
 
Registered: Dec 2005
Posts: 28

Rep: Reputation: 15
Question locate and mount 2nd harddrive


hi. <----newb

i have slack10.2 reiserfs as my main OS on the master harddrive... i have a 2nd harddrive with reiserfs sitting as a slave on the chain.. how do i go about making slack detecting it and being able to mount it. thankx
 
Old 01-06-2006, 05:37 PM   #2
Nikon01
Member
 
Registered: Jul 2003
Distribution: Slackware 10.0
Posts: 196

Rep: Reputation: 30
Well following that your first drive is hda1 then your second drive should be hda2. hda2 should show up in /dev. So go to /dev while in root and ln hda2 whateveryoufeellikenamingyourlink. Then edit the fstab file to include it(don't know what fstab is? check out shilo's website under the thread "how I do it all", he has a page on fstab).

That is assuming your setup is as mentioned above. It would probably be best to take a look at your fstab and if you can't make heads or tails of it post it here. That way we can tell you if your drive is already mounted or if it is awaiting you in /mnt or whatever.
 
Old 01-06-2006, 05:39 PM   #3
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
You can use fdisk to display the partitions on the second hard drive. Since it's on the same IDE channel as the first drive you can use:

Code:
/sbin/fdisk -l /dev/hdb
Once you have the partitions listed, you can add them to /etc/fstab. If the partition you wanted to mount was /dev/hdb5, you would use something like:

Code:
/dev/hdb5   /mnt/extra   reiserfs   defaults   1   2
If you have specific mount requirements, you would change defaults to the options that you need. See the man pages for fstab and mount for more details.
 
Old 01-06-2006, 06:04 PM   #4
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
Quote:
Originally Posted by Nikon01
Well following that your first drive is hda1 then your second drive should be hda2. hda2 should show up in /dev. So go to /dev while in root and ln hda2 whateveryoufeellikenamingyourlink. Then edit the fstab file to include it(don't know what fstab is? check out shilo's website under the thread "how I do it all", he has a page on fstab).
First, There is no way of knowing that this guys setup has the first drive recognized as /dev/hda. It may be, but them again, maybe it isn't. He never said.

His first drive is not /dev/hda1. dev/hda1 is the first PARTITION of the first drive. It follows that /dev/hda2 is not the second drive. /dev/hda2 is the second PARTITION on the first drive. If the first drive is /dev/hda, it is likely that the second drive is /dev/hdb (and the first partiton of the second drive is /dev/hdb1).

There is no need to make a link to a device in order to mount it. This is especially true if the second HDD is internal (won't be changing it often, so persistant naming is not an issue).

Editing /etc/fstab is optional, depending on the needs of the user.

Finally, I recommend you do:
1)
Code:
cat /var/log/dmesg |grep -i disk
This will tell you what HDDs are recognized on your system

2) Figure out which drive you are working with. Find out about that drive. If for example, the second HDD is /dev/hdb, use this command to learn about the device:

Code:
cfdisk /dev/hdb
Look at the info. Jot it down, if you like. Quit cfdisk without doing anything else. You should now know the partitions and their filetypes.

3) Figure out where you want to mount the device. If the directoty doesn't exist, create it.

4) Use your new info to mount the device

Code:
mount -t ? ?? ???
? = Filesystem Type (You learned this with cfdisk)
?? = Device to mount (e.g. /dev/hdb1)
??? = Where to mount the device (e.g. /mnt/hd)

5) Optional - Edit /etc/fstab
 
Old 01-06-2006, 06:04 PM   #5
wetnose23
LQ Newbie
 
Registered: Dec 2005
Posts: 28

Original Poster
Rep: Reputation: 15
wow! quick reply thankx

-------------------------------------------------
Disk /dev/hdd: 30.7 GB, 30750031872 bytes
255 heads, 63 sectors/track, 3738 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdd1 * 1 31 248976 83 Linux
/dev/hdd2 32 3738 29776477+ 5 Extended
/dev/hdd5 32 3738 29776446 8e Linux LVM

Disk /dev/hda: 120.0 GB, 120060444672 bytes
255 heads, 63 sectors/track, 14596 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 113 907641 82 Linux swap
/dev/hda2 * 114 14596 116334697+ 83 Linux
---------------------------------------------------

10.2 is on the /dev/hda the one i want access to is /dev/hdd.

when i mount /dev/hdd1 i get access to a few undesireable files.
i want access to my media files somewhere on that HD.. i tried mounting "hdd2" and "hdd5" and both fail to do so.

------------------------------------------------------------
mount -t reiserfs /dev/hdd2 /mnt/other
mount: wrong fs type, bad option, bad superblock on /dev/hdd2,
missing codepage or other error
(aren't you trying to mount an extended partition,
instead of some logical partition inside?)
In some cases useful info is found in syslog - try
dmesg | tail or so
------------------------------------------------------------

some help?
 
Old 01-06-2006, 06:19 PM   #6
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
Quote:
Originally Posted by wetnose23
-------------------------------------------------
Disk /dev/hdd: 30.7 GB, 30750031872 bytes
255 heads, 63 sectors/track, 3738 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdd1 * 1 31 248976 83 Linux
/dev/hdd2 32 3738 29776477+ 5 Extended
/dev/hdd5 32 3738 29776446 8e Linux LVM


when i mount /dev/hdd1 i get access to a few undesireable files.
i want access to my media files somewhere on that HD.. i tried mounting "hdd2" and "hdd5" and both fail to do so.

------------------------------------------------------------
mount -t reiserfs /dev/hdd2 /mnt/other
mount: wrong fs type, bad option, bad superblock on /dev/hdd2,
missing codepage or other error
(aren't you trying to mount an extended partition,
instead of some logical partition inside?)
In some cases useful info is found in syslog - try
dmesg | tail or so
------------------------------------------------------------
There are three types of partiton Primary, Extended, and Logical. There can only be four Primary partitions. In order to add more partitions, Extended and Logical are used. An Extended partition is not a "real partition". It's a holding place for all Logical partitions. You can't mount an Extended partition (which is exactly what the error message is telling you).

Unfortunately, I can't help much more than that. It appears as though the drive (/dev/hdd) is formatted for LVM (Logical Volume Manager). I've never worked with that before.
 
Old 01-06-2006, 06:37 PM   #7
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
There is a post somwhere in the past day or so that deals with an LVM partition...Sorry I can't help much more than that. Not even sure it deals with you issue... You could always search the forum, or, Google it
 
  


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
Accessing 2nd Harddrive D4ve G Linux - Newbie 3 07-19-2005 12:09 AM
2nd harddrive... and Goodbye Windows XP audibel Debian 6 03-02-2005 08:58 PM
Installing linux on 2nd harddrive(dual boot) windows on seperate harddrive lysol Linux - Software 25 08-03-2004 09:33 AM
seeing a 2nd harddrive. keegan Linux - Newbie 2 01-06-2004 02:05 PM
2nd harddrive dilberim82 General 1 05-19-2002 06:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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