Why is only a fraction of my new second hardrive detected?
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Why is only a fraction of my new second hardrive detected?
I just added a 160GB hardrive for storage with an IDE Controller Card. I have a few problems.
1. A small portion seems to be detected when I type df -h. The output was: (hdg is the second hardrive)
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 7.5G 2.2G 5.0G 30% /
/dev/hda1 97M 7.5M 85M 9% /boot
none 31M 0 31M 0% /dev/shm
/dev/hdg1 92M 4.1M 83M 5% /abc
2. The ABC directory I created with gedit is also showing only 92 MB of space but the Hardware Browser shows the full amount of diskspace.
I have a feeling I partitioned the disk wrong but I only used one partition and I started on cylinder 1 and ended on the last cylinder, 19929. I eventually want to turn this machine into a Personal Video Recorder so its essential that I can use the full capacity of this second hardrive and I read that the 160GB drive is too large to use as a boot drive.
I've used fdisk to partition and format the disk. This is probably a newbie question but is cfdisk a different command? Is tells me that it is not found.
Sounds to me like it could just be a partitioning issue. As root, run
Code:
cfdisk /dev/hdg
Based on your description, it may simply be that you've only created a single 92Mg partition (/dev/hdg1) and that the remaining space is unallocated. If that's the case, and you see a huge chunk of free space on the drive, then your choice would be to either create one or more partitions from it (giving you /dev/hdg2, /dev/hdg3, etc) or you could drop the existing 92Mg partition and reallocate all 200G as a single huge partition. Note that any changes to your partitioning scheme might also require changes to fstab.
Alternatively, it may be that you have successfully created other partitions on the 200G drive, but you just haven't mounted them. The "fdisk -l" command will simply list what you've got.
cfdisk is a different command than fdisk, but they both perform the same fuction. Personally I just think cfdisk is easier to use. Good luck with it. -- J.W.
Usage: fdisk [-b SSZ] [-u] DISK Change partition table
fdisk -l [-b SSZ] [-u] DISK List partition table(s)
fdisk -s PARTITION Give partition size(s) in blocks
fdisk -v Give fdisk version
Here DISK is something like /dev/hdb or /dev/sda
and PARTITION is something like /dev/hda7
-u: give Start and End in sector (instead of cylinder) units
-b 2048: (for certain MO disks) use 2048-byte sectors
When I put an l as in lollipop there instead of the number 1 I get:
Disk /dev/hda: 8455 MB, 8455200768 bytes
16 heads, 63 sectors/track, 16383 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 203 102280+ 83 Linux
/dev/hda2 204 15993 7958160 83 Linux
/dev/hda3 15994 16383 196560 82 Linux swap
Disk /dev/hdg: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdg1 1 19929 160079661 83 Linux
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.