[问题]把grub安装在U盘中出现的找不到驱动器问题

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
ley1982
帖子: 50
注册时间: 2008-06-27 14:43
送出感谢: 0
接收感谢: 0

[问题]把grub安装在U盘中出现的找不到驱动器问题

#1

帖子 ley1982 » 2008-07-01 22:17

lienyu@lienyu:~$ fdisk -l

Disk /dev/sda: 266 MB, 266600448 bytes
9 heads, 57 sectors/track, 1015 cylinders
Units = cylinders of 513 * 512 = 262656 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 77 19722 83 Linux
/dev/sda2 78 1015 240597 83 Linux
lienyu@lienyu:~$ mount
/dev/hda1 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
lrm on /lib/modules/2.6.20-15-generic/volatile type tmpfs (rw)
/dev/hda3 on /home type ext3 (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/hdc on /media/cdrom0 type iso9660 (ro,noexec,nosuid,nodev,user=lienyu)
/dev/sda1 on /media/disk type ext2 (rw,noexec,nosuid,nodev) U盘已经挂载上了
/dev/sda2 on /media/disk-1 type ext2 (rw,noexec,nosuid,nodev)
lienyu@lienyu:~$ grub
Probing devices to guess BIOS drives. This may take a long time.

[ Minimal BASH-like line editing is supported. For
the first word, TAB lists possible command
completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub> root (hd1,0)
root (hd1,0)

Error 21: Selected disk does not exist

这个错误是怎么回事啊,我就一个硬盘,用虚拟机装的ubuntu当时把一块硬盘,分成一个主分区,一个swap和一个/home
现在我的U盘应该是
leafei
帖子: 83
注册时间: 2008-06-29 21:41
送出感谢: 0
接收感谢: 0

#2

帖子 leafei » 2008-07-02 12:52

grub shell也可以用TAB补全的哦。:)
回复

回到 “启动和引导”