Случайно удаленный MBR; Не знаю тип файловой системы

731
Benson Wally Tran

У меня операционная система Linux на не загружаемом жестком диске. В настоящее время я использую LiveCD, чтобы помочь диагностировать проблему; однако, я по ошибке удалил MBR в процессе через testdisk.

Есть ли способ восстановить MBR? Это та же разница, что и запись загрузчика на диск, в данном случае LILO? Извините за отсутствие знаний.

Для этого мне нужно смонтировать жесткий диск, но я не знаю тип файловой системы диска.

enter image description here

ОБНОВЛЕНИЕ: мне удалось восстановить MBR с помощью загрузчика LILO. Я использовал blkid для вывода списка типов файловых систем разделов и использовал fdisk -l для ссылки на загрузку устройства, чтобы смонтировать диск.

Затем я использовал:

mount -o dev / dev / hd (x) / mnt / hd chroot / mnt / hd lilo -v

Спасибо!

2

2 ответа на вопрос

1
VL-80

As long as you have workable Linux system on the drive you can install bootloader and use it to boot the system. For example it can be GRUB. Lilo would work as well. After installation you will have to configure it and point out which kernel to boot and where it is. For that you need to know what partitions are on the hard drive and where is kernel.

First, see structure of the hard drive by doing fdisk -l

After that try to mount partitions with default settings. Hopefully Live CD system will be able to do that. If no, you will have to try to mount them manually.

Take a look at /etc/fstab on the Linux system on the hard drive. It may reveal filesystem and other useful data.

Could you post output of fdisk -l ?

0
zeropouet

Have you tried GParted?

It could help you to identify which filesystem is on your disk. Once you know the filesystem type, it will be easier to mount your partitions.

If you want to restore the bootloader, I advice you to install (or reinstall) grub:

grub-install /dev/sda 

For the configuration of grub (grub.cfg), you should go to your distribution support page. Some linux distributions, like debian, have tools to generate automatically the grub menu/cfg.