LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-22-2009, 10:47 PM   #1
Indy452
Member
 
Registered: Jul 2008
Location: Kansan
Distribution: solydK
Posts: 78

Rep: Reputation: 16
Having trouble finding the extra hard drive I have installed.


I'm using a fresh install of Xubuntu 8.10 and I have two ATA hd's. One is a simple 20GB for the OS and the slave is a larger 80gb hd for media storage. The problem is I am unable to locate the slave. Is there a method to finding these? I simply want it for transfering pictures from my camera and music files for storage is all. I have the OS hd set as "master" and have the media hd set as "slave", I assume I did that correctly? I then installed Xubuntu on the entire 20gb hd and after installation I am unable to locate the media 80gb hd. Have I made an error on the way I set up the drives? (slave/master)

Thanks if you can help me, I'm new to this stuff.

Neal
 
Old 02-22-2009, 11:11 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
If the data cables have 80 wires then you probably should set both drives to cable select rather than master or slave.

Once that is done there are several ways to detect the drives in Ubuntu. The way that works for all distributions is to open a terminal window and enter the fdisk -l command.
Code:
fdisk -l
 
Old 02-22-2009, 11:25 PM   #3
Indy452
Member
 
Registered: Jul 2008
Location: Kansan
Distribution: solydK
Posts: 78

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by stress_junkie View Post
If the data cables have 80 wires then you probably should set both drives to cable select rather than master or slave.

Once that is done there are several ways to detect the drives in Ubuntu. The way that works for all distributions is to open a terminal window and enter the fdisk -l command.
Code:
fdisk -l

Thanks for the reply. I don't mean to sound terribly ignorant, but how do I tell besides actually counting each wire if it has 80 wires?
By the looks of it I would say the cable has 80.
I wasn't sure about "cable select" so I set as master/slave but I'll sure look further into cable select. What does "cable select" represent anyway?

Thanks!
 
Old 02-22-2009, 11:29 PM   #4
Indy452
Member
 
Registered: Jul 2008
Location: Kansan
Distribution: solydK
Posts: 78

Original Poster
Rep: Reputation: 16
-desktop:~$ fdisk -l
Cannot open /dev/sda
Cannot open /dev/sdb
neal@neal-desktop:~$


BTW,this is the Current result of the fdisk command.
 
Old 02-23-2009, 12:07 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,480

Rep: Reputation: 3454Reputation: 3454Reputation: 3454Reputation: 3454Reputation: 3454Reputation: 3454Reputation: 3454Reputation: 3454Reputation: 3454Reputation: 3454Reputation: 3454
Use sudo for the fdisk command - but it appears 2 disks are certainly seen.
 
Old 02-23-2009, 05:53 PM   #6
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Quote:
Originally Posted by Indy452 View Post
Thanks for the reply. I don't mean to sound terribly ignorant, but how do I tell besides actually counting each wire if it has 80 wires?
By the looks of it I would say the cable has 80.
I wasn't sure about "cable select" so I set as master/slave but I'll sure look further into cable select. What does "cable select" represent anyway?
Thanks!
If you had been working with IDE drives for a while you would be able to tell if the data cable had 40 or 80 wires just by looking. Unfortunately I recommend counting the wires. The good news is that you only have to count the first 40 to see if there are any more wires. :-)

Cable select means that the disk drive can determine its position on the cable so the master/slave is set automatically.

The master disk is always on the end of the cable. Setting a disk to 'master' means that you engage terminating resistors in the disk controller. These are used to prevent reflections of the electrical signal back down the cable just as terminators are used on coaxial network cables for the same reason.

So there's a bit of hardware nuts and bolts for you. :-)
 
Old 02-24-2009, 08:02 AM   #7
Indy452
Member
 
Registered: Jul 2008
Location: Kansan
Distribution: solydK
Posts: 78

Original Poster
Rep: Reputation: 16
Thanks for the help!

Here is the results of the sudo fdisk command.



neal@neal-desktop:~$ sudo fdisk -l
[sudo] password for neal:

Disk /dev/sda: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x92419241

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2327 18691596 83 Linux
/dev/sda2 2328 2434 859477+ 5 Extended
/dev/sda5 2328 2434 859446 82 Linux swap / Solaris

Disk /dev/sdb: 30.0 GB, 30060527616 bytes
255 heads, 63 sectors/track, 3654 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000096

Device Boot Start End Blocks Id System
neal@neal-desktop:~$


I hate to have to post all this but this is what reads from fdisk.

I'm not even sure what the /dev/sda5 is? So looking at this I see that sda1 has a small asterik next to it under boot. Should sda2 have an asterek also?
Does this mean sda2 is not loading at boot? How do I alter it so it loads at boot?

Neal
 
Old 02-24-2009, 05:55 PM   #8
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Quote:
Originally Posted by Indy452 View Post
Thanks for the help!

Here is the results of the sudo fdisk command.

neal@neal-desktop:~$ sudo fdisk -l
[sudo] password for neal:

Disk /dev/sda: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x92419241

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2327 18691596 83 Linux
/dev/sda2 2328 2434 859477+ 5 Extended
/dev/sda5 2328 2434 859446 82 Linux swap / Solaris
This says that the first disk that Linux sees is a 20 GB disk.

This disk has three partitions named sda1, sda2, and sda5. sda1 and sda2 are primary partitions while sda5 is a logical volume partition. This partition is described as a swap partition so that is probably true. This is unusual but obviously not impossible.

The asterisk in the sda1 record means that that partition is marked as active for booting. Only Microsoft operating systems care about this setting.

Quote:
Originally Posted by Indy452 View Post
Disk /dev/sdb: 30.0 GB, 30060527616 bytes
255 heads, 63 sectors/track, 3654 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000096

Device Boot Start End Blocks Id System
neal@neal-desktop:~$
This means that the second disk that Linux sees is a 30 GB disk.

This disk has no partitions.

Quote:
Originally Posted by Indy452 View Post
... So looking at this I see that sda1 has a small asterik next to it under boot. Should sda2 have an asterek also?
Not necessarily. Only Microsoft operating systems care about the asterisk.

Quote:
Originally Posted by Indy452 View Post
Does this mean sda2 is not loading at boot?
No.
Quote:
Originally Posted by Indy452 View Post
How do I alter it so it loads at boot?
Neal
That is determined by the boot loader. You can use the Microsoft boot loader if Windows is installed or you can use GRUB or LILO. The last two are generally installed by the Linux installer. (Only one of these two will be installed.)
 
  


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
Ubuntu: Installed to external hard drive; boot to primary hard drive gives error 22 dcorb62 Linux - General 7 09-05-2007 12:28 AM
Want to add an extra hard drive ? Babe963 Linux - Newbie 6 09-04-2006 06:47 PM
Extra Hard drive invisible? Hopeful Red Hat 1 05-19-2005 01:27 PM
Extra hard drive. New distro? Misteree Linux - General 21 02-20-2003 05:42 PM
extra hard drive finger51 Linux - Newbie 7 09-24-2002 09:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:25 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
Open Source Consulting | Domain Registration