sudo update-grub
اوبنوتو روی sda6 ؟چرا عحیبه؟
grub-install dev/sda/
خودش کفایت میکنه . اگر کار نکرد اون شکلی برو
سلام
بهترین و سریع ترین راه استفاده از boot-repair هستش من خودم همیشه از این استفاده می کنم.
نحوه نصب و استفادش هم تو همین فروم هستش فقط کافیه سرچ کنی.
sudo fdisk -L
sudo grub-install --root-directory=/media/root/boot
اون شکلی که اول زدی پوشه گراب رو تو روت پارتیشن لینوکست میسازه نه تو پوشه بوت
500 مگ برای نسخه لایوش هست!سلام
بهترین و سریع ترین راه استفاده از boot-repair هستش من خودم همیشه از این استفاده می کنم.
نحوه نصب و استفادش هم تو همین فروم هستش فقط کافیه سرچ کنی.
حال دانلود 500 مگ رو ندارم
دوستان این راه ها هم جواب ندادن
چه باید کرد؟
root@ubuntu:~# fdisk -l
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xac78ac78
Device Boot Start End Blocks Id System
/dev/sda1 * 2 3550 28507342+ 7 HPFS/NTFS
/dev/sda2 16300 19441 25232213 83 Linux
/dev/sda3 3551 16300 102410193 f W95 Ext'd (LBA)
/dev/sda5 3551 8552 40178533+ 7 HPFS/NTFS
/dev/sda6 8554 9589 8321639 7 HPFS/NTFS
/dev/sda7 9590 14118 36379161 7 HPFS/NTFS
/dev/sda8 14119 16117 16056935 7 HPFS/NTFS
/dev/sda9 16118 16300 1465344 82 Linux swap / Solaris
root@ubuntu:~# mount /dev/sda2/ media/root
mount: mount point media/root does not exist
root@ubuntu:~#
باید به این مورد هم اشاره کنم که ورژن گرابم احتمالا 1.97 هستش و ورژن ubuntu احتمالا 10.10 به این خاطر میگم احتمالا، چون یکی دو سالی بود نصب کرده بودم سراغش نرفتم تا این چند روزه که بهش نیاز دارم
sudo grub-install
به صورت live بیا بالا خروجی این رو بزار :کد: [انتخاب]sudo fdisk -L
اگر اشتباه نکنم دستور پست اولت مشکل داره این شکلی بزنش :کد: [انتخاب]sudo grub-install --root-directory=/media/root/boot
اون شکلی که اول زدی پوشه گراب رو تو روت پارتیشن لینوکست میسازه نه تو پوشه بوت
به صورت live بیا بالا خروجی این رو بزار :کد: [انتخاب]sudo fdisk -L
ubuntu@ubuntu:~$ sudo fdisk -l
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xac78ac78
Device Boot Start End Blocks Id System
/dev/sda1 * 2 3550 28507342+ 7 HPFS/NTFS
/dev/sda2 16300 19441 25232213 83 Linux
/dev/sda3 3551 16300 102410193 f W95 Ext'd (LBA)
/dev/sda5 3551 8552 40178533+ 7 HPFS/NTFS
/dev/sda6 8554 9589 8321639 7 HPFS/NTFS
/dev/sda7 9590 14118 36379161 7 HPFS/NTFS
/dev/sda8 14119 16117 16056935 7 HPFS/NTFS
/dev/sda9 16118 16300 1465344 82 Linux swap / Solaris
Partition table entries are not in disk order
ubuntu@ubuntu:~$
اگر اشتباه نکنم دستور پست اولت مشکل داره این شکلی بزنش :کد: [انتخاب]sudo grub-install --root-directory=/media/root/boot
اون شکلی که اول زدی پوشه گراب رو تو روت پارتیشن لینوکست میسازه نه تو پوشه بوت
root@ubuntu:~# mount /dev/sda2/ media/root
mount: mount point media/root does not exist
root@ubuntu:~#
سیستمت سیستم ساده ای هستش . یک هارد دیسک داره با یک ویندوز سون. نگفتی این دستور رو به تنهایی زدی یا نه ؟دستور اشتباه استکد: [انتخاب]sudo grub-install
ubuntu@ubuntu:~$ sudo grub-install
install_device not specified.
Usage: grub-install [OPTION] install_device
Install GRUB on your drive.
-h, --help print this message and exit
-v, --version print the version information and exit
--modules=MODULES pre-load specified modules MODULES
--root-directory=DIR install GRUB images under the directory DIR
instead of the root directory
--grub-setup=FILE use FILE as grub-setup
--grub-mkimage=FILE use FILE as grub-mkimage
--grub-probe=FILE use FILE as grub-probe
--no-floppy do not probe any floppy drive
--recheck probe a device map even if it already exists
--force install even if problems are detected
--disk-module=MODULE disk module to use
INSTALL_DEVICE can be a GRUB device name or a system device filename.
grub-install copies GRUB images into /boot/grub (or /grub on NetBSD and
OpenBSD), and uses grub-setup to install grub into the boot sector.
If the --root-directory option is used, then grub-install will copy
images into the operating system installation rooted at that directory.
Report bugs to <bug-grub@gnu.org>.
ubuntu@ubuntu:~$
بازگردانی گراب ۲ پس از نصب ویندوز (http://blog.libooks.ir/?p=282)
root@ubuntu:~# sudo apt-get install -y boot-repair
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package boot-repair
root@ubuntu:~#
root@ubuntu:~# mount /dev/sda2 /media/root
mount: wrong fs type, bad option, bad superblock on /dev/sda2,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
root@ubuntu:~#
در مرحله نصب که با دستوره sudo apt-get install -y boot-repair هست میگه پکیج رو پیدا نمیکنهکد: [انتخاب]root@ubuntu:~# sudo apt-get install -y boot-repair
قبل اون دستور:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package boot-repair
root@ubuntu:~#کد: [انتخاب]sudo apt-get update
بعدش دستور بالا رو بزن
mount -t ext4 /dev/sda2 /media/root
http://30li.ir/bash/commands/mountsudo grub-install /dev/sda
sudo apt-get update
به صورت live بیا بالا خروجی این رو بزار :کد: [انتخاب]sudo fdisk -L
خروجی دستوری که خواسته بودید البته در پستهای قبلی گذاشته بودمکد: [انتخاب]ubuntu@ubuntu:~$ sudo fdisk -l
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xac78ac78
Device Boot Start End Blocks Id System
/dev/sda1 * 2 3550 28507342+ 7 HPFS/NTFS
/dev/sda2 16300 19441 25232213 83 Linux
/dev/sda3 3551 16300 102410193 f W95 Ext'd (LBA)
/dev/sda5 3551 8552 40178533+ 7 HPFS/NTFS
/dev/sda6 8554 9589 8321639 7 HPFS/NTFS
/dev/sda7 9590 14118 36379161 7 HPFS/NTFS
/dev/sda8 14119 16117 16056935 7 HPFS/NTFS
/dev/sda9 16118 16300 1465344 82 Linux swap / Solaris
Partition table entries are not in disk order
ubuntu@ubuntu:~$نقلقولاگر اشتباه نکنم دستور پست اولت مشکل داره این شکلی بزنش :کد: [انتخاب]sudo grub-install --root-directory=/media/root/boot
اون شکلی که اول زدی پوشه گراب رو تو روت پارتیشن لینوکست میسازه نه تو پوشه بوت
مشکل تو دستور زیر است که قبل از دستوریست که شما اشاره کردیدکد: [انتخاب]root@ubuntu:~# mount /dev/sda2/ media/root
mount: mount point media/root does not exist
root@ubuntu:~#سیستمت سیستم ساده ای هستش . یک هارد دیسک داره با یک ویندوز سون. نگفتی این دستور رو به تنهایی زدی یا نه ؟دستور اشتباه استکد: [انتخاب]sudo grub-install
کد: [انتخاب]ubuntu@ubuntu:~$ sudo grub-install
install_device not specified.
Usage: grub-install [OPTION] install_device
Install GRUB on your drive.
-h, --help print this message and exit
-v, --version print the version information and exit
--modules=MODULES pre-load specified modules MODULES
--root-directory=DIR install GRUB images under the directory DIR
instead of the root directory
--grub-setup=FILE use FILE as grub-setup
--grub-mkimage=FILE use FILE as grub-mkimage
--grub-probe=FILE use FILE as grub-probe
--no-floppy do not probe any floppy drive
--recheck probe a device map even if it already exists
--force install even if problems are detected
--disk-module=MODULE disk module to use
INSTALL_DEVICE can be a GRUB device name or a system device filename.
grub-install copies GRUB images into /boot/grub (or /grub on NetBSD and
OpenBSD), and uses grub-setup to install grub into the boot sector.
If the --root-directory option is used, then grub-install will copy
images into the operating system installation rooted at that directory.
Report bugs to <bug-grub@gnu.org>.
ubuntu@ubuntu:~$بازگردانی گراب ۲ پس از نصب ویندوز (http://blog.libooks.ir/?p=282)
در مرحله نصب که با دستوره sudo apt-get install -y boot-repair هست میگه پکیج رو پیدا نمیکنهکد: [انتخاب]root@ubuntu:~# sudo apt-get install -y boot-repair
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package boot-repair
root@ubuntu:~#
موضوعی که اتفاقی متوجه شدم اینه که روی sda6 عمل mount رو انجام میده ولی روی sda2 نمیده مثلا الان که دوباره تست کردم پیغام زیر رو میدهکد: [انتخاب]root@ubuntu:~# mount /dev/sda2 /media/root
mount: wrong fs type, bad option, bad superblock on /dev/sda2,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
root@ubuntu:~#
اون موینت که کار نمیکنه باید بهش بگی چه نوع فایل سیستمی رو میخای موینت کنی تا بتونه موینت کنه. دایرکتوری media/boot/ هم از قبل باید وجود داشته باشهکد: [انتخاب]mount -t ext4 /dev/sda2 /media/root
http://30li.ir/bash/commands/mount
[/code]
ubuntu@ubuntu:~$ sudo -i
root@ubuntu:~# mkdir /media/root
root@ubuntu:~# mount -t ext4 /dev/sda2 /media/root
mount: wrong fs type, bad option, bad superblock on /dev/sda2,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
root@ubuntu:~#
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair
ببخشيد من يه سوالى بزام پيش اومد موينت گرافيكى با ترمينال فرق داره؟با ناوتيلوس بازش کنيم نميشه؟در مسیر media/ مونت میشه، با ترمینال میتونید به اونجا برید