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 03-21-2004, 01:46 PM   #1
limbless
LQ Newbie
 
Registered: Nov 2002
Distribution: Red Hat 8.0
Posts: 5

Rep: Reputation: 0
Help fdisking a new drive


Hi gang -
So, I installed a 20 GB hard drive as a slave drive in my Red Hat 8 box (this is a Linux only box - no windows partitions). I ran fdisk on /dev/hdb1 (the new drive) and it only recognizes it as having 964 cylinders. I created the primary partition and then ran MKFS.ext3 and it shows up as a 7.3 GB drive. I ran the Gnome Hardware Browser and it lists cylinders 1 - 964 as ext3 and cylinders 964 - 2435 as Free Space which Fdisk won't let me make part of partition 1.
I did the change cylinders option in FDISK and changed it to 2435 and it looks like it works but df -h says it's only a 7.3 GB drive.
Any other ideas?

Thanks!
Chris


Edited: "hdb2" to read "hdb1"

Last edited by limbless; 03-21-2004 at 04:11 PM.
 
Old 03-21-2004, 01:56 PM   #2
Pwnz3r
Member
 
Registered: Jan 2004
Location: Lancaster, OH
Distribution: Gentoo
Posts: 393

Rep: Reputation: 30
It sounds to me as if the partition table is being read incorrectly. That happened to my current HDD once I changed partition from Linux loaded within the drive itself. I used the Gentoo Live CD to straighten it out. I reccomend running fdisk and creating a new DOS partition table. If that doesn't work, get some sort of Live CD and do it from that.
 
Old 03-21-2004, 03:14 PM   #3
AutOPSY
Member
 
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
I ran fdisk on /dev/hdb2

this should be fdisk /dev/hdb not hdb2.
 
Old 03-21-2004, 04:10 PM   #4
limbless
LQ Newbie
 
Registered: Nov 2002
Distribution: Red Hat 8.0
Posts: 5

Original Poster
Rep: Reputation: 0
That was a typo. It should read
"I ran fdisk on /dev/hdb1"
 
Old 03-21-2004, 05:40 PM   #5
Pwnz3r
Member
 
Registered: Jan 2004
Location: Lancaster, OH
Distribution: Gentoo
Posts: 393

Rep: Reputation: 30
Oh, that's the problem. You should run fdisk on a partition number, just the drive like this.

fdisk /dev/hdb

I hope that works for you.
 
Old 03-21-2004, 08:44 PM   #6
limbless
LQ Newbie
 
Registered: Nov 2002
Distribution: Red Hat 8.0
Posts: 5

Original Poster
Rep: Reputation: 0
That was it!
Thank you!
I just dropped off the 1 and it worked
 
  


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
Noobed my harddrive, partitions missing after fdisking godzorz Linux - General 1 09-25-2005 09:33 AM
Installing SuSE on an external FireWire drive: YaST can't edit partitions on drive kivimaki Linux - Distributions 2 09-13-2004 08:52 PM
slackware 9.1 mounting problems (cd drive, cd writer drive, win partition (ntfs)) mr.gizm0 Slackware 8 05-11-2004 06:23 PM
fdisking SeT Linux - Software 5 09-16-2003 07:28 PM
Cannot Copy Files From Network FAT32/NTFS Drive to My Local Linux Drive michaelh Linux - Networking 3 10-29-2002 10:27 AM

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

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