歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Dell Inspiron 14R裝WIN7和Ubuntu 10.10進不去系統Grub失效的解決辦法。

Dell Inspiron 14R裝WIN7和Ubuntu 10.10進不去系統Grub失效的解決辦法。

日期:2017/2/28 16:28:46   编辑:Linux教程

今年買的新的本本,以前學習過一段時間的Linux,忘的也差不多了,但是感覺還是對Linux尤其是Ubuntu有一些興趣,所以就又開始學習Ubuntu,剛開始用的WUBI裝的10.04,不過每次更新之後都是悲劇——win7根本就進不去,所以就只能抱到學校的網絡中心去,讓高手給我搞好,其實那種更新之後又GRUB選項修復GRUB的事情現在看來的確是小菜一碟,看懂這個就行了:http://www.linuxidc.com/Linux/2010-10/29368.htm,言歸正傳,我們看看Inspiron 14R安裝WIN7和Ubuntu 10.10進不去系統的問題(就是裝Ubuntu後重啟WIN7之後看到黑屏或者是no module name found)。

1.具體症狀描述:

用U盤或者光盤或者硬盤安裝Ubuntu 10.10之後,玩的十分happy,然後想起在WIN7中玩玩,所以重啟,選擇啟動項目進入win7,然後了關機再重啟,看到黑屏,什麼系統都進不去了。

2.解決辦法:

用U盤制作啟動盤或者光盤也可以。啟動盤的制作在Ubuntu的主頁上就有說明,做一個那樣的盤就行了。然後插入U盤或者光盤,從光盤或者U盤啟動系統,然後選擇liveCD模式,其實LIVECD模式就是啟動盤的第一個:試用Ubuntu,然後等片刻就進入了Ubuntu的界面,這時候打開終端,輸入進入修復grub步驟。

進入修復GRUB,具體步驟可以參照http://www.linuxidc.com/Linux/2009-07/20848.htm

但是不巧的是,我按照這個方法,到這一部出錯了:grub>find /boot/grub/stage1

按照上文章中的說法無法修復,所以再google一下,發現用這個方法修復grub:

mm@mm-desktop:~$ sudo -i (獲取root權限)

[sudo] password for mm:

root@mm-desktop:~# fdisk -l (查看Ubuntu所在分區)

Disk /dev/sda: 320.1 GB, 320072933376 bytes

255 heads, 63 sectors/track, 38913 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: 0xd012d012

Device Boot Start End Blocks Id System

/dev/sda1 * 1 510 4096543+ 7 HPFS/NTFS

/dev/sda2 1786 38913 298230629+ f W95 Ext'd (LBA)

/dev/sda3 511 1785 10240000 83 Linux (在這裡,sda3。你的可能是2,3,4,5,6.。。自己改下)

/dev/sda5 1786 14583 102799892 b W95 FAT32

/dev/sda6 14584 23803 74059600 7 HPFS/NTFS

/dev/sda7 23804 38913 121371043+ 7 HPFS/NTFS

Partition table entries are not in disk order

Note: sector size is 2048 (not 512)

Disk /dev/sdb: 3946 MB, 3946838016 bytes

64 heads, 32 sectors/track, 940 cylinders

Units = cylinders of 2048 * 2048 = 4194304 bytes

Sector size (logical/physical): 2048 bytes / 2048 bytes

I/O size (minimum/optimal): 2048 bytes / 2048 bytes

Disk identifier: 0x00000000

Device Boot Start End Blocks Id System

/dev/sdb1 1 941 3854326 b W95 FAT32

Partition 1 does not start on physical sector boundary.

root@mm-desktop:~# mount /dev/sda3 /mnt (把sda3掛載到/mnt)

root@mm-desktop:~# grub-install --root-directory=/mnt/ /dev/sda (安裝grub2到主硬盤)

修復完成之後,再用find那個就可以生效了,重啟一下,看到的是GRUB的引導界面,現在怎麼啟動你裝好的WIN7和Ubuntu呢,認真看看這裡完全就會了:

http://www.linuxidc.com/Linux/2010-10/29368.htm

在DELL Inspiron 14R中,啟動win7不能用

grub> rootnoverify (hd0,0)

grub> chainloader +1

grub> boot

上邊這個啟動的是DELL的一個檢測工具,啟動WIN7因該在第二個分區中,所以要這樣寫:

grub> rootnoverify (hd0,1)

grub> chainloader +1

grub> boot

正常啟動WIN7後把win7下的DELL datasafe 軟件都刪除了,包括local和online,這個處理方式是從外國網站上看過來的,具體原理我也不太懂,反正我這樣試過了,進入WIN7然後重啟不會影響啟動項的。

我是Linux菜鳥,大家有什麼好的方法可以分享一下。這篇文章主要針對 DELL Inspiron 14R 和Ubuntu 10.10,其他的Ubuntu版本總怎麼修復grub具體自己做的時候google一下吧 !又什麼錯誤的地方請大家指正!

Copyright © Linux教程網 All Rights Reserved