PLEX86  x86- Virtual Machine (VM) Program
 Plex86  |  CVS  |  Mailing List  |  Download  |  Linux  |  Newsgroups

Install Grub to a HDD image 2767


Your Ad Here

Your Ad Here

Letter box on 1680x1050 LCD while using nvidiafs driver 2768
On Thu, 19 Oct 2006 19:26:24 -0400, Ross Maloney staggered into the Black Sun and said: nv, not nvidia? Whatever...

On Wed, 18 Oct 2006 23:03:13 -0700, Tim

When using the grub shell to setup the loader from a running GNU-Linux, it will accept "device" mappings. This is useful for virtual disks.

The example below shows how to setup the loader on a virtual floppy. Hard disks are similar, but must account for the MBR and individual parbreastion offsets. This can be modelled with two loopbacks (one for the MBR and one for a parbreastion.) But, for the sake of simplicity, I'll try showing the easier case first, a virtual floppy disk. The following example also buttumes the grub "stage" files are installed on the image.

Before starting the grub shell, set the mapping the loop device and virtual floppy.

# losetupdev-loop0 disk.img # grub --no-floppy

#

Watch for any errors after the "setup" command (or any of the commands.)

HP vs Dell vs ASUS
I am seriously considering replacing my current old laptop with one of the above. I...

When modelling virtual hard disks, the virtual disk geometry is important. The MBR is at (0,0,0), and the first parbreastion starts at (0,1,0), where (C,H,S) are (cylinder, head, sector). For example, if your virtual disk is using 63 sectors per track, the offset to the first parbreastion is 32256 bytes.

losetup -o 32256dev-loop1 disk.img

Perhaps, that is enough to get you started. BTW, it has always required extra patience for me to get this right when working with virtual disks. OT: The last "gotcha" for me was the somewhat arbitrary head limit (max head count is 255, not 256.)

-- Douglas Mayne

Flash Player 9 beta available
Yes, but make sure you can use it. It's not ready for all Linux distros and may never run on some others. I installed on Slackware 10.1...



Your Ad Here

List | Previous | Next

Letter box on 1680x1050 LCD while using nvidiafs driver 2768

Linux groups from Newsgroups

The #1 Usenet Provider on the Internet

Install new Linux