LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-24-2009, 06:39 PM   #1
hedron
Member
 
Registered: Jul 2009
Location: NYC
Distribution: Slackware64-multilib 15.0, SARPI, artix
Posts: 401

Rep: Reputation: 32
fdisk displays incorrect number of heads


I'm trying to format my hard drive with fdisk and I want to implement two partitions in raid0. I set up one drive fine, but fdisk reads the heads wrong on the second disk. It says 255 heads on the first drive and 16 heads on the second. The problem is that fdisk displays different numbers in the beginning/end columns and the number of blocks is different even when the partitions are the same size.

How can I force fdisk to use the same head number on both drives? How can I make sure that I get two same size partitions at the end of the drive? Or is there a better solution?

I've tried sfdisk and cfdisk and it's the same thing.
 
Old 10-24-2009, 08:51 PM   #2
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
For RAID of any description, you must have at least two hard drives, it will not succeed with two partitions. Secondly, all HDD's must be the same size for RAID!
 
1 members found this post helpful.
Old 10-24-2009, 10:23 PM   #3
hedron
Member
 
Registered: Jul 2009
Location: NYC
Distribution: Slackware64-multilib 15.0, SARPI, artix
Posts: 401

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by irishbitte View Post
For RAID of any description, you must have at least two hard drives, it will not succeed with two partitions. Secondly, all HDD's must be the same size for RAID!
I have two disks. I want to use mdadm to set up RAID. I don't want to use my crappy motherboard RAID. I'm sorry if I didn't make that clear, I had just assumed people who could answer my question would guess that I want to use mdadm, since that is the best software RAID solution.
 
Old 10-24-2009, 10:51 PM   #4
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
Ok, are both sizes the same? I can't imagine why fdisk would give different numbers unless different sizes?
 
Old 10-24-2009, 10:56 PM   #5
hedron
Member
 
Registered: Jul 2009
Location: NYC
Distribution: Slackware64-multilib 15.0, SARPI, artix
Posts: 401

Original Poster
Rep: Reputation: 32
Hmm... The problem is that I don't know what to input into fdisk to make the two partitions the same size, since fdisk is showing two different head sizes on the disks so the block numbers come out different. I'll repost with pics of what I mean, so you can see for yourself. I have to reboot since I'm in windows now.
 
Old 10-24-2009, 11:25 PM   #6
hedron
Member
 
Registered: Jul 2009
Location: NYC
Distribution: Slackware64-multilib 15.0, SARPI, artix
Posts: 401

Original Poster
Rep: Reputation: 32
OK, when I rebooted the head size was identical on both drives, so everything is OK now. Weird. I guess it was just being stubborn.

Thanks for your help, though.
 
Old 10-25-2009, 07:38 AM   #7
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
Good stuff! Glad it worked out for you. For the future, whenever I'm doing anything like this, I use gparted on the systemrescuecd
 
  


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
"Bad magic number on superblock" after recreating partition using fdisk djbob Linux - Software 4 11-28-2008 05:26 PM
LibClamAV Warning: Incorrect magic number in optional header jlovas Linux - Software 1 06-02-2008 06:55 PM
Using dual monitors/dual heads displays a black screen (Fedora 6) ttnunam Linux - General 4 04-21-2007 12:50 AM
Scaling reports incorrect number of steps. xpromisex Linux - Laptop and Netbook 7 08-01-2006 10:37 PM
Gnucash displays incorrect date paul.nel Linux - Software 1 12-05-2004 01:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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