Keepun n00b
Joined: 04 Feb 2012 Posts: 13
|
Posted: Sat Jun 22, 2013 3:26 pm Post subject: fdisk and grub-install in VirtualBox and VMware |
|
|
I can't install Grub (and grub-9999 too) in VirtualBox and VMware.
admincd-x86-20130528.iso
install-x86-minimal-20130528.iso
VirtualBox 4.2.12
VMware Player 5.0.0
Windows 7 x64
Code: | # fdisk /dev/sda
Welcome to fdisk (util-linux 2.22.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): n
Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
Select (default p):
Using default response p
Partition number (1-4, default 1):
Using default value 1
First sector (2048-4194303, default 2048):
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-4194303, default 4194303): +100M
Partition 1 of type Linux and of size 100 MiB is set
Command (m for help): n
Partition type:
p primary (1 primary, 0 extended, 3 free)
e extended
Select (default p):
Using default response p
Partition number (1-4, default 2):
Using default value 2
First sector (206848-4194303, default 206848):
Using default value 206848
Last sector, +sectors or +size{K,M,G} (206848-4194303, default 4194303):
Using default value 4194303
Partition 2 of type Linux and of size 1.9 GiB is set
Command (m for help): a
Partition number (1-4): 1
Command (m for help): p
Disk /dev/sda: 2147 MB, 2147483648 bytes, 4194304 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x415e2e1a
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 206847 102400 83 Linux
/dev/sda2 206848 4194303 1993728 83 Linux |
Errors fdisk:
Code: | Command (m for help): v
Partition 1: previous sectors 206847 disagrees with total 197593
Partitions 2: cylinder 262 greater than maximum 261
Partition 2: previous sectors 4194303 disagrees with total 4196811
Remaining 2047 unallocated 512-byte sectors
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks. |
Code: | # mkfs.ext2 /dev/sda1
mke2fs 1.42.7 (21-Jan-2013)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
Stride=0 blocks, Stripe width=0 blocks
25688 inodes, 102400 blocks
5120 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=67371008
13 block groups
8192 blocks per group, 8192 fragments per group
1976 inodes per group
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729
Allocating group tables: 0/13 done
Writing inode tables: 0/13 done
Writing superblocks and filesystem accounting information: 0/13 8/13 done |
Code: | # mkdir /mnt/gentoo/boot
# mount /dev/sda1 /mnt/gentoo/boot |
Code: | # grub-install --root-directory=/mnt/gentoo/ /dev/sda
Probing devices to guess BIOS drives. This may take a long time.
/sbin/grub-install: line 442: cmp: command not found
/sbin/grub-install: line 442: cmp: command not found
/sbin/grub-install: line 442: cmp: command not found
/sbin/grub-install: line 442: cmp: command not found
/sbin/grub-install: line 442: cmp: command not found
The file /mnt/gentoo//boot/grub/stage1 not read correctly.
# grub-install --root-directory=/mnt/gentoo/ /dev/sda1
/sbin/grub-install: line 442: cmp: command not found
/sbin/grub-install: line 442: cmp: command not found
/sbin/grub-install: line 442: cmp: command not found
/sbin/grub-install: line 442: cmp: command not found
/sbin/grub-install: line 442: cmp: command not found
The file /mnt/gentoo//boot/grub/stage1 not read correctly. |
If to install Grub in chroot:
Code: | # grub-install /dev/sda
Probing devices to guess BIOS drives. This may take a long time.
The file /boot/grub/stage1 not read correctly. |
or Grub-9999 in chroot:
Code: | Path `/boot/grub2' is not readable by GRUB on boot. Installation is impossible. Aborting. |
|
|