LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-02-2005, 04:36 PM   #1
timsch75
Member
 
Registered: Feb 2004
Location: austin, TX
Distribution: slackware 10
Posts: 169

Rep: Reputation: 30
can't access HD with c/fdisk, but can with qparted


I am putting a system together that is using the second hard drive from my previous system (the MBR was on the first HD). I need to mark the first partition as bootable so that I can install the necessary-evil OS before I can install slack. fdisk and cfdisk both give me the message "unable to open /dev/hda", but I can view the partitions with qparted, and have even played some music files on /dev/hda5 with xmms. I'm using Knoppix at the moment. I know of no other way to mark the partition as bootable than through fdisk.


What is the issue here? thanks
 
Old 10-02-2005, 05:25 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Are you absolutely positively sure the HDD in question is configured as hda?
 
Old 10-03-2005, 08:18 AM   #3
timsch75
Member
 
Registered: Feb 2004
Location: austin, TX
Distribution: slackware 10
Posts: 169

Original Poster
Rep: Reputation: 30
Knoppix and Qparted list it as /dev/hda. I've tried /dev/hd* with * being a-f, all with the same result.
 
Old 10-03-2005, 08:42 AM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
My best guess is something is wrong with IDE cable or HD jumpers. Please double-check these.
 
Old 10-03-2005, 01:21 PM   #5
timsch75
Member
 
Registered: Feb 2004
Location: austin, TX
Distribution: slackware 10
Posts: 169

Original Poster
Rep: Reputation: 30
The jumpers were changed appropriately, and I'd be surprised if I could have accessed the drive like I have if the IDE cable was malfunctioning.
 
Old 10-03-2005, 01:55 PM   #6
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Quote:
Originally posted by timsch75
... and I'd be surprised if I could have accessed the drive like I have if the IDE cable was malfunctioning.
You'd be even more surprised if you'd know how weird HDD's can function when cable is crippled (or C/S cable is misused).
Seriously, there cannot be much more than an hardware problem. My second best guess is something is wrong with /dev filesystem. By any chance, may your root filesystem be mounted with 'nodev' option?
 
Old 10-03-2005, 10:07 PM   #7
timsch75
Member
 
Registered: Feb 2004
Location: austin, TX
Distribution: slackware 10
Posts: 169

Original Poster
Rep: Reputation: 30
As I mentioned, this hd used to be the master drive in my old system. I put the old slave hd in the exact configuration as I had before and put the jumpers as before also. This time it booted up and gave me LILO, as before. I clicked on the Windows partition and it went there. It continued the setup process for installing windoze, which I cancelled, but it was the direction I was looking for. The thing is, this slave is an old drive and I don't want it in my new system, so I took it back out. I booted up with slack 10.0. I got to the root prompt before setup. Cfdisk would not allow access to /dev/hda giving error messages, but fdisk would. I got in, deleted all partitions on the master (now the only drive) and recreated all of them, ensuring that the first partition was bootable. I go to reinstall windows 2000 and it puts the necessary files on the hd and reboots. I get to the point where I'm to let it boot from the hard disk, and it does the same thing as before. It gives me:

L 01 01 01 01 01 01 01 01 ..etc... 01

and hangs up.

I've put the jumpers on both "cable select" and "master w/0 slave", both with the same result. I've rechecked BIOS. I don't see how this drive can be co-dependent at this point.

I agree this has to be hardware. This really has me stumped. The /dev filesystem is reading the same regardless of the program I check it with.
 
Old 10-04-2005, 04:55 AM   #8
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
I'd recommend to use 'dd' to overwrite the MBR and the beginning of the disk with FF's. Can't remember the exact command from memory, search LQ, it is mentioned many times here. This L(i) 01 01 thing is a broken old Lilo installation and has to be removed.
 
Old 10-04-2005, 06:15 AM   #9
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
Try the following, then reinstall something - Windoze, Linux, shouldn't matter (all you partitions will be gone).
Code:
dd if=/dev/zero of=/dev/hda bs=1 count=510
If you still have problems, try this;
- do the following *only* if you intend to put a M$ost O/S on the disk first.
Even then, I can only confirm XP can handle this (because I specifically tested it), not Win2k.
Linux (as in {c}fdisk) will NOT talk to the disk after this, until a partition table (actually the signature bytes) has been written back to the disk.

Clear ... ???
Code:
dd if=/dev/zero of=/dev/hda bs=1 count=512
XP installer will tell you you have an unformatted disk, and ask if you want to continue - hopefully W2k will do likewise.
 
Old 10-04-2005, 06:25 PM   #10
timsch75
Member
 
Registered: Feb 2004
Location: austin, TX
Distribution: slackware 10
Posts: 169

Original Poster
Rep: Reputation: 30
thank you both so very much. The crippled lilo was indeed the problem, and the suggested solution took care of it.
 
  


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
weird fdisk problem (Fdisk unable to see winxp partitions) khidot Slackware - Installation 5 04-07-2007 09:26 PM
Qparted keeps freezing. Rackerz MEPIS 1 11-13-2005 07:59 AM
qparted error Parley Linux - Laptop and Netbook 1 03-11-2005 08:21 PM
Help Using Fdisk Dannydy Linux - Hardware 3 07-20-2004 09:26 AM
FDISK help PionexUser Linux - Newbie 3 08-01-2003 02:45 AM

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

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