LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-04-2003, 10:27 PM   #1
securehack
Member
 
Registered: Sep 2003
Location: United States
Distribution: Slackware 10.1, Debian 3.0, WinXProSP1, Fedora Core 3
Posts: 425

Rep: Reputation: 30
Unhappy dd: /dev/hda: No such device or address


Hey people,
I would like to know how I can fix a problem with my HDD or software. I have a 30GB HDD on a 400MHz x86 Processor. Recently I had Windows installed on it (we all know how insecure it is). Well... I had my anti-virus software disabled because I did not configure it (msconfig) to start at boot time. I forgot to re-enable it, heh. I opened up the file mIRC.exe (I was going to install mIRC client) and all-of-a-sudden, my computer restarted. Weird I thought to myself and the next thing on my screen were 2 lines.

Non-System disk or disk error
replace and strike any key when ready

I did not know what to do. So I took my Windows XP Professional Disk out and it did not want to work. So I asked my friend and he recommened me to use linux because it is much more reliable. I agreed. So I downloaded Slackware 9.0 from my friends system. I put it in and it booted up fine.

Then I put the command in " cfdisk ". It gave me this output.

FATAL ERROR: Cannot open disk drive
Press any key to exit cfdisk

Even more upset with this huge problem... I asked my friend again that it didn't want to install and it gave me the "FATAL ERROR..." He said the partition was corrupt so I use the " dd " command.

root@slackware:/# dd if=/dev/zero of=/dev/hda
dd: /dev/hda: No such device or address

It did not work.. my friend told me it should work

Now I am depending on you Linux Geniuses to help me out please I am very desperate and any help with be very helpful. Thank you all you wonderful people .

Sincerely,
Abid Kazmi
 
Old 09-05-2003, 12:16 AM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 47
Does your BIOS recognise your system at boot?
 
Old 09-05-2003, 05:41 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,163

Rep: Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784
Non-System disk or disk error
replace and strike any key when ready

This means the PC could not find a bootable drive. If the BIOS does not detect the drive on boot I suspect it has crashed.
 
Old 09-05-2003, 07:20 AM   #4
james.farrow
Member
 
Registered: Mar 2003
Location: UK Darlington
Distribution: Fedora Freebsd Centos
Posts: 288

Rep: Reputation: 30
I'm not sure if this suggestion will help but you could try the Knoppix bootable CD its a full Linux Distro that runs from CD and it may help to diagnose any HDD problems
 
Old 09-05-2003, 07:34 AM   #5
securehack
Member
 
Registered: Sep 2003
Location: United States
Distribution: Slackware 10.1, Debian 3.0, WinXProSP1, Fedora Core 3
Posts: 425

Original Poster
Rep: Reputation: 30
Thank you all soo much. I do have the Knoppix CD and I will try it today. Yes, the BIOS does recognize my system at boot time. So I guess it did crash. Thank you all =)
 
Old 09-05-2003, 04:22 PM   #6
securehack
Member
 
Registered: Sep 2003
Location: United States
Distribution: Slackware 10.1, Debian 3.0, WinXProSP1, Fedora Core 3
Posts: 425

Original Poster
Rep: Reputation: 30
Hello,
Well I had downloaded Knoppix and put it into my CD-ROM drive. It did not boot up. It still gave me the error:

Non-System disk or disk error
replace and strike any key when ready

I asked my friend and he said that it was for Windows FAT FS and/or NTFS FS, heh. So I wanted to know If I downloaded the Wrong Version Of Knoppix =/.

I got the .iso 726,974,464 KNOPPIX_V3.2-2003-07-25-EN.iso from
ftp://raven.cslab.vt.edu/pub/linux/knoppix/

Thank you for all your help =)
Sincerely,
Abid Kazmi
 
Old 09-06-2003, 07:48 AM   #7
james.farrow
Member
 
Registered: Mar 2003
Location: UK Darlington
Distribution: Fedora Freebsd Centos
Posts: 288

Rep: Reputation: 30
Is your BIOS set to boot from CDROM? 1st boot device floppy 2nd decice CDROM then third device IDE-0 or something similar
 
Old 09-06-2003, 10:39 AM   #8
securehack
Member
 
Registered: Sep 2003
Location: United States
Distribution: Slackware 10.1, Debian 3.0, WinXProSP1, Fedora Core 3
Posts: 425

