LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-23-2005, 09:40 AM   #1
unfunfofmpc
LQ Newbie
 
Registered: Jun 2005
Posts: 6

Rep: Reputation: 0
hdb unable to be mounted/formatted, even seen on cfdisk.


Hi I am new here as you can tell. I am pretty used to linux; however, this problem, I just cant seem to figure out.

I had to erase disk / create new partitions for my install as my previous install got mucked up (was the same linux os, mandrake 10.2 LE), and the harddrive hdb was could not even be found while i was setting up partitions for my new install.
It's there in /dev/hdb, i can do hdparm on it, however, it says "Unable to read" when I attempt to fdisk it, and cfdisk doesnt even show it.

What the hell is wrong with it? Is it stuck in some write protected mode from the original mandrake install? There must be some way to get it working again, I know the HD works fine.

Thanks for any help.
 
Old 06-23-2005, 10:26 PM   #2
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,773

Rep: Reputation: 197Reputation: 197
hdb would be the slave drive on the primary IDE controller. Have you changed the jumpers on the drive? It should be a slave drive. Cable select sometimes doesn't work well. Have you disabled it in the BIOS?
Are you running Fdisk as super user or user? I assume you are using the MDK install cd. If not you'll need to be root to Fdisk.
What do you have at hda?
If the BIOS recognizes it, and it is configured correctly, you should be able to write to it.
 
Old 06-24-2005, 03:31 AM   #3
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Mint
Posts: 6,642

Rep: Reputation: 69
Welcome to LQ. When running cfdisk, the default always assumes /dev/hda. If you want to run cfdisk on a different drive, you need to explicitly declare it. Try this
Code:
cfdisk /dev/hdb
Additionally, this issue could be caused by a bad cable connection or incorrect jumper setting, and like teckk suggested, I'd also recommend *not* using cable select. Instead, make *all* your drives either a master or a slave. Good luck with it -- J.W.
 
Old 06-24-2005, 04:10 PM   #4
unfunfofmpc
LQ Newbie
 
Registered: Jun 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Well, cfdisk says
Quote:
FATAL ERROR: Cannot read disk drive
Press any key to exit cfdisk
fdisk doesnt even see the drive.

I was running both as root.
The thing is, it was working fine (hdb) before my installation got messed up due to some driver conflicts with my ATI radeo 9700 pro. I had to erase disk, set up new partitions, and install mandrake 10.2 again. Strange thing about mandrake is, if I let it autoallocate/autochoose mountpoints, it does /mnt and /mnt/home instead of / and /home, and only gives /mnt (root) 5 gbs of space, which, when done putting on all the packages i need for development , gives me less than a gb of working space on my root partition. I had a hell of a time getting around that to give my root part 15~ gb of space.
I had hdb mounted as /storage , in my original install.

Could it have, because of an improper shutdown and subsequent format, been stuck in some protected mode? Thats the only thing I can think of...

PS. I have everything on hda# atm.

Last edited by unfunfofmpc; 06-24-2005 at 04:11 PM.
 
Old 06-25-2005, 03:53 PM   #5
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Mint
Posts: 6,642

Rep: Reputation: 69
Sudden/improper shutdowns can definitely corrupt your filesystem, so that could the cause of the problem. If you are sure all the cable connections are OK and that the drive is jumpered correctly, maybe you might consider temporarily removing /dev/hda from your PC, then relocate /dev/hdb to /dev/hda. (Note you'll also need to temporarily change the jumper setting.) The idea here of course is to temporarily take the current /dev/hda out of the picture.

Once that is done, restart the installation process, but only to the point where you do the partitioning work. Ignore the automatic partitioning option, and manually declare your own partitions (in this case it sounds like you just want to make it a single partition). As long as the partitioning exercise is successful, cancel the rest of the installation, return both drives to their original positions (confirm again that the jumpers are appropriate) and you should be ready to go -- your original /dev/hda drive would be exactly as you left it, and presumably the /dev/hdb drive will be recognized by fdisk and cfdisk. If so, you can then manually mount it, add it to fstab, etc and you'll be sitting pretty.

On the other hand if the repartitioning of /dev/hdb fails, and neither fdisk nor cfdisk can recognize it, then I'd have to conclude that the drive is defective in some way. Good luck with it -- J.W.
 
Old 06-25-2005, 04:44 PM   #6
unfunfofmpc
LQ Newbie
 
Registered: Jun 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Alright ill try that later on today thanks ill report on how it went.
 
Old 06-26-2005, 09:10 PM   #7
unfunfofmpc
LQ Newbie
 
Registered: Jun 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Hooray. Thank you very much J.W. Your suggestion worked flawlessly.
 
Old 06-26-2005, 09:38 PM   #8
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Mint
Posts: 6,642

Rep: Reputation: 69
Outstanding - I'm stoked that I was able to help. Congrats on solving the problem, and thanks for posting back. -- J.W.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Unable to write to mounted partitions Kamikazee MEPIS 6 06-03-2005 03:59 PM
fdisk unable to open hdb dr_zayus69 Linux - Hardware 2 01-11-2005 09:04 PM
Getting to /dev/hdb in CFDISK mattp Linux - Laptop and Netbook 3 01-09-2005 02:11 AM
unable to see the files from my cdrom after mounted for a while... sirpelidor Linux - Newbie 8 11-23-2003 12:33 AM
cfdisk hdb instead of hda deceasedcomrade Slackware 1 11-20-2003 10:22 PM


All times are GMT -5. The time now is 03: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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration