冰天雪地裸体跪求,删除交换区启动不了

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
头像
黄美姬
帖子: 8428
注册时间: 2009-10-08 11:15
来自: 大城市铁岭

冰天雪地裸体跪求,删除交换区启动不了

#1

帖子 黄美姬 » 2010-01-29 14:48

内存512M,交换区设700M,平时都用不到一半,想重设大小,就删除之,重启动,结果悲剧

grub rescue >set
prefix=(hd0,11)/boot/grub
root=hd0,11
grub rescue >ls
(hd0) (hd0,10) (hd0,9) (hd0,8) (hd0,10) (hd0,7) (hd0,6) (hd0,5) (hd0,1)

grub rescue >set root=(hd0,10)
grub rescue > linux /vmlinuz root=/dev/sda10
Unkown command'linux'

现在什么办,
上次由 黄美姬 在 2010-01-29 18:51,总共编辑 1 次。
我们是命运的妓女,它把我们都嫖了

N卡驱动:http://www.nvidia.cn/Download/index.aspx?lang=cn
极品飞车:http://www.geforce.cn/optimize/optimal- ... ts-450-ops
孤岛危机优化设置:http://www.geforce.cn/optimize/optimal- ... tx-450-ops
:cp /etc/skel/.bashrc ~/
PS1="\[\e]2;\u@\H \w\a\e[32;1m\]\T$\[\e[0m\] "
http://cdimage.ubuntu.com/
http://releases.ubuntu.com/
头像
tenzu
论坛版主
帖子: 36924
注册时间: 2008-11-21 20:26

Re: 求命,删除交换区启动不了

#2

帖子 tenzu » 2010-01-29 14:50

记得有改分区的帖子里说删除之后要挂载,还要改grub
启动的事情,俺不懂
头像
黄美姬
帖子: 8428
注册时间: 2009-10-08 11:15
来自: 大城市铁岭

Re: 救命,删除交换区启动不了

#3

帖子 黄美姬 » 2010-01-29 14:52

第二条命令错了,应如何输入?,9.10内核是自编译2.6.32.4-custom0

我按这里做的http://wiki.ubuntu-tw.org/index.php?tit ... B.E6.A9.9F
上次由 黄美姬 在 2010-01-29 15:01,总共编辑 1 次。
我们是命运的妓女,它把我们都嫖了

N卡驱动:http://www.nvidia.cn/Download/index.aspx?lang=cn
极品飞车:http://www.geforce.cn/optimize/optimal- ... ts-450-ops
孤岛危机优化设置:http://www.geforce.cn/optimize/optimal- ... tx-450-ops
:cp /etc/skel/.bashrc ~/
PS1="\[\e]2;\u@\H \w\a\e[32;1m\]\T$\[\e[0m\] "
http://cdimage.ubuntu.com/
http://releases.ubuntu.com/
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 救命,删除交换区启动不了

#4

帖子 smallapple » 2010-01-29 15:00

grub rescue >set
grub rescue >root=hd0,10
grub rescue >prefix=/boot/grub
grub rescue >set root=hd0,10
grub rescue >set prefix=(hd0,10)/boot/grub
grub rescue >insmod normal
grub rescue >normal
按c
rescue >set root=(hd0,10)
rescue > linux /vmlinuz root=/dev/sda10
头像
黄美姬
帖子: 8428
注册时间: 2009-10-08 11:15
来自: 大城市铁岭

Re: 救命,删除交换区启动不了

#5

帖子 黄美姬 » 2010-01-29 15:11

smallapple 写了:grub rescue >set
grub rescue >root=hd0,10
grub rescue >prefix=/boot/grub
grub rescue >set root=hd0,10
grub rescue >set prefix=(hd0,10)/boot/grub
grub rescue >insmod normal
grub rescue >normal
按c
rescue >set root=(hd0,10)
rescue > linux /vmlinuz root=/dev/sda10
输入完了,光标到下一行了。现在什么办,重启动吗?boot? ctrl+x?

如成功开机后,如何重设交换区???,设好后用update-grub,就不会乱了吧?
上次由 黄美姬 在 2010-01-29 15:15,总共编辑 1 次。
我们是命运的妓女,它把我们都嫖了

