LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 05-18-2010, 05:51 AM   #1
bzlaskar
Member
 
Registered: May 2006
Location: Bangalore, INDIA
Distribution: Fedora Core
Posts: 69
Blog Entries: 2

Rep: Reputation: 16
Capacity issues of hard drive


We are facing capacity issues with our hardware . SO , for that we need to either upgrade the hard drive capacity or we will add another hard drive . But before that we want to know how many devices the IDE/ATA channel supports in our host . Also , any way to identify how much maximum capacity hard drive the channel supports . Is there is any utility that will help me to collect the information .

I am aware of dmidecode utility but I think it gives similar information regarding RAM , but not sure of IDE/ATA channel info . Any help will be highly appreciated.


Thanks in Advance
 
Old 05-18-2010, 06:07 AM   #2
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Hi

You can use fdisk to read and print information on your hard drive/s and the relevant partition table.

So for example, for my desktop with a single 250GB SATA drive:

Code:
# fdisk /dev/sda

The number of cylinders for this disk is set to 30401.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x63e16945

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1       12748   102398278+  8e  Linux LVM
/dev/sda2   *       12749       12781      256000   83  Linux
/dev/sda3           12781       19155    51200000   83  Linux
/dev/sda4           19156       30401    90333495    5  Extended
/dev/sda5           19156       19678     4194304   82  Linux swap / Solaris
/dev/sda6           19678       30401    86138879+  8e  Linux LVM
In terms of maximum drive size; I'm pretty sure most of the distro's don't have a limitation in terms of raw device size; but rather there are limitations in terms of the maximum filesystem size.

Cheers
Yas
 
Old 05-18-2010, 06:21 AM   #3
bzlaskar
Member
 
Registered: May 2006
Location: Bangalore, INDIA
Distribution: Fedora Core
Posts: 69
Blog Entries: 2

Original Poster
Rep: Reputation: 16
[QUOTE=alli_yas;3972574]Hi

You can use fdisk to read and print information on your hard drive/s and the relevant partition table.

Thanks for the quick answer . One option for us to replace the existing
hard drive with a new hard drive with higher capacity. Any utility to
know how much maximum capacity the IDE channel supports .


Thanks
 
Old 05-18-2010, 06:24 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,165

Rep: Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784
Depends on the age of your computer. If your computer can handle drives larger then 137GB then basically size is not a problem. Your computer is using 48LBA which has a limit of 144 petrabytes.

demidecode should provide some details on the number of ATA controllers. You can also find out the number from the output of the dmesg command.
 
Old 05-18-2010, 05:27 PM   #5
jefro
Guru
 
Registered: Mar 2008
Posts: 12,087

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
In terms of maximum drive size; I'm pretty sure most of the distro's don't have a limitation in terms of raw device size; but rather there are limitations in terms of the maximum filesystem size.

Well, that isn't exactly true. If you want to be safe most 64 bit OS's have much higher limits. One can get to some of the 32 bit limits in real cases. In theory 32 bit has limits but in real distros they are not always at the limits.

One could use a compressed file system to help space out a bit. Depends on files. Some compress well. Others not so much. A common compression might return 25% or more space. Might go up to 400%

Last edited by jefro; 05-18-2010 at 05:28 PM.
 
Old 05-19-2010, 12:14 AM   #6
bzlaskar
Member
 
Registered: May 2006
Location: Bangalore, INDIA
Distribution: Fedora Core
Posts: 69
Blog Entries: 2

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by michaelk View Post
Depends on the age of your computer. If your computer can handle drives larger then 137GB then basically size is not a problem. Your computer is using 48LBA which has a limit of 144 petrabytes.


demidecode should provide some details on the number of ATA controllers. You can also find out the number from the output of the dmesg command.
I think I was able to collect the necessary info using dmesg . The following can be seen .

==
ata1: SATA max UDMA/133 irq_stat 0x00400040, connection status changed irq 28
ata2: SATA max UDMA/133 irq_stat 0x00400040, connection status changed irq 28
ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata2.00: ATAPI: Optiarc DVD RW AD-7560S, SX03, max UDMA/100, ATAPI AN
==

So , there are two interfaces in the system . and other interface has been used by CD-ROM . So , looks like there is no way to install a second hard drive .

Thanks
Zaman
 
Old 05-19-2010, 12:35 AM   #7
kurwongbah
Member
 
Registered: Apr 2010
Posts: 82

Rep: Reputation: 23
Ehhhh, could be a stupid answer but, open up the case and search for a free connector?
I've got the same dmesg print out, but when I open up the case the cd is connected via an old-school IDE cable and only 1 hd via a sata cable.
So there's still a sata connection free for a hd!
 
  


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
Full Capacity of New Hard Drive Isn't Recognized. Why Not? km4hr Linux - Hardware 5 03-13-2009 10:13 AM
windows/linux hard drive capacity Vensan Linux - Hardware 2 01-19-2007 11:39 AM
Hard Drive showing incorrect capacity xer Linux - Hardware 7 12-27-2006 11:03 PM
Hard drive capacity suddenly "0" edlentz Linux - Hardware 2 08-05-2005 06:30 AM
Hard Drive capacity twantrd Linux - General 2 10-12-2004 03:04 PM


All times are GMT -5. The time now is 03:13 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration