目的是想把ubuntu放在移动硬盘里,以后可以接在任何电脑上直接用,
现在出现的情况是: 启动电脑时,如果没有接移动硬盘,会出现grub error21 错误,论坛上看了是因为找不到grub,大概是因为grub安装到移动硬盘上了;如果接着移动硬盘的话,xp以及ubuntu都可以正常使用。
下面给出磁盘信息:
代码: 全选
sudo fdisk -l
- Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xc6544ffd
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1912 15358108+ 7 HPFS/NTFS
/dev/sda2 1913 9729 62790052+ f W95 Ext'd (LBA)
/dev/sda5 1913 5736 30716248+ 7 HPFS/NTFS
/dev/sda6 5737 7181 11606931 7 HPFS/NTFS
/dev/sda7 7182 8456 10241406 7 HPFS/NTFS
/dev/sda8 8457 9729 10225341 7 HPFS/NTFS
Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xd056ac84
Device Boot Start End Blocks Id System
/dev/sdb1 * 4897 12924 64484878+ 7 HPFS/NTFS
/dev/sdb2 12925 19457 52476322+ f W95 Ext'd (LBA)
/dev/sdb3 1 4765 38274831 83 Linux
/dev/sdb4 4766 4896 1052257+ 82 Linux swap / Solaris
/dev/sdb5 12925 19457 52476291 7 HPFS/NTFS
Partition table entries are not in disk order
Disk /dev/mmcblk0: 1002 MB, 1002438656 bytes
6 heads, 37 sectors/track, 8819 cylinders
Units = cylinders of 222 * 512 = 113664 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 1 8820 978879+ 6 FAT16
- entry
default 0
entry
timeout 10
editing
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1
title Ubuntu 8.04.2, kernel 2.6.24-24-generic
root (hd1,2)
kernel /boot/vmlinuz-2.6.24-24-generic root=UUID=c00ed50b-5848-4f32-8d90-7b4c1a3de5e7 ro quiet splash
initrd /boot/initrd.img-2.6.24-24-generic
quiet
title Ubuntu 8.04.2, kernel 2.6.24-24-generic (recovery mode)
root (hd1,2)
kernel /boot/vmlinuz-2.6.24-24-generic root=UUID=c00ed50b-5848-4f32-8d90-7b4c1a3de5e7 ro single
initrd /boot/initrd.img-2.6.24-24-generic
title Ubuntu 8.04.2, memtest86+
root (hd1,2)
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
希望前辈们给出详细的解决方法,最好是亲身经历过的,谢谢!!