LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-17-2006, 08:22 PM   #1
vidguy
Member
 
Registered: Jan 2006
Posts: 33

Rep: Reputation: 15
Fdisk Error: "Unable to seek on /dev/hdb


I apologize in advance for the length of this post. I'm a Linux newbie and I'm not sure if this is as complicated as think, but here it goes anyway. I have a 160 Gb Seagate hard drive that has Ubuntu installed on it. I took it out of my old machine that I took apart after my Soyo motherboard bit the dust. I'm now building a new system with a Gigabyte GA-BX2000 motherboard. I have my 160 Gb HD connected to my primary IDE bus. My problem with this is that my HD was too big for the BIOS to recognize (it would just freeze), so I switched the jumper on the back of the HD to limit the size to 32 Mb (This also made the drive "primary slave" because the jumper is off the "Master" setting). I'm thinking that I need to update the BIOS for it to be able to handle a bigger drive. Anyway, BIOS is fine with the current jumper setting on the HD. Ubuntu will not boot now (sync problem, I guess because I changed the jumper on the hard drive??), so I'm trying to install Slackware 10.2. After I log in as 'root' and get to the prompt to partition the disk, I type in

fdisk /dev/hdb (hdb because HD is "primary slave")

I get a message that there is so many cylinders, more than 1024, blah, blah, blah. and then I get an error:
"Unable to seek on /dev/hdb"

I've also tried

cfdisk /dev/hdb and get this error:

"FATAL ERROR: Bad primary partition 0. Partition ends after end-of-disk"

I'm thinking this may be because I changed the jumper to set the HD to 32 Mb. Do I need to erase the HD, reconfigure it, take a baseball bat to it or what?
Very confused as I'm new to this partitioning thing.
Any help is appreciated, thanks!

Last edited by vidguy; 02-17-2006 at 08:33 PM.
 
Old 02-17-2006, 08:34 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Personally I'd fix up the BIOS.
When in doubt, use "fdisk -l" (that's ell as in list).

You'll probably find your disk is /dev/hda - nothing to do with the "slave" setting.
In this case.

Last edited by syg00; 02-17-2006 at 08:35 PM.
 
Old 02-17-2006, 08:41 PM   #3
vidguy
Member
 
Registered: Jan 2006
Posts: 33

Original Poster
Rep: Reputation: 15
fdisk -l returns the same error:

"Unable to seek on /dev/hdb"

Is there a way to update the bios from the bios screen? Or do I need to install an operating system like Windows and then flash the bios to update? I found the update for my motherboard, but it looks like I need Windows installed or at least DOS.
 
Old 02-17-2006, 09:23 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Sorry, of course it's hdb ... d'oh.
If you have nothing on that disk you want to keep, try
"dd if=/dev/zero of=/dev/hdb bs=1 count=510"

This will zero the boot code, and the partition table.
Then try cfdisk again and see what it thinks it is.
BTW make sure the BIOS has the disk as LBA (or AUTO maybe).

As for doing the BIOS, generally (recent) motherboard should have a CD that should allow updates.
Failing that go get a DOS boot image (off the net) and dd that to a floppy. Then you can boot that and do the flash.
There may be legal issues with this if you don't have a MS-DOS (or Windose) license. Best might be to look for a DR-DOS image; I've seen them somewhere.
 
Old 02-17-2006, 10:36 PM   #5
vidguy
Member
 
Registered: Jan 2006
Posts: 33

Original Poster
Rep: Reputation: 15
Nice! I typed in what you said:

dd if=/dev/zero of=/dev/hdb bs=1 count=510

That's the answer I was looking for.
I can use both fdisk and cfdisk to partition now. I thought I was going to have to get a new hard drive or something. As far as the BIOS goes, I do have it set to AUTO and it works fine with the jumper setting on the HD. I'll try switching the jumper after I upgrade the BIOS. I have the floppy ready, but for now it's on to installing Slackware 10.2.

Thanks for your help!
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
lilo says, "L 01 01 01" and fdisk says, "Unable to seek on /dev/hda1" clausawits Linux - General 3 12-31-2007 09:33 PM
Error: "Unable to seek on /dev/hdb" vidguy Linux - Hardware 2 02-15-2006 01:34 AM
fdisk unable to open hdb dr_zayus69 Linux - Hardware 2 01-11-2005 08:04 PM
fdisk returns "unable to find /dev/hda" cfdisk crashes. cirofren Linux - Newbie 2 11-06-2003 12:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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