I have a Linux derivative OS on a non-bootable hard drive. I'm currently using a LiveCD to help diagnose the issue; however, I mistakingly deleted the MBR in the process via testdisk.
Is there any way to recover the MBR? Is this the same difference as writing a bootloader to the disk, LILO in this case? Sorry for my lack of knowledge.
To do this I need to mount the hard drive, but I don't know the file system type of the disk.
UPDATE: I was able to restore the MBR with the LILO bootloader. I used blkid to list the filesystem types of the partitions and used fdisk -l to reference the Device Boot so I could mount the drive.
I then used:
mount -o dev /dev/hd(x) /mnt/hd chroot /mnt/hd lilo -v
Thanks!