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 - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-02-2005, 10:14 PM   #1
Akhran
Member
 
Registered: Aug 2005
Distribution: Debian 'lenny'
Posts: 208

Rep: Reputation: 30
Bootable disk that hangs system


Are the following the right commands to use ?
Code:
fdformat /dev/fd0
mkfs.ext2 /dev/fd0
dd if=/dev/hda of=/dev/fd0 bs=512 count=1
When I try to boot up with the floppy disk, the system will hang with the word GRUB at the top left corner of the screen.

Please advise, thanks !
 
Old 09-02-2005, 10:27 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
I don't use dd much, but I suspect that the phrase 'dd if=/dev/hda' may be part of the problem. You are trying to put ALL of /dev/hda on a 1.44 M floppy disk. It won't work. Not enough room.

If you study the man pages or info pages for dd, the 'if' flag needs a file, not an entire hard disk. Perhaps 'if=/boot' might work?
 
Old 09-03-2005, 04:54 AM   #3
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
Not quite!

The count=1 in dd means only the first sector. The default sector is 512 bytes in dd. So only the first 512 bytes of hda will be transferred.

It appears to me the intention was to copy part of the resident Grub boot loader in the MBR onto a floppy. Only MS boot loader NTLDR would have a need this sort of thing. The file may be usable if it is fed to NTLDR, usually in a "C" drive of XP or Win2k. NTLDR can then complete the booting process.

On its own it wouldn't boot because Grub isn't complete.

To make a bootable floppy for the Linux one has to log in as root, choose terminal mode, pop a floppy into the drive and type

grub-install /dev/fd0
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
disk to disk backup for debian/Mempis on bootable cd-- advice loninappleton Linux - Software 3 05-27-2005 01:00 AM
net driver causes system hangs (keyboard hangs) yjchen Linux - Networking 0 10-21-2004 10:12 PM
RHEL AS Disk 1 Bootable or not,creating boot disk. kmlinux12 Linux - Enterprise 1 09-23-2004 04:20 AM
Bootable disk troubles ahimsel08 Linux - Hardware 3 06-29-2004 08:33 PM
Hard Disk hangs if system left on for 2-3 hours jdsahota Linux - General 1 07-13-2003 07:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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