There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus bios bsod computer crash driver drivers error ethernet excel freeze gaming google gpu hard drive hardware hdmi internet laptop malware memory missing monitor motherboard network operating system printer problem ram registry router slow software sound trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Writing Grub to floppy during Ubuntu 9.10 install

Reply  
Thread Tools
brokenhead's Avatar
Computer Specs
Member with 260 posts.
 
Join Date: Oct 2006
Experience: Intermediate
04-Nov-2009, 05:24 PM #1
Writing Grub to floppy during Ubuntu 9.10 install
From the Grub 2 guide:

Quote:
GRUB 2 is standard on Kubuntu starting with 9.10. During its installation from the Live CD, you can specify if you want GRUB 2installed, and if so, where to put it. Here's how:

Start the Live CD installer.
Step: Disk Setup
"Specify Partitions Manually"
Step: Summary
Advanced button at lower right
Check or un-check to install GRUB 2 bootloader
Choose from the drop-down list where to install GRUB 2
sda = the MBR of drive sda
sda1 = the first partition of drive sda
sdb = the MBR of drive sdb
etc.

I am installing Ubuntu 9.10. I am dual-booting with XP and do not want to overwrite the MBR on my first hard drive.

In the past when I have dual- or multibooted with Ubuntu or other Linux distros, I have been able to place grub on a floppy (fd0). I know Ubuntu 9.10 has gone to Grub 2, but it should still be possible to write to the floppy instead of the hard disks.

But during install, when I reached the point in the quote above, the drop-down list does not include the floppy drive as an option. In the past (as with Ubuntu 9.05) I have merely overwritten the default "(hd0)" with "(fd0)." I tried that while installing 9.10 and received the fatal error that Grub could not be written to the device.

To be sure, I formatted the floppy and ran chkdsk on it with no errors.

Having grub on the floppy is much more convenient. You simply insert the floppy and you can dual- or multiboot. Eject it, and your system is a normal, single-boot machine again.

Can anyone help?
lotuseclat79's Avatar
Distinguished Member with 21,345 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
04-Nov-2009, 06:28 PM #2
If you run the following command from a Linux Live CD - what output does it have?

$ sudo fdisk -l

-- Tom
brokenhead's Avatar
Computer Specs
Member with 260 posts.
 
Join Date: Oct 2006
Experience: Intermediate
04-Nov-2009, 07:24 PM #3
Thank you, lotuseclat79.

I ran the command as you suggested and got this:

ubuntu@ubuntu:~$ sudo fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xb31bb31b

Device Boot Start End Blocks Id System
/dev/sda1 * 1 17949 144175311 7 HPFS/NTFS
/dev/sda2 17950 19457 12113010 f W95 Ext'd (LBA)
/dev/sda5 17950 19305 10892038+ 7 HPFS/NTFS
/dev/sda6 19306 19457 1220908+ 82 Linux swap / Solaris

Disk /dev/sdc: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000001

Device Boot Start End Blocks Id System
saikee's Avatar
Senior Member with 3,409 posts.
 
Join Date: Jun 2004
Location: Newcastle
Experience: A Linux user gone nuts on multi-boot
04-Nov-2009, 08:17 PM #4
We must be reading different Grub2 guides.

I reported make a Grub2 floppy here.

Works OK for me.
brokenhead's Avatar
Computer Specs
Member with 260 posts.
 
Join Date: Oct 2006
Experience: Intermediate
12-Nov-2009, 05:20 PM #5
Thanks, saikee - that should be a must-read for those of us getting our feet wet with Grub 2.

The problem, it seems, is with this Ubuntu release (9.10). During install, both 9.10 and 9.04 have an "advanced" button you can select to choose where to put your bootloader, or even opt not to install one. With 9.04, I simply replaced (hd0) with (fd0). The install progressed and when it came to writing Grub, my floppy drive clicked on and as expected, Grub was written to the floppy disk. This left the MBR of my first harddisk untouched, which is what I wanted. Subsequently, when I needed to boot into Ubuntu, I just slid the floppy in and booted to it.

With Ubuntu 9.10, the install issues a fatal error when it tries to write to the floppy drive.

Thinking this must be a quirk of my floppy, I installed 9.10 as a guest OS in VirtualBox. It could neither see the floppy drive as 9.04 could, nor could it see an image file mounted as a virtual floppy.

So far I am concluding the trouble lies with this release of Ubuntu.

For anybody using Ubuntu 9.04 who is interested in upgrading Grub legacy to Grub 2, I found this. I have done the procedure on a virtual install of Ubuntu 9.04 and it worked perfectly.

My goal is the same - I want to dual-boot Ubuntu 9.10 with my main OS (XP Pro) and not overwrite the MBR on the first harddisk where XP lives. The only thing I can think of trying is to install Ubuntu and let it write the bootloader over the MBR, then following saikee's instructions to make the rescue floppy (Grub on a floppy). Once that is done, I could do a fixmbr from XP's recovery console to get the MBR back. Theoretically, that should give me what I want, which is a system that doesn't know it is dual-boot until I have it boot to that Grub 2 floppy, when it will read the config file (instead of Grub legacy's menu.lst) and see that it has other options. Seems like a round-about way of doing things, though...

Last edited by brokenhead; 12-Nov-2009 at 05:54 PM..
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 10:11 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.