Original Poster
Rep: Reputation: 30
Hello again,
I am not too sure about my BIOS. I think it is from the CD-ROM because I had put in a Slackware and also a WinXP disc in the CDROM and they came up on the screen. Meaning the instructions but both of them kept saying CANNOT READ DISK DRIVE. By the way.. today I tried the Slackware CD again. I looked closely and lots of stuff came up... It said something like:

Drive Status {Not Ready} 0x50
Drive Error {Not Ready} 0x50
Drive Status {Not Ready} 0x50
Drive Error {Not Ready} 0x50
Drive Status {Not Ready} 0x50
Drive Error {Not Ready} 0x50

I believe it was something similar to that.

Thank you for all your help =)
Sincerely,
Abid Kazmi
 
Old 09-06-2003, 01:21 PM   #9
Ciccio
Member
 
Registered: Nov 2002
Location: Paraguay
Distribution: Mandrake 10
Posts: 573

Rep: Reputation: 30
Excuse My ignorance... but shouldn't you use /dec/hda1?? you want to dd the partition.... right
 
Old 09-06-2003, 04:29 PM   #10
securehack
Member
 
Registered: Sep 2003
Location: United States
Distribution: Slackware 10.1, Debian 3.0, WinXProSP1, Fedora Core 3
Posts: 425

Original Poster
Rep: Reputation: 30
Hey,
Hehe, anything accepted. I'm just here for help =).
Well... I don't want to do specific things. I just need to get my computer up anyway possible. The file corrupted everything I guess... so I was thinking of cleaning up everything.

I did try your help Ciccio, I put in:

root@slackware:/# dd if=/dev/zero of=/dev/hda1
dd: /dev/hda1: No space left on device

Any suggesstions?

Thank you,
Sincerely,
Abid Kazmi
 
Old 09-06-2003, 05:56 PM   #11
Ciccio
Member
 
Registered: Nov 2002
Location: Paraguay
Distribution: Mandrake 10
Posts: 573

Rep: Reputation: 30
can't you mount /dev/hda1กกก Can't you format /dev/hda1? if you can't even format /dev/hda1, then probably it's problem is phisical.
 
Old 09-06-2003, 09:40 PM   #12
securehack
Member
 
Registered: Sep 2003
Location: United States
Distribution: Slackware 10.1, Debian 3.0, WinXProSP1, Fedora Core 3
Posts: 425

Original Poster
Rep: Reputation: 30
Hello Ciccio,
No as a matter of fact, I did try to format /dev/hda1 in this format:

root@slackware:/# mount /dev/hda1
mount: can't find /dev/hda1 in /etc/fstab or /etc/mtab

So I wondered. I simply typed in mount and got this:

root@slackware:/# mount
/dev/fd2 on / type ext2 (rw)
proc on /proc type proc (rw)

Thank you,
Sincerely,
Abid Kazmi
 
Old 09-06-2003, 09:45 PM   #13
securehack
Member
 
Registered: Sep 2003
Location: United States
Distribution: Slackware 10.1, Debian 3.0, WinXProSP1, Fedora Core 3
Posts: 425

Original Poster
Rep: Reputation: 30
I am sorry, I meant I tried to MOUNT it not format it. I did try to format it by doing dd if=/dev/zero of=/dev/hda. Is that the proper way of formating?

Thank you,
Sincerely,
Abid Kazmi
 
Old 09-07-2003, 02:25 PM   #14
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,163

Rep: Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784
Using /dev/zero will wipeout everything on the drive. To format you need to use (example for ext3):

mke2fs -j /dev/hda1

See man pages mkfs for more details.

The command fdisk -l /dev/hda will show how the drive is partitioned.
 
Old 09-07-2003, 04:07 PM   #15
Ciccio
Member
 
Registered: Nov 2002
Location: Paraguay
Distribution: Mandrake 10
Posts: 573

Rep: Reputation: 30
mount -t vfat /dev/hda1 /mnt/windows should be the command...
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
/dev/hda under lilo.conf even thoug my HD is under /dev/hdb Basel Slackware 8 10-27-2005 07:00 PM
dd if=/dev/hda of=dev/hdb taking forever to complete fechin Linux - Hardware 7 06-19-2005 01:04 AM
New Kernel -> Can't read device /dev/hda flamesrock Linux - Software 2 02-07-2005 05:43 PM
How can I boot either one of my hard drives /dev/hda or /dev/hdb, I have RH9 and FC2 omogunkristi Linux - General 1 06-21-2004 06:11 AM
loop: can't open device /dev/loop0: No such device or address miaviator278 Linux - Security 3 06-09-2004 10:24 PM


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