# grub-install /dev/sda1
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.
(fd0) /dev/fd0
(hd0) /dev/sda
(hd1) /dev/sdb
(hd2) /dev/sdc
(hd3) /dev/sdd
grub> root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
grub> setup (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)"... 18 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+18 p (hd0,0)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded
Done.
grub>
boot_drive="hd0"
boot_bpart="0"
menuconfig="menu.lst"
bootconfig="grub.conf"
device_map="./device.map"
echo "-[device map]--------------------------"
cat $device_map
echo "---------------------------------------"
cp $bootconfig $menuconfig
grub --batch --boot-drive="($boot_drive,$boot_bpart)" --config-file="$menuconfig" --device-map="$devicemap" <<EOF
root ($boot_drive,$boot_bpart)
setup ($boot_drive)
quit
EOF
-[device map]--------------------------
(hd0) /dev/sda
---------------------------------------
Probing devices to guess BIOS drives. This may take a long time.
Unknown partition table signature
Unknown partition table signature
GNU GRUB version 0.97 (640K lower / 5120K 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> root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
grub> setup (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)"... 18 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+18 p (hd0,0)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded
Done.
grub> quit
What partition table format are you using? gpt?
# fdisk -l /dev/sda[
fdisk -l /dev/sda
Disk /dev/sda: 111.79 GiB, 120034123776 bytes, 234441648 sectors
Disk model: FUJITSU MHZ2120B
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000
Device Boot Start End Sectors Size Id
/dev/sda1 * 2048 1959929 1957882 956M 83
/dev/sda2 1959930 3919859 1959930 957M 82
/dev/sda3 3919860 234441647 230521788 109.9G 83
# dd if=/dev/sda bs=1 skip=510 count=2 status=none | od -A none -t x1
55 aa
If not "55 aa", there you go. How did you create the partition table in the first place?
=sys-boot/grub v2.12-r1
GRUB_PLATFORMS="pc"
# coreboot
# efi-32
# efi-64
# emu
# ieee1275
# loongson
# multiboot
# pc <------------- old PC booting scheme
# qemu
# qemu-mips
# uboot
# xen
# xen-32
# xen-pvh
(grub-v2 profile)# hd0,0 is /dev/sda1
# hd0,1 is /dev/sda2
# hd0,2 is /dev/sda3
# Boot automatically after x secs.
timeout 30
# By default, boot the entry
default 2
# Fallback to the entry.
fallback 1
#-----------------------------------------------------------------------
# ID=0
title memory test
root (hd0,0)
kernel /kernel/memtest86
#-----------------------------------------------------------------------
# ID=1
title kernel-4.9.16 (stable, for production)
root (hd0,0)
kernel /kernel/kernel-4.9.16.bzImage root=/dev/sda3 CONSOLE=/dev/tty1
#-----------------------------------------------------------------------
# ID=2
title kernel-6.6.8 (new, to be tested)
root (hd0,0)
kernel /kernel/kernel-6.6.8.bzImage root=/dev/sda3 CONSOLE=/dev/tty1
(grub.conf)boot/grub/stage1
boot/grub/stage2
boot/grub/e2fs_stage1_5
boot/grub/fat_stage1_5
boot/grub/ffs_stage1_5
boot/grub/vstafs_stage1_5
boot/grub/xfs_stage1_5
boot/grub/default
boot/grub/grub.conf
boot/grub/splash.xpm.gz
boot/grub/stage2_eltorito
sbin/grub
sbin/grub-install
sbin/grub-terminfo
sbin/grub-md5-crypt
sbin/grub-set-default
usr/share/info/grub.info.bz2
usr/share/info/multiboot.info.bz2
usr/share/grub/splash.xpm.gz
usr/share/man/man1/mbchk.1.bz2
usr/share/man/man8/grub.8.bz2
usr/share/man/man8/grub-md5-crypt.8.bz2
usr/share/man/man8/grub-install.8.bz2
usr/share/man/man8/grub-terminfo.8.bz2
usr/share/doc/grub-0.97-r10/NEWS.bz2
usr/share/doc/grub-0.97-r10/TODO.bz2
usr/share/doc/grub-0.97-r10/AUTHORS.bz2
usr/share/doc/grub-0.97-r10/grub.conf.gentoo.bz2
usr/share/doc/grub-0.97-r10/grub.conf.sample.bz2
usr/share/doc/grub-0.97-r10/THANKS.bz2
usr/share/doc/grub-0.97-r10/README.bz2
usr/share/doc/grub-0.97-r10/BUGS.bz2
usr/share/doc/grub-0.97-r10/ChangeLog.bz2
lib/grub/i386-pc/ufs2_stage1_5
lib/grub/i386-pc/jfs_stage1_5
lib/grub/i386-pc/minix_stage1_5
lib/grub/i386-pc/stage2
lib/grub/i386-pc/e2fs_stage1_5
lib/grub/i386-pc/vstafs_stage1_5
lib/grub/i386-pc/iso9660_stage1_5
lib/grub/i386-pc/ffs_stage1_5
lib/grub/i386-pc/stage2_eltorito
lib/grub/i386-pc/fat_stage1_5
lib/grub/i386-pc/xfs_stage1_5
lib/grub/i386-pc/reiserfs_stage1_5
lib/grub/i386-pc/stage1
bin/mbchk
(=sys-boot/grub-0.97, binary packaged, content)Quote from: Nominal AnimalWhat partition table format are you using? gpt?it's an old PC-partition scheme, older than GPT.
Grub-v1 made the system bootable again, but complains about that signature, which makes no sense as the signatures { 0x55 0xaa } seem correct
Grub-v1 made the system bootable again, but complains about that signature, which makes no sense as the signatures { 0x55 0xaa } seem correctCould this be an endianness issue? Maybe related to an incorrect configuration of the grub build?
dd if=/dev/zero of=/dev/sda
(the machine booted from the usb-stick, so I can do it on the disk)mac-mini/x86, in "PC" compatibie mode (not EFI).Code: [Select]# grub-install /dev/sda1
Unknown partition table signature
has anyone ever seen this error message? I don't get what is wrong, and how to fix it
Usually grub is installed in the MBR, e.g. /dev/sda (disk, not some partiton). It's only installed in a specific partition if there's already some bootloader from another OS in the MBR and you don't want to replace it with grub.
# uname -r
6.1.7-macmini64
# cat /proc/meminfo
MemTotal: 7860856 kB
MemFree: 7772188 kB
MemAvailable: 7737848 kB
# lilo
Reading boot sector from /dev/sda
Using TEXT secondary loader
Calling map_insert_data
Mapping message file /boot/lilo-message.txt
Calling map_insert_file
Boot image: /kernel/kernel64-6.1.7.bzImage
Added k6.1.7/64bit *
Boot image: /kernel/kernel32-6.1.7.bzImage
Added k6.1.7/32bit
Writing boot sector.
it only writes 448 bytes and nothing else on /dev/sda, as expected
Before you install it, wipe it (by writing zeros to the first and last megabyte of the storage device), then create a new partition table and partitions using fdisk/sfdisk/etc., and only then install grub/lilo.
As to the malfunctioning one, I think it has severe hardware issues, possibly in the internal controller of the misbehaving disk. The replacement of data with 0xAA = 10101010₂ is a tell-tale sign of that, unrelated to the partition table signature.
+ hdd?
It seems the CDROM is a weak components in Intel Mac-Mini. I see that many mid-late 2009 releases have a dead cdrom.
This tutorial is to show how to fix the optical drive problem in your Mac Mini 2009.
The problem is that if the optical drive is dirty it keep ejecting the DVD movies or audio CDs without playing them. During the years the electronic devices accumulate a lot of dust and when the optical laser gets some of the dust the laser can't read accurate the DVD movies or Audio CDs for example.
I hope that this tutorial can help you to fix your 2009 MacMini.
Do you happen to have a picture of the connector?
Do you happen to have a picture of the connector?I will take tomorrow
Mac-Mini Early 2009 Core2/Duo P7350 2.00GHz 4GB NVIDIA-GeForce-9400M-128MB <---- mine, dead
Mac-Mini Early 2009 Core2/Duo P8400 2.26GHz 4GB NVIDIA-GeForce-9400M-256MB
Mac-Mini Late 2009 Core2/Duo P7550 2.26GHz 8GB NVIDIA-GeForce-9400M-256MB <---- mine, new
Mac-Mini Late 2009 Core2/Duo P8700 2.53GHz 8GB NVIDIA-GeForce-9400M-256MB <---- my boss's
Mac-Mini Late 2009 Core2/Duo P8800 2.66GHz 8GB NVIDIA-GeForce-9400M-256MB
Mac-Mini Server Core2/Duo P8700 2.53GHz 8GB NVIDIA-GeForce-9400M-256MB (wanted)
Damn, using Intel-based Mac minis from 15 years ago, especially when one despises Intel CPUs, is intriguing.
Damn, using Intel-based Mac minis from 15 years ago, especially when one despises Intel CPUs, is intriguing.
That's why I won't throw the metal case of the dead Mac-mini in the trash: to be re-used as case for a MIPS board!!!
So, if it was for my personal stuff, I would buy an Ampera 128Core workstation and/or a POWER workstation, for sure not that x86 stuff.