c*******n 发帖数: 671 | 1 【 以下文字转载自 Linux 讨论区 】
发信人: comeclean (gethandsdirty), 信区: Linux
标 题: 不能umount /mnt了怎么回事阿?
发信站: BBS 未名空间站 (Tue May 6 22:53:37 2014, 美东)
之前为了转移备份,在命令行里sudo mount -t ntfs /dev/sda1 /mnt/windows "umask
=022"
我装了双系统,/dev/sda1是windows, /dev/sda6好像是Linux, 只有一块硬盘。
本来是用easyBSD给windows boot manager加了grub的选项,开机先进windows boot再
进grub的。
现在开机直接进grub!!我估计是因为mount了windows的原因。于是想umount, 但是怎
么都umount不了啊???
sudo umount /mnt/windows 说:not mounted (from mtab)
sudo umount -f /mnt/windows
sudo umount -f /mnt
sudo umount /mnt/windows -l
sudo umount -n /mnt/windows
sudo umount -t ntfs /mnt/windows
统统都不行!提示:/mnt/windows: not mounted, 就连/mnt也是 : not mounted
查看cat etc/mtab里面确实没有/mnt及地下的目录阿
fstab里面也是没有
这怎么回事,怎么办啊?求救,哭死了 |
c*******n 发帖数: 671 | 2 求大神来救命一下,女生一个人折腾linux伤不起。。
umask
【在 c*******n 的大作中提到】 : 【 以下文字转载自 Linux 讨论区 】 : 发信人: comeclean (gethandsdirty), 信区: Linux : 标 题: 不能umount /mnt了怎么回事阿? : 发信站: BBS 未名空间站 (Tue May 6 22:53:37 2014, 美东) : 之前为了转移备份,在命令行里sudo mount -t ntfs /dev/sda1 /mnt/windows "umask : =022" : 我装了双系统,/dev/sda1是windows, /dev/sda6好像是Linux, 只有一块硬盘。 : 本来是用easyBSD给windows boot manager加了grub的选项,开机先进windows boot再 : 进grub的。 : 现在开机直接进grub!!我估计是因为mount了windows的原因。于是想umount, 但是怎
|
t****t 发帖数: 6806 | 3 引导跟mount没有关系, 你直接进grub了表示grub被装在MBR了.
umask
【在 c*******n 的大作中提到】 : 【 以下文字转载自 Linux 讨论区 】 : 发信人: comeclean (gethandsdirty), 信区: Linux : 标 题: 不能umount /mnt了怎么回事阿? : 发信站: BBS 未名空间站 (Tue May 6 22:53:37 2014, 美东) : 之前为了转移备份,在命令行里sudo mount -t ntfs /dev/sda1 /mnt/windows "umask : =022" : 我装了双系统,/dev/sda1是windows, /dev/sda6好像是Linux, 只有一块硬盘。 : 本来是用easyBSD给windows boot manager加了grub的选项,开机先进windows boot再 : 进grub的。 : 现在开机直接进grub!!我估计是因为mount了windows的原因。于是想umount, 但是怎
|
c*******n 发帖数: 671 | 4 没有啊,我grub装在/boot区的, 没出问题之前都是直接进win的。
【在 t****t 的大作中提到】 : 引导跟mount没有关系, 你直接进grub了表示grub被装在MBR了. : : umask
|
t****t 发帖数: 6806 | 5 多新鲜哪, 这就跟你说windows装在C盘一样, grub当然主要都装在ext分区里.
但是引导区总得有个索引吧. 索引是指向windows的multiboot还是grub, 这是你看到的
区别.
【在 c*******n 的大作中提到】 : 没有啊,我grub装在/boot区的, 没出问题之前都是直接进win的。
|
t*****z 发帖数: 1598 | 6 sudo umount /dev/sda1 会怎么样? |
t****t 发帖数: 6806 | 7 跟那没关系, 就是grub换了个地方.
【在 t*****z 的大作中提到】 : sudo umount /dev/sda1 会怎么样?
|
n******7 发帖数: 12463 | 8 刚想说easyBCD,发现你有这个东西了
用这个fix一下不就完了 |
c*******n 发帖数: 671 | 9 I should say: I set MBR to C, not /boot. that's what I mean.
【在 t****t 的大作中提到】 : 多新鲜哪, 这就跟你说windows装在C盘一样, grub当然主要都装在ext分区里. : 但是引导区总得有个索引吧. 索引是指向windows的multiboot还是grub, 这是你看到的 : 区别.
|
c*******n 发帖数: 671 | 10 how to fix it? can you be more specific?
it's already has C as MBR?
【在 n******7 的大作中提到】 : 刚想说easyBCD,发现你有这个东西了 : 用这个fix一下不就完了
|
|
|
w***n 发帖数: 1613 | 11 干脆直接用grub好了,加多一项boot windows就好
umask
【在 c*******n 的大作中提到】 : how to fix it? can you be more specific? : it's already has C as MBR?
|
t****t 发帖数: 6806 | 12 看你说的就知道你完全没概念. 什么叫set MBR to C? MBR是master boot record, 里面
除了分区表, 可以放任何程序. windows会在MBR里写一小段代码加载multiboot, grub会
在MBR里写一小段代码加载grub主程序. you don't set MBR to anything, you put yo
ur bootloader into MBR.
http://en.wikipedia.org/wiki/File:GNU_GRUB_on_MBR_partitioned_h
你把grub直接写到MBR了, 又没有设置grub选项加载windows, 当然就直接进linux. 跟你
grub主程序写在哪里毫无关系.
【在 c*******n 的大作中提到】 : I should say: I set MBR to C, not /boot. that's what I mean.
|
n******7 发帖数: 12463 | 13 好久没用了
应该用它重新写一下mbr就好了
我觉得dual boot用windows启动引导比较省事
grub最好不要装到mbr
【在 c*******n 的大作中提到】 : how to fix it? can you be more specific? : it's already has C as MBR?
|
n******7 发帖数: 12463 | 14 如果你根本进不去windows了,可以找个系统rescue disk重做mbr
然后再用easybcd加上linux启动
当然也可以直接在grub里面加,不知道你实践起来会不会很头疼 |
c*******n 发帖数: 671 | 15 I have windows in MBR and didn't write grub into MBR. That's why I need to
use easyBCD to add grub into windows boot manager as the second boot option.
And I do have windows in grub menu, and I can get into windows if I choose.
The problem is the order: before, windows boot manager comes first, if
choose Linux, then grub windows pops out; now grub comes first. I don't know
what can change that.
里面
grub会
yo
跟你
【在 t****t 的大作中提到】 : 看你说的就知道你完全没概念. 什么叫set MBR to C? MBR是master boot record, 里面 : 除了分区表, 可以放任何程序. windows会在MBR里写一小段代码加载multiboot, grub会 : 在MBR里写一小段代码加载grub主程序. you don't set MBR to anything, you put yo : ur bootloader into MBR. : http://en.wikipedia.org/wiki/File:GNU_GRUB_on_MBR_partitioned_h : 你把grub直接写到MBR了, 又没有设置grub选项加载windows, 当然就直接进linux. 跟你 : grub主程序写在哪里毫无关系.
|
t****t 发帖数: 6806 | 16 先别急着恢复windows, 你需要把grub移到/dev/sda6先
grub2-install /dev/sda6
然后找个windows安装盘, 按这个做
http://www.sevenforums.com/tutorials/20864-mbr-restore-windows-
-record.html
然后拿你的easybcd来把sda6装回windows bootloader里
【在 n******7 的大作中提到】 : 如果你根本进不去windows了,可以找个系统rescue disk重做mbr : 然后再用easybcd加上linux启动 : 当然也可以直接在grub里面加,不知道你实践起来会不会很头疼
|
t****t 发帖数: 6806 | 17 because you had windows bootloader in MBR before, so windows bootloader came
first. but now apparently you write grub into MBR, so grub comes first...as
simple as that. i dunno how to prove to you since you insist you "didn't" w
rite grub into MBR... so, i can only say good luck to you.
option.
know
【在 c*******n 的大作中提到】 : I have windows in MBR and didn't write grub into MBR. That's why I need to : use easyBCD to add grub into windows boot manager as the second boot option. : And I do have windows in grub menu, and I can get into windows if I choose. : The problem is the order: before, windows boot manager comes first, if : choose Linux, then grub windows pops out; now grub comes first. I don't know : what can change that. : : 里面 : grub会 : yo
|
c*******n 发帖数: 671 | 18 grub---ubuntu
--- win ->win boot manager --- win
---Ubuntu
by selecting win, win, I can get into windows.
Did you get what I mean? It used to be and should be like this:
win boot manager ---windows
---Ubuntu ->grub ----Ubuntu
----windows
【在 n******7 的大作中提到】 : 如果你根本进不去windows了,可以找个系统rescue disk重做mbr : 然后再用easybcd加上linux启动 : 当然也可以直接在grub里面加,不知道你实践起来会不会很头疼
|
c*******n 发帖数: 671 | 19 well at least I don't remember I wrote grub, I don't even know how to do
that.
things changed by improper upgrading
will follow your advice though, thanks!
came
as
w
【在 t****t 的大作中提到】 : because you had windows bootloader in MBR before, so windows bootloader came : first. but now apparently you write grub into MBR, so grub comes first...as : simple as that. i dunno how to prove to you since you insist you "didn't" w : rite grub into MBR... so, i can only say good luck to you. : : option. : know
|
t****t 发帖数: 6806 | 20 didn't you upgraded your system? everytime you update kernel, grub config fi
le will update (since the initrd and vmlinuz are changed). system upgrade co
uld easily mess itself and wrote grub to /dev/sda instead of /dev/sda6.
【在 c*******n 的大作中提到】 : well at least I don't remember I wrote grub, I don't even know how to do : that. : things changed by improper upgrading : will follow your advice though, thanks! : : came : as : w
|
|
|
n****1 发帖数: 1136 | 21 围观女汉子...
不过说真的,grub的重写没那么频繁。俺们玩arch整天升级内核,grub都不需要重写。
仅仅是在grub本身升级时才重写。
不过安全起见,linux和windows最好装在不同的硬盘上。笔记本的花就只能小心行事了
。千万记得备份mbr和分区表啊。 |
t****t 发帖数: 6806 | 22 我还以为楼主进不了windows了. 原来只是bootloader换了个顺序, windows还能进.
这屁大的事也要哭死, 浪费围观群众时间.
【在 n****1 的大作中提到】 : 围观女汉子... : 不过说真的,grub的重写没那么频繁。俺们玩arch整天升级内核,grub都不需要重写。 : 仅仅是在grub本身升级时才重写。 : 不过安全起见,linux和windows最好装在不同的硬盘上。笔记本的花就只能小心行事了 : 。千万记得备份mbr和分区表啊。
|
n******7 发帖数: 12463 | 23 哦 对 需要把grub移到linux 分区,不然linux又不行了
我习惯不把grub装到mbr了 所以忘记说了。。。
【在 t****t 的大作中提到】 : 先别急着恢复windows, 你需要把grub移到/dev/sda6先 : grub2-install /dev/sda6 : 然后找个windows安装盘, 按这个做 : http://www.sevenforums.com/tutorials/20864-mbr-restore-windows- : -record.html : 然后拿你的easybcd来把sda6装回windows bootloader里
|
n******7 发帖数: 12463 | 24 这更简单了
你把windows boot manager里面的ubuntu去掉不就结了
就一层选择,简洁明快
【在 c*******n 的大作中提到】 : grub---ubuntu : --- win ->win boot manager --- win : ---Ubuntu : by selecting win, win, I can get into windows. : Did you get what I mean? It used to be and should be like this: : win boot manager ---windows : ---Ubuntu ->grub ----Ubuntu : ----windows
|
c*******n 发帖数: 671 | 25 oh, that's why. this is exactly what I was wondering. thanks!
fi
co
【在 t****t 的大作中提到】 : didn't you upgraded your system? everytime you update kernel, grub config fi : le will update (since the initrd and vmlinuz are changed). system upgrade co : uld easily mess itself and wrote grub to /dev/sda instead of /dev/sda6.
|
t*****z 发帖数: 1598 | 26 我把Ubuntu安装镜像刻到USB盘上,里面再装了一套图形化的boot-repair,以后重装系
统都用这个来恢复grub,点点鼠标就可以。 |
c******n 发帖数: 16666 | |