All pastes #923395 Raw Edit

Something

public text v1 · immutable
#923395 ·published 2008-02-29 15:04 UTC
rendered paste body
Script:

  grub --device-map=/dev/null --no-floppy --no-config-file <<EOF
device (hd0) $RAWDISKIMG
geometry (hd0) DISKSIZE_CYLS 255 63
root (hd0,1)
setup --force-lba (hd0)
EOF

Output:
Attempting to setup GRUB


    GNU GRUB  version 0.97  (640K lower / 3072K upper memory)

       [ Minimal BASH-like line editing is supported.   For
         the   first   word,  TAB  lists  possible  command
         completions.  Anywhere else TAB lists the possible
         completions of a device/filename. ]
grub> device (hd0) ukvmlx4.rawdisk
grub> geometry (hd0) 2351 255 63
drive 0x80: C/H/S = 2351/255/63, The number of sectors = 37768815, ukvmlx4.rawdisk
   Partition num: 0,  Filesystem type unknown, partition type 0x82
   Partition num: 1,  Filesystem type is ext2fs, partition type 0x83
grub> root (hd0,1)
 Filesystem type is ext2fs, partition type 0x83
grub> setup --force-lba (hd0)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/e2fs_stage1_5" exists... yes
 Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... failed (this is not fatal)
 Running "embed /boot/grub/e2fs_stage1_5 (hd0,1)"... failed (this is not fatal)
 Running "install --force-lba /boot/grub/stage1 (hd0) /boot/grub/stage2 p /boot/grub/menu.lst "... succeeded
Done.
grub>


Partition table: 

Disk ukvmlx4.rawdisk: 0 cylinders, 0 heads, 0 sectors/track
Warning: The partition table looks like it was made
  for C/H/S=*/255/63 (instead of 0/0/0).
For this listing I'll assume that geometry.
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
ukvmlx4.rawdisk1          0+    261     262-   2104514+  82  Linux swap / Solaris
ukvmlx4.rawdisk2   *    262    2350    2089   16779892+  83  Linux
ukvmlx4.rawdisk3          0       -       0          0    0  Empty
ukvmlx4.rawdisk4          0       -       0          0    0  Empty