LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 07-26-2004, 09:09 AM   #1
quixotic2020
LQ Newbie
 
Registered: Jul 2004
Location: NYC
Distribution: Fedora Core 2
Posts: 7

Rep: Reputation: 0
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.
 
Old 07-26-2004, 09:15 AM   #2
quixotic2020
LQ Newbie
 
Registered: Jul 2004
Location: NYC
Distribution: Fedora Core 2
Posts: 7

Original Poster
Rep: Reputation: 0
I forgot to mention I'm using Fedora Core 2

sorry, I forgot to mention I'm using Fedora Core 2
 
Old 07-26-2004, 10:00 AM   #3
SlackwareMan
Member
 
Registered: Jul 2004
Distribution: Slackware 10
Posts: 120

Rep: Reputation: 15
try this

try write in shell

cfdisk /dev/hdg1
and try to make the things right thair

hope i help ...
roy
 
Old 07-26-2004, 10:31 AM   #4
quixotic2020
LQ Newbie
 
Registered: Jul 2004
Location: NYC
Distribution: Fedora Core 2
Posts: 7

Original Poster
Rep: Reputation: 0
Is cfdisk different?

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.
 
Old 07-26-2004, 10:57 AM   #5
SlackwareMan
Member
 
Registered: Jul 2004
Distribution: Slackware 10
Posts: 120

Rep: Reputation: 15
im al liitle bit new too

i never use fdisk i alwas use cfdisk for make new or delete partitons ...

hope i help ..
roy
 
Old 07-26-2004, 12:12 PM   #6
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
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.
 
Old 07-26-2004, 06:19 PM   #7
quixotic2020
LQ Newbie
 
Registered: Jul 2004
Location: NYC
Distribution: Fedora Core 2
Posts: 7

Original Poster
Rep: Reputation: 0
I think I partitioned correctly.

When I run the p command I get:

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


df -h shows me
/dev/hdg1 92M 4.1M 83M 5% /abc


Any other ideas?
 
Old 07-27-2004, 12:34 AM   #8
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
And what are the results when you run the "fdisk -l" and the "cfdisk /dev/hdg" command? -- J.W.
 
Old 07-27-2004, 08:00 AM   #9
quixotic2020
LQ Newbie
 
Registered: Jul 2004
Location: NYC
Distribution: Fedora Core 2
Posts: 7

Original Poster
Rep: Reputation: 0
With
# cfdisk /dev/hdg

I get
-bash: cfdisk: command not found

And with
# fdisk -1

I get
fdisk: invalid option -- 1

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


Is there something I can do with sectors?
 
Old 07-27-2004, 08:08 AM   #10
quixotic2020
LQ Newbie
 
Registered: Jul 2004
Location: NYC
Distribution: Fedora Core 2
Posts: 7

Original Poster
Rep: Reputation: 0
Sorry, my mistake

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
 
Old 08-04-2004, 11:27 AM   #11
quixotic2020
LQ Newbie
 
Registered: Jul 2004
Location: NYC
Distribution: Fedora Core 2
Posts: 7

Original Poster
Rep: Reputation: 0
Any more thoughts?

I truly am thankful for everyone's help but I still have not resolved the problem. Does anyone have other suggestions?
 
  


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
Second Hardrive Die Woud Linux - Hardware 16 05-04-2005 09:58 AM
New Hardrive jerimya Linux - Newbie 9 07-23-2004 06:21 PM
Ethernet Card detected in one kernel is not detected in the other?? ashishuttarwar Linux - Hardware 14 06-15-2004 10:06 PM
hardrive citrus Linux - Hardware 3 01-18-2004 09:35 AM
How much Hardrive would I need? snatale1 Mandriva 2 12-10-2003 06:31 PM

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

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