Eu tentei criar uma unidade USB inicializável - usando o Syslinux & Buildroot - no meu Macbook Air.
Quando inicializo, recebo algo parecido com esse erro.
"Non-system disk, press any key to restart"
Isso significa que o Syslinux nem sequer começou e, portanto, há algum problema com a formatação ou com o meu comando dd? Um erro no syslinux.cfg pode causar esse erro?
Este é o meu histórico de comandos.
477 mkdir BootableUSB
478 cd BootableUSB/
479 curl -L -O http://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-5.00.zip
480 unzip syslinux-5.00.zip -d syslinux-5.00
481 cd syslinux-5.00/mbr/
:
486 diskutil list
487 diskutil unmountDisk /dev/disk2
488 sudo fdisk -e /dev/disk2
489 man fdisk
490 diskutil unmountDisk /dev/disk2
491 sudo dd conv=notrunc bs=440 count=1 if=mbr.bin of=/dev/disk2
492 diskutil list
493 ls
494 cp syslinux.cfg /Volumes/FREDRIK\ USB/
495 emacs syslinux.cfg
496 pwd
497 emacs syslinux.cfg
498 cp syslinux.cfg /Volumes/FREDRIK\ USB/
499 diskutil list
500 diskutil unmountDisk /dev/disk2
501 history
E dentro do comando de disco (489):
Fredriks-Air:mbr eternity$ sudo fdisk -e /dev/disk2
Password:
fdisk: could not open MBR file /usr/standalone/i386/boot0: No such file or directory
Enter 'help' for information
fdisk: 1> print
Disk: /dev/disk2 geometry: 3781/255/63 [60751872 sectors]
Offset: 0 Signature: 0xAA55
Starting Ending
#: id cyl hd sec - cyl hd sec [ start - size]
------------------------------------------------------------------------
1: 0B 1023 254 63 - 1023 254 63 [ 2 - 60751870] Win95 FAT-32
2: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
3: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
4: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
fdisk: 1> f 1
Partition 1 marked active.
fdisk:*1> write
Writing MBR at offset 0.
fdisk: 1>
fdisk: 1> print
Disk: /dev/disk2 geometry: 3781/255/63 [60751872 sectors]
Offset: 0 Signature: 0xAA55
Starting Ending
#: id cyl hd sec - cyl hd sec [ start - size]
------------------------------------------------------------------------
*1: 0B 1023 254 63 - 1023 254 63 [ 2 - 60751870] Win95 FAT-32
2: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
3: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
4: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
fdisk: 1> exit
E finalmente meu syslinux.cfg:
cat syslinux.cfg
DEFAULT linux
#APPEND initrd=rootfs.gz root=/dev/ram0
TIMEOUT 10