LiveCD修复lubuntu 10.10 修复grub菜单失败(Mount错误)

各种窗口管理器和美化相关
回复
头像
cpas
帖子: 105
注册时间: 2008-04-29 8:40
联系:

LiveCD修复lubuntu 10.10 修复grub菜单失败(Mount错误)

#1

帖子 cpas » 2011-04-26 9:32

我曾经成功在windows 2003安装好lubuntu10.10(跟ubuntu差不多,只是桌面环境不同),之后windows 2003 不见了,我通过winpe中的 PTTD工具把C盘重建了mbr,现在能够正常用win2003,但lubuntu 10.10又不见了。
我尝试借用硬盘安装的方式虚拟启动lubuntu10.10.iso,试图通过进入LiveCD来修复丢失的grub

参考网上多数雷同的方法:
sudo -i #取得管理员权限
fdisk -l #查看硬盘分区情况得知,我的Linux分区在 sda9,sda10是交换空间
mkdir /mnt/doexcel #建立目录
mount /dev/sda9 /mnt/doexcel#将我的Lubuntu10.10挂载到/mnt/doexcel下
提示:mount:Stale NFS file handle.
无法正常挂载
所以执行grub-install --root-directory=/mnt/doexcel /dev/sda就别指望会成功了,提示:
cannot find a device for /dev/sda (is /dev mounted?).

不知道为什么会mount 失败?需要加什么其他额外的参数吗?有谁能够解释一下。
上次由 cpas 在 2011-04-27 9:24,总共编辑 1 次。
2.欢迎参观指导:http://doexcel.com
1.人生无非就三块,管你喜欢不喜欢,生活、工作、学习就是你的全部。
0.个人Ubuntu梦想:Ubuntu常用操作,熟悉shell下的常用命令,会自由编译安装软件包,能够自由架设MySQL+Nginx+Php,能够在ubuntu下本地测试drupal。
头像
qy117121
论坛版主
帖子: 50587
注册时间: 2007-12-14 13:40
系统: Winbuntu
来自: 志虚国乌由市
联系:

Re: LiveCD修复lubuntu 10.10 修复grub菜单失败(Mount错误)

#2

帖子 qy117121 » 2011-04-26 10:44

挂载失败的原因我不清楚
不过可以用grub4dos引导ubuntu系统的,引导区的置顶帖里的教程
渠月 · QY   
本人只会灌水,不负责回答问题
无聊可以点一下→ http://u.nu/ubuntu

邮箱 chuan@ubuntu.org.cn
头像
cpas
帖子: 105
注册时间: 2008-04-29 8:40
联系:

Re: LiveCD修复lubuntu 10.10 修复grub菜单失败(Mount错误)

#3

帖子 cpas » 2011-04-26 10:50

我是已经安装好了lubuntu10.10在硬盘上了,我是通过grub4dos引导安装lubuntu的。
只是现在因为重写了mbr引导菜单看不到无法进入lubuntu系统了。
我现在已经通过硬盘上的iso进入LiveCD模式,只是执行mount不成功,不知道什么原因。
Linux不是一般的折腾人,用在她身上,时间如流水,不经意就哗哗而过。
2.欢迎参观指导:http://doexcel.com
1.人生无非就三块,管你喜欢不喜欢,生活、工作、学习就是你的全部。
0.个人Ubuntu梦想:Ubuntu常用操作,熟悉shell下的常用命令,会自由编译安装软件包,能够自由架设MySQL+Nginx+Php,能够在ubuntu下本地测试drupal。
头像
onshoestring
论坛版主
帖子: 4666
注册时间: 2009-09-06 5:53

Re: LiveCD修复lubuntu 10.10 修复grub菜单失败(Mount错误)

#4

帖子 onshoestring » 2011-04-26 11:47

你可以试着在grub4dos的menu.lst加入
title Ubuntu
find --set-root --ignore-floppies --ignore-cd /boot/grub/core.img
kernel /boot/grub/core.img
boot
/boot单独分区加下面这段:
title Ubuntu_boot_alone
find --set-root --ignore-floppies --ignore-cd /grub/core.img
kernel /grub/core.img
boot
头像
cpas
帖子: 105
注册时间: 2008-04-29 8:40
联系:

Re: LiveCD修复lubuntu 10.10 修复grub菜单失败(Mount错误)

#5

帖子 cpas » 2011-04-27 6:52

感谢四楼,我按照你的提示回来试验了一下,发现还是不成功,提示“ Error: File not find........我想可能问题的关键在以 livecd正常进入后终端 mount时提示的那个 nfs file handle错误,把这个攻克了,可能问题就解决了。
2.欢迎参观指导:http://doexcel.com
1.人生无非就三块,管你喜欢不喜欢,生活、工作、学习就是你的全部。
0.个人Ubuntu梦想:Ubuntu常用操作,熟悉shell下的常用命令,会自由编译安装软件包,能够自由架设MySQL+Nginx+Php,能够在ubuntu下本地测试drupal。
头像
onshoestring
论坛版主
帖子: 4666
注册时间: 2009-09-06 5:53

Re: LiveCD修复lubuntu 10.10 修复grub菜单失败(Mount错误)

#6

帖子 onshoestring » 2011-04-27 11:23

终端运行:

代码: 全选

 cd ~/桌面 && wget 'http://nchc.dl.sourceforge.net/project/bootinfoscript/bootinfoscript/0.55/boot_info_script055.sh' && sudo bash boot_info_script055.sh
把RESULTS.txt文件内容贴上来,看看是什么问题,我不会了还有其他人。
头像
cpas
帖子: 105
注册时间: 2008-04-29 8:40
联系:

Re: LiveCD修复lubuntu 10.10 修复grub菜单失败(Mount错误)

#7

帖子 cpas » 2011-04-27 21:18

Boot Info Script 0.55 dated February 15th, 2010

============================= Boot Info Summary: ==============================

=> Windows is installed in the MBR of /dev/sda

sda1: _________________________________________________________________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files/dirs: /menu.lst /boot.ini /GRLDR /ntldr /NTDETECT.COM

sda2: _________________________________________________________________________

File system: Extended Partition
Boot sector type: -
Boot sector info:

sda5: _________________________________________________________________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: According to the info in the boot sector, sda5 starts
at sector 63.
Operating System:
Boot files/dirs:

sda6: _________________________________________________________________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: According to the info in the boot sector, sda6 starts
at sector 63.
Operating System:
Boot files/dirs:

sda7: _________________________________________________________________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: According to the info in the boot sector, sda7 starts
at sector 63.
Operating System:
Boot files/dirs:

sda8: _________________________________________________________________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: According to the info in the boot sector, sda8 starts
at sector 63.
Operating System:
Boot files/dirs:

sda9: _________________________________________________________________________

File system: ext4
Boot sector type: -
Boot sector info:
Mounting failed:
mount: Stale NFS file handle

sda10: _________________________________________________________________________

