Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Linux Newbie
Reload this Page dd command doesn't work
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Linux Newbie If you're new to the wonderful world of Linux, start here!

Reply
 
Thread Tools Display Modes
Old 06-20-2008   #1 (permalink)
Corey_James
Just Joined!
 
Join Date: Jun 2008
Posts: 5
dd command doesn't work

I have a Dell dimensions 6400. I need to uninstall FC6 so I can reinstall WinXP.
1) Will not boot with WinXP CD
2) Will not boot with Knoppix LiveCD
3) Will not boot with Gparted LiveCD
4) Will not boot with Mac OS 10.5 DVD (just thought I'd try)

Tried the "dd if=/dev/zero of=/dev/hda bs=521 count=1" command after rebooting with FC6 DVD in rescue mode and entering shell (sh-3.1). After I type in the command it prints -
1+0 records in
1+0 records out
521 bytes (521 B) copied, 0.0373664 seconds, 13.9 kB/s

How the heck can I get FC6 off my computer, or is there a way to partion my single harddrive with FC6 in place such that I can dual boot with WinXP? (Tried using Qparted while running FC6, can't touch the hard drive)


Any help would be greatly appreciated
Corey_James is offline   Reply With Quote
Old 06-20-2008   #2 (permalink)
devils casper
Ghost
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, INDIA
Posts: 18,098
Quote:
After I type in the command it prints -
1+0 records in
1+0 records out
521 bytes (521 B) copied, 0.0373664 seconds, 13.9 kB/s
it means HardDisk has been wiped out. Have you tried to boot up from Windows XP CD now?
In case Windows XP CD doesn't work this time too, execute dd command again.
Code:
dd if=/dev/zero of=/dev/sda bs=521 count=1
__________________
New Users: Read This First
If you woke up breathing, Congratulations! You get another chance.

devils casper is offline   Reply With Quote
Old 06-20-2008   #3 (permalink)
Corey_James
Just Joined!
 
Join Date: Jun 2008
Posts: 5
Okay, that makes sense considering when I reboot after that command it gives me -
"strike F1 to retry boot, F2 for setup utility"

I'm sure I need to use the hda instead of sda, I remember that from installing it.

loaded the WinXP reinstallation disk, will not boot.
loaded the Knoppix LiveCD, will not boot.
load the FC6 DVD, WILL boot.

So why might I still not be able to boot from the WinXP CD?


Again, thank you (I can't say that enough)
Corey_James is offline   Reply With Quote
Old 06-20-2008   #4 (permalink)
devils casper
Ghost
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, INDIA
Posts: 18,098
Boot up from CD again and execute this
Code:
su -
/sbin/fdisk -l
Post output here.
__________________
New Users: Read This First
If you woke up breathing, Congratulations! You get another chance.

devils casper is offline   Reply With Quote
Old 06-20-2008   #5 (permalink)
Corey_James
Just Joined!
 
Join Date: Jun 2008
Posts: 5
I assume you want me to reboot with the FC6 disk in rescue mode and enter the command shell.

"su -" tells me that no super user exists.
"/sbin/fdisk -1" tells me that no such file or directory

use ls and I see -
bin etc lib modules proc sbin sys usr
dev init mnt oldtmp root selinux temp var

cd to sbin and ls
halt init insmod modprobe poweroff reboot rmmod sh

Okay searched for fdisk using find / -name foo
found fdisk at /mnt/runtime/usr/sbin/fdisk

Alright worked, here is the output -

Disk /dev/hda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/tracks, 9726 cylinders
Units = cylinders of 16065 * 521 = 8225280 bytes

Disk /dev/hda doesn't contain a valid partition table
Corey_James is offline   Reply With Quote
Old 06-20-2008   #6 (permalink)
devils casper
Ghost
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, INDIA
Posts: 18,098
Your HardDisk is blank now. Windows XP CD should work now. Have you tried same CD on other machine? Have you tried any other Windows XP CD on this machine?
__________________
New Users: Read This First
If you woke up breathing, Congratulations! You get another chance.

devils casper is offline   Reply With Quote
Old 06-20-2008   #7 (permalink)
ozar
Super Moderator
 
Join Date: May 2004
Location: Arch Linux
Posts: 8,507
If all the CDs are in fact good, and your CD-drive is being that picky about what it boots and doesn't boot, maybe the drive is beginning to fail.
__________________
oz

New Users: * FAQ *

ozar is offline   Reply With Quote
Old 06-20-2008   #8 (permalink)
Corey_James
Just Joined!
 
Join Date: Jun 2008
Posts: 5
I will take the WinXP CD to work and try it on another computer. It's the disk that came with the computer so it should work. The Knoppix liveCD will not boot. Oh, what the ****! Seriously? I have a DVD drive and a separate CD drive. When I was trying to boot the CD's I figured I would put them in the CD drive, but since only the DVD would boot, I put the WinXP disk in the DVD drive and it boots up!

Well thank you very much for your prompt replies to my questions. I need Fedora and WinXP on my computer, which would you install first?


Thank you
Corey_James is offline   Reply With Quote
Old 06-20-2008   #9 (permalink)
devils casper
Ghost
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, INDIA
Posts: 18,098
Glad to help you !

Install Windows OS first. Install Fedora after Windows Installation.
Do post output of /sbin/fdisk -l again before starting Fedora installation. We will guide you how to create partitions and other necessary stuff.
Good Luck !
__________________
New Users: Read This First
If you woke up breathing, Congratulations! You get another chance.

devils casper is offline   Reply With Quote
Old 06-21-2008   #10 (permalink)
Corey_James
Just Joined!
 
Join Date: Jun 2008
Posts: 5
Just got home from work. Installing WinXP. Selected to format hard drive to NTFS, created only C: partition.

When you say to run fdisk -l again, do you to reboot FC6 DVD in rescue mode again? Should I create a linux partition from XP with Partion Magic or some tool like that? Or when I install FC6 should I do a custom layout?
Corey_James is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 02:40 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0