我用10.04的盘作为引导盘,进入终端,输入命令:
代码: 全选
sudo apt-get install lilo
sudo lilo -M /dev/sda mbr
但用户名和密码是什么啊?
再者:我按CTRL+ALT+F7切换后也停在那里,显示很多英文,但是键盘可以输入。我不知道输入什么才能进入图形界面。
代码: 全选
sudo apt-get install lilo
sudo lilo -M /dev/sda mbr
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到主硬盘)
代码: 全选
mount /dev/sda2 /mnt
代码: 全选
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: 0x3c97251d
Device Boot Start End Blocks Id System
/dev/sda1 * 1 3825 30724281 c W95 FAT32 (LBA)
/dev/sda2 3826 19457 125564040 f W95 Ext'd (LBA)
/dev/sda5 3826 7650 30724281 b W95 FAT32
/dev/sda6 7651 11474 30716248+ 7 HPFS/NTFS
/dev/sda7 11475 15298 30716248+ 7 HPFS/NTFS
/dev/sda8 15299 17848 20482843+ 7 HPFS/NTFS
/dev/sda9 17849 19457 12924261 7 HPFS/NTFS
root@ubuntu:~# mount /dev/sda2 /mnt
mount: you must specify the filesystem type
root@ubuntu:~#
代码: 全选
root@ubuntu:~# mount /dev/sda9 /mnt
root@ubuntu:~# grub-install --root-directory=/mnt/ /dev/sda
Installation finished. No error reported.
root@ubuntu:~#
fdisk -l的结果栗没有看到linux分区。jerry200 写了:answer:
1,你不会是wubi安装的吧: NO.
2,你的linux分区没有: 单独装在G盘的。
现在还是不能进啊
SOSO...............
代码: 全选
/dev/sda8 15299 17848 20482843+ 7 HPFS/NTFS
代码: 全选
[boot loader]
timeout=2
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect
C:\wubildr.mbr = "Ubuntu"