File system: swsuspend
Boot sector type: -
Boot sector info:
Mounting failed:
mount: Stale NFS file handle
mount: 未知的文件系统 `swsuspend'

=========================== Drive/Partition Info: =============================

Drive: sda ___________________ _____________________________________________________

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sda1 * 63 20,996,954 20,996,892 7 HPFS/NTFS
/dev/sda2 20,996,955 625,137,344 604,140,390 f W95 Ext d (LBA)
/dev/sda5 20,997,018 62,942,669 41,945,652 7 HPFS/NTFS
/dev/sda6 62,942,733 435,682,799 372,740,067 7 HPFS/NTFS
/dev/sda7 435,682,863 456,647,624 20,964,762 7 HPFS/NTFS
/dev/sda8 456,647,688 583,191,629 126,543,942 7 HPFS/NTFS
/dev/sda9 583,191,693 602,726,669 19,534,977 83 Linux
/dev/sda10 623,129,283 625,137,344 2,008,062 82 Linux swap / Solaris


blkid -c /dev/null: ____________________________________________________________

Device UUID TYPE LABEL

/dev/loop0 iso9660
/dev/loop1 squashfs
/dev/sda10 4ae2edb0-fd92-479c-92d3-f41c026d8cbe swsuspend
/dev/sda1 9244AA2844AA0F53 ntfs
/dev/sda2: PTTYPE="dos"
/dev/sda5 160EABAE705486E1 ntfs D
/dev/sda6 583AAEB9C1521B84 ntfs E
/dev/sda7 92844EF4844ED9FD ntfs F
/dev/sda8 58E01BC8E01BAAF0 ntfs G
/dev/sda9 d9e47d3b-86b8-46ab-bb45-123a419030f5 ext4
/dev/sda: PTTYPE="dos"

============================ "mount | grep ^/dev output: ===========================

Device Mount_Point Type Options

aufs / aufs (rw)
/dev/sda1 /isodevice fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096)
/dev/loop0 /cdrom iso9660 (ro,noatime)
/dev/loop1 /rofs squashfs (ro,noatime)


================================ sda1/menu.lst: ================================

# This is a sample menu.lst file. You should make some changes to it.
# The old install method of booting via the stage-files has been removed.
# Please install GRLDR boot strap code to MBR with the bootlace.com
# utility under DOS/Win9x or Linux.

color black/cyan yellow/cyan
timeout 30
default /default

title find and load NTLDR of Windows NT/2K/XP
fallback 1
find --set-root /ntldr
chainloader /ntldr
savedefault --wait=2

title find and load CMLDR, the Recovery Console of Windows NT/2K/XP
fallback 2
find --set-root /cmldr
chainloader /cmldr
#####################################################################
# write string "cmdcons" to memory 0000:7C03 in 2 steps:
#####################################################################
# step 1. Write 4 chars "cmdc" at 0000:7C03
write 0x7C03 0x63646D63
# step 2. Write 3 chars "ons" and an ending null at 0000:7C07
write 0x7C07 0x00736E6F
savedefault --wait=2

title find and load IO.SYS of Windows 9x/Me
fallback 3
find --set-root /io.sys
chainloader /io.sys
savedefault --wait=2

title find and boot Mandriva with menu.lst already installed
fallback 4
find --set-root /etc/mandriva-release
savedefault --wait=2
configfile /boot/grub/menu.lst

title find and boot Linux with menu.lst already installed
fallback 5
find --set-root /sbin/init
savedefault --wait=2
configfile /boot/grub/menu.lst

title commandline
savedefault --wait=2
commandline

title floppy (fd0)
chainloader (fd0)+1
rootnoverify (fd0)
savedefault --wait=2

title back to dos
savedefault --wait=2
quit

title reboot
savedefault --wait=2
reboot

title halt
savedefault --wait=2
halt

title memdrive duplicated from floppy image file (hd0,0)/sbm.bin
map --mem (hd0,0)/sbm.bin (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
savedefault --wait=2

title memdrive based on win98 partition (hd0,6)
map --mem (hd0,6)+1 (hd0)
# map --mem (hd0,0)/win98.gz (hd0)
map --hook
chainloader (hd0)+1
rootnoverify (hd0)
savedefault --wait=2

title Install Ubuntu

root (hd0,0)

kernel (hd0,0)/vmlinuz boot=casper iso-scan/filename=/lubuntu-10.10.iso ro quiet splash nomodeset locale=zh_CN.UTF-8

initrd (hd0,0)/initrd.lz

title Lubuntu 10.10 To Fly
find --set-root --ignore-floppies --ignore-cd /boot/grub/core.img
kernel /boot/grub/core.img



================================ sda1/boot.ini: ================================

[boot loader]
timeout=3
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows Server 2003, Enterprise" /fastdetect /Noexecute=AlwaysOff
C:\GRLDB="[4;32mVlieh the world,DOSÒýµ¼Ä£Ê½"
C:\grldr="install lbuntu 10.10"
=================== sda1: Location of files loaded by Grub: ===================


??GB: initrd.lz
??GB: menu.lst
??GB: vmlinuz
2.欢迎参观指导:http://doexcel.com
1.人生无非就三块,管你喜欢不喜欢,生活、工作、学习就是你的全部。
0.个人Ubuntu梦想:Ubuntu常用操作,熟悉shell下的常用命令,会自由编译安装软件包,能够自由架设MySQL+Nginx+Php,能够在ubuntu下本地测试drupal。
头像
onshoestring
论坛版主
帖子: 4666
注册时间: 2009-09-06 5:53

Re: LiveCD修复lubuntu 10.10 修复grub菜单失败(Mount错误)

#8

帖子 onshoestring » 2011-04-27 22:28

不知道有用没:

代码: 全选

sudo umount -f /dev/sda9
sudo umount -f /dev/sda10
头像
cpas
帖子: 105
注册时间: 2008-04-29 8:40
联系:

Re: LiveCD修复lubuntu 10.10 修复grub菜单失败(Mount错误)

#9

帖子 cpas » 2011-04-27 22:47

执行会提示如下:
root@ubuntu:~# sudo umount -f /dev/sda9
umount2: 无效的参数
umount: /dev/sda9 未挂载
root@ubuntu:~# sudo umount -f /dev/sda10
umount2: 无效的参数
umount: /dev/sda10 未挂载


我的etc/mtab 内容如下
aufs / aufs rw 0 0
none /proc proc rw,noexec,nosuid,nodev 0 0
none /sys sysfs rw,noexec,nosuid,nodev 0 0
fusectl /sys/fs/fuse/connections fusectl rw 0 0
none /dev devtmpfs rw,mode=0755 0 0
none /dev/pts devpts rw,noexec,nosuid,gid=5,mode=0620 0 0
/dev/sda1 /isodevice fuseblk rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096 0 0
/dev/loop0 /cdrom iso9660 ro,noatime 0 0
/dev/loop1 /rofs squashfs ro,noatime 0 0
none /sys/kernel/debug debugfs rw 0 0
none /sys/kernel/security securityfs rw 0 0
none /dev/shm tmpfs rw,nosuid,nodev 0 0
tmpfs /tmp tmpfs rw,nosuid,nodev 0 0
none /var/run tmpfs rw,nosuid,mode=0755 0 0
none /var/lock tmpfs rw,noexec,nosuid,nodev 0 0
gvfs-fuse-daemon /home/ubuntu/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,user=ubuntu 0 0
2.欢迎参观指导:http://doexcel.com
1.人生无非就三块,管你喜欢不喜欢,生活、工作、学习就是你的全部。
0.个人Ubuntu梦想:Ubuntu常用操作,熟悉shell下的常用命令,会自由编译安装软件包,能够自由架设MySQL+Nginx+Php,能够在ubuntu下本地测试drupal。
头像
cpas
帖子: 105
注册时间: 2008-04-29 8:40
联系:

Re: LiveCD修复lubuntu 10.10 修复grub菜单失败(Mount错误)

#10

帖子 cpas » 2011-04-28 11:22

看来这个问题短期内(在我未安装Lubuntu 11.04 前)是不会有解决方法了。 :em20
2.欢迎参观指导:http://doexcel.com
1.人生无非就三块,管你喜欢不喜欢,生活、工作、学习就是你的全部。
0.个人Ubuntu梦想:Ubuntu常用操作,熟悉shell下的常用命令,会自由编译安装软件包,能够自由架设MySQL+Nginx+Php,能够在ubuntu下本地测试drupal。
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: LiveCD修复lubuntu 10.10 修复grub菜单失败(Mount错误)

#11

帖子 smallapple » 2011-04-28 11:27

fsck?
头像
cpas
帖子: 105
注册时间: 2008-04-29 8:40
联系:

Re: LiveCD修复lubuntu 10.10 修复grub菜单失败(Mount错误)

#12

帖子 cpas » 2011-04-28 11:35

fsck /dev/sda9
fsck /dev/sda10
我回去试试
2.欢迎参观指导:http://doexcel.com
1.人生无非就三块,管你喜欢不喜欢,生活、工作、学习就是你的全部。
0.个人Ubuntu梦想:Ubuntu常用操作,熟悉shell下的常用命令,会自由编译安装软件包,能够自由架设MySQL+Nginx+Php,能够在ubuntu下本地测试drupal。
回复