Grub
從 live CD 安裝 grub
我錯誤地刪除了我的 MBR。現在我無法啟動 Ubuntu,所以我想重新安裝 grub。
我收到此錯誤:
grub-install --boot-directory=/media/cab64688-2d97-4bbd-9f32-7bc0badb40a8/boot /dev/sdb rm: cannot remove `/media/cab64688-2d97-4bbd-9f32-7bc0badb40a8/boot/grub/915resolution.mod': Read-only file system
所以,問題是我現有的 Ubuntu 分區是只讀安裝的。當我嘗試:
sudo mount /dev/sdb7 /media/ubuntu_mpt mount: block device /dev/sdb7 is write-protected, mounting read-only
所以我無法安裝 grub,因為我處於只讀模式。
有任何想法嗎?
**編輯:**在 apt-get install grub 之後,我重複了這個過程並得到了:
Probing devices to guess BIOS drives. This may take a long time. Unknown partition table signature sed: can't read /media/cab64688-2d97-4bbd-9f32-7bc0badb40a8_/boot/grub/device.map: No such file or directory grep: /media/cab64688-2d97-4bbd-9f32-7bc0badb40a8_/boot/grub/device.map: No such file or directory /dev/sda does not have any corresponding BIOS drive.
$ sudo mount /dev/sdb7 /media/ubuntu_mpt
這應該是:
$ sudo mount -o remount,rw /dev/sdb7
這不會再次掛載它,而是將已經存在的掛載更改為 rw。