انجمن‌های فارسی اوبونتو

کمک و پشتیبانی => انجمن عمومی => نویسنده: امیرمهری در 26 شهریور 1389، 10:04 ق‌ظ

عنوان: مشکل در نصب دوباره گراب " حل شد"
ارسال شده توسط: امیرمهری در 26 شهریور 1389، 10:04 ق‌ظ
مشکل من اینکه با گراب نصب شده مشکل دارم یا بوت نمیشه و...

  Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1          13      102400    7  HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sdb2              13        5737    45978624    7  HPFS/NTFS
/dev/sdb3            5738        9709    31905090   83  Linux
/dev/sdb4            9710        9964     2048287+  82  Linux swap / Solaris

====================================================
root@ubuntu:~# mkdir /mnt/dev
root@ubuntu:~# mount --bind /dev /mnt/dev
root@ubuntu:~# mount /dev/sdb3 /mnt
root@ubuntu:~# chroot /mnt

root@ubuntu:/# grub-install /dev/sdb
/usr/sbin/grub-probe: error: cannot find a device for /boot/grub (is /dev mounted?).
No path or device is specified.
Try `/usr/sbin/grub-probe --help' for more information.
Auto-detection of a filesystem module failed.
Please specify the module with the option `--modules' explicitly.

root@ubuntu:/# grub-install --recheck /dev/sdb
/usr/sbin/grub-probe: error: cannot find a device for /boot/grub (is /dev mounted?).
No path or device is specified.
Try `/usr/sbin/grub-probe --help' for more information.
Auto-detection of a filesystem module failed.
Please specify the module with the option `--modules' explicitly.


عنوان: پاسخ به: مشکل در نصب دوباره گراب
ارسال شده توسط: امیرمهری در 30 شهریور 1389، 01:08 ب‌ظ
با این مشکل من حل شد

sudo fdisk -l  # to make sure that the partitions are correct
sudo mount /dev/sdb3 /mnt
sudo grub-install --root-directory=/mnt/ /dev/sdb
عنوان: پاسخ به: مشکل در نصب دوباره گراب " حل شد"
ارسال شده توسط: امیرمهری در 03 مهر 1389، 07:52 ب‌ظ
اين رو هم بروز كردم

نكته اوبونتو به دستور chroot نيازي نداره ؟!!

http://wiki.ubuntu.ir/Grub2Howto/Recover