N卡驱动:http://www.nvidia.cn/Download/index.aspx?lang=cn
极品飞车:http://www.geforce.cn/optimize/optimal- ... ts-450-ops
孤岛危机优化设置:http://www.geforce.cn/optimize/optimal- ... tx-450-ops
:cp /etc/skel/.bashrc ~/
PS1="\[\e]2;\u@\H \w\a\e[32;1m\]\T$\[\e[0m\] "
http://cdimage.ubuntu.com/
http://releases.ubuntu.com/
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 救命,删除交换区启动不了

#6

帖子 smallapple » 2010-01-29 15:13

initrd /initrd.img
boot
头像
黄美姬
帖子: 8428
注册时间: 2009-10-08 11:15
来自: 大城市铁岭

Re: 救命,删除交换区启动不了

#7

帖子 黄美姬 » 2010-01-29 15:19

OK了,进桌面了 :em11,看来要把这代码打印加塑放到钱包里,否则旁边没电脑上网不就更悲剧。

代码: 全选

grub rescue >set
grub rescue >root=hd0,10
grub rescue >prefix=/boot/grub
grub rescue >set root=hd0,10
grub rescue >set prefix=(hd0,10)/boot/grub
grub rescue >insmod normal
grub rescue >normal
按c (我不用按C它自已打开新窗口的)
rescue >set root=(hd0,10)
rescue > linux /vmlinuz root=/dev/sda10
linux vmlinuz root=/dev/sda10
boot
上次由 黄美姬 在 2010-01-29 15:29,总共编辑 2 次。
我们是命运的妓女,它把我们都嫖了

N卡驱动:http://www.nvidia.cn/Download/index.aspx?lang=cn
极品飞车:http://www.geforce.cn/optimize/optimal- ... ts-450-ops
孤岛危机优化设置:http://www.geforce.cn/optimize/optimal- ... tx-450-ops
:cp /etc/skel/.bashrc ~/
PS1="\[\e]2;\u@\H \w\a\e[32;1m\]\T$\[\e[0m\] "
http://cdimage.ubuntu.com/
http://releases.ubuntu.com/
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 救命,删除交换区启动不了

#8

帖子 smallapple » 2010-01-29 15:27

把 swap 分区重新弄好,修改 fstab 中 swap 的UUID。
然后

代码: 全选

sudo grub-install /dev/sda
sudo update-grub
完了应该就正常了。
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 救命,删除交换区启动不了

#9

帖子 smallapple » 2010-01-29 15:54

黄美姬 写了:OK了,进桌面了 :em11,看来要把这代码打印加塑放到钱包里,否则旁边没电脑上网不就更悲剧。

代码: 全选

grub rescue >set
grub rescue >root=hd0,10
grub rescue >prefix=/boot/grub
grub rescue >set root=hd0,10
grub rescue >set prefix=(hd0,10)/boot/grub
grub rescue >insmod normal
grub rescue >normal
按c (我不用按C它自已打开新窗口的)
rescue >set root=(hd0,10)
rescue > linux /vmlinuz root=/dev/sda10
linux vmlinuz root=/dev/sda10
boot
没有 initrd ,boot 也没用 :em04
头像
黄美姬
帖子: 8428
注册时间: 2009-10-08 11:15
来自: 大城市铁岭

Re: 救命,删除交换区启动不了

#10

帖子 黄美姬 » 2010-01-29 16:14

代码: 全选

grub rescue >set
grub rescue >root=hd0,10
grub rescue >prefix=/boot/grub
grub rescue >set root=hd0,10
grub rescue >set prefix=(hd0,10)/boot/grub
grub rescue >insmod normal
grub rescue >normal
按c
rescue >set root=(hd0,10)
rescue > linux /vmlinuz root=/dev/sda10
initrd /initrd.img
boot
Screenshot-36.png
700M交换区改500M,还有200M又要分出来,听说有未分配空间不太好 :em01
我们是命运的妓女,它把我们都嫖了

N卡驱动:http://www.nvidia.cn/Download/index.aspx?lang=cn
极品飞车:http://www.geforce.cn/optimize/optimal- ... ts-450-ops
孤岛危机优化设置:http://www.geforce.cn/optimize/optimal- ... tx-450-ops
:cp /etc/skel/.bashrc ~/
PS1="\[\e]2;\u@\H \w\a\e[32;1m\]\T$\[\e[0m\] "
http://cdimage.ubuntu.com/
http://releases.ubuntu.com/
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: 救命,删除交换区启动不了

#11

帖子 eexpress » 2010-01-29 16:44

200M。送我吧。切下来。
为了这200M。折腾个啥哦。 :em04
● 鸣学
头像
黄美姬
帖子: 8428
注册时间: 2009-10-08 11:15
来自: 大城市铁岭

Re: 救命,删除交换区启动不了

#12

帖子 黄美姬 » 2010-01-29 16:57

割下放到胸前, :em04 现在要把200单独分给boot,我用Gparted分区工具,不知重启动后,原boot下的文件会不会自动转移到新分区boot下,会自动挂载吗,还是要手动,手动的话,只知道 UUID=0b0bf32d-d47c-4a8c-b363-3ade1b061559,后面还要跟什么(是 ext4 errors=remount-ro 0 1吗)?悲剧可能又要发生。

代码: 全选

# /etc/fstab: static file system information.
#
#  -- This file has been automaticly generated by ntfs-config -- 
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>

proc /proc proc defaults 0 0
# Entry for /dev/sda10 :
UUID=1e5711ae-961f-48e4-9b7f-5220b86061c9 / ext4 errors=remount-ro 0 1
# Entry for /dev/sda11 :
UUID=fac50d2f-8449-41a0-80dd-5d547ef6a5f7 none swap sw 0 0
我们是命运的妓女,它把我们都嫖了

N卡驱动:http://www.nvidia.cn/Download/index.aspx?lang=cn
极品飞车:http://www.geforce.cn/optimize/optimal- ... ts-450-ops
孤岛危机优化设置:http://www.geforce.cn/optimize/optimal- ... tx-450-ops
:cp /etc/skel/.bashrc ~/
PS1="\[\e]2;\u@\H \w\a\e[32;1m\]\T$\[\e[0m\] "
http://cdimage.ubuntu.com/
http://releases.ubuntu.com/
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 救命,删除交换区启动不了

#13

帖子 smallapple » 2010-01-29 17:47

代码: 全选

UUID=0b0bf32d-d47c-4a8c-b363-3ade1b061559,后面还要跟什么(是 ext4 errors=remount-ro 0 1吗)
后面用 ext4 defaults 0 1 就可以了。
文件要手动转移。转称完把分区挂在 /boot 后,再重新 grub-install 和 update-grub。
头像
黄美姬
帖子: 8428
注册时间: 2009-10-08 11:15
来自: 大城市铁岭

Re: 救命,删除交换区启动不了

#14

帖子 黄美姬 » 2010-01-29 18:47

要悲剧了,我改如下:

代码: 全选

proc /proc proc defaults 0 0
# Entry for /dev/sda12 :
UUID=0b0bf32d-d47c-4a8c-b363-3ade1b061559 /boot ext4 defaults 0 1
# Entry for /dev/sda10 :
UUID=1e5711ae-961f-48e4-9b7f-5220b86061c9 / ext4 errors=remount-ro 0 1
# Entry for /dev/sda11 :
UUID=fac50d2f-8449-41a0-80dd-5d547ef6a5f7 none swap sw 0 0
重启动后,boot是lost+found,原来文件都不见了,
现在按viewtopic.php?f=139&t=240837用美化版GRUB,找不到启动文件了,
最后一步,使用update-burg自动生成配置文件。也生不了
Screenshot-37.png
我们是命运的妓女,它把我们都嫖了

N卡驱动:http://www.nvidia.cn/Download/index.aspx?lang=cn
极品飞车:http://www.geforce.cn/optimize/optimal- ... ts-450-ops
孤岛危机优化设置:http://www.geforce.cn/optimize/optimal- ... tx-450-ops
:cp /etc/skel/.bashrc ~/
PS1="\[\e]2;\u@\H \w\a\e[32;1m\]\T$\[\e[0m\] "
http://cdimage.ubuntu.com/
http://releases.ubuntu.com/
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 冰天雪地裸体跪求,删除交换区启动不了

#15

帖子 smallapple » 2010-01-29 20:08

原来 /boot 下的文件有先拷到 新建的那个分区下吗? :em20
回复