virtualbox ubuntu分辨率相关

来源:互联网 发布:淘宝快递没有收到 编辑:程序博客网 时间:2024/05/18 21:48

出错场景:

如何修改VirtualBox下的Ubuntu的分辨率(更新)

  问题:我用的是VirtualBox 3.28版本,安装Ubuntu10,打开后分辨率为800x600,在工具-->显示器选项中虽然可以调节,但最大只有800x600,而没有我需要的1440x968.

  解决方案:

  这个问题某种层度上说是virtualbox造成的,因此不是单纯修改Ubuntu下的配置可以解决的。具体解决方法如下:

  1、打开终端,输入:

  ==================================
 

  cd /etc/X11
  sudo gedit xorg.conf
 

  ==================================
  2、这时打开了xorg.conf,在我的系统上,这一文件为空,所以我直接在上添加了:

=========================================
Section "Device"
    Identifier    "Configured Video Device"
EndSection

Section "Monitor"
    Identifier    "Configured Monitor"

    Driver "vboxvideo" 
EndSection

Section "Screen"
    Identifier    "Default Screen"
    Monitor        "Configured Monitor"
    Device        "Configured Video Device"
    SubSection "Display"
        Modes "1440x960" "1024x768"     

    EndSubSection
EndSection
======================================
  注意,蓝色表示的几句话很重要。是特别的。

 

  3、将virtualbox的系统增强功能光盘加载到系统上,双击打开,目录下有autorun.sh文件,双击运行,运行完后重启。重启后通过分辨率配置功能就可以得到1440x960的分辨率了。

(2011.9.18最新更新)

  这两天再次碰到这个问题,用了之前用的方法,不知道为什么,可能是版本的原因,上面的方法用了之后导致了无法启动,所以又找了其他的方法,更新如下:

   首先,加载virtualbox的系统增强功能。

   然后用cd命令进入光盘的目录下面,执行sudo sh VBoxLinuxAdditions.run。

   最后,重启,就看到分辨率变大了。

-----------------------------------------------------------------

改完之后,果然进不了系统了,找到帖子


编写xorg.conf,简单三行解决ubuntu分辩率不可调的问题

六、如果你的xorg.conf编写不正确,导致进不了桌面,请在开机的时候选择recovery mode进入,以root身份登陆文本界面,输入:

rm /etc/X11/xorg.conf

这个命令会删除掉xorg.conf文件。



于是开机时猛按shift,进入recovery mode,


进入ubuntu recovery mode

选择root opt

进去后

mount -o remount, rw /


但是,提示 remount error,“line 2 ..........  /etc/fstab”


再找到下面的帖子,执行了

mount /dev/sda1 / -o rw,remount”,

再 "rm /etc/X11/xorg.conf",     reboot,     OK


后来

/opt/VBoxGuestAdditions/ 看到一个uninstall.sh , 执行:#sh ./uninstall.sh 开始卸载,完成。

virtualbox->设备->安装增强功能,cd /media/VB.......     ,     ./VB...run  ,重装了VBoxGuestAdditions后,可以多分辨率、全屏显示了。

(VBox设置里的监视器数量,是打开多少个窗口的意思,设置为8时,启动系统就会出来8个窗口)

----------------------------------------------------------------------------------------------



今天用着用着,Ubuntu 9.10系统突然提示无法写入文件。


一开始我以为是权限问题,想着可能是自己不小心复制粘贴了什么命令把权限改错了。于是进家目录,依旧无法touch,查看权限,明明是可写。sudo也无法写入。

运行mount,发现 / 被挂载为只读了。于是试着重启。

重启之后发现无法进入图形界面,提示DMA错误啥的,只能打开诊断SHELL。

再次运行mount,发现 / 依然被挂载为只读。修改/etc/fstab,提示只读文件系统,:w!也失败。

运行:

mount /dev/sda1 / -o rw,remount

终于可以写了,修改了/etc/fstab,把挂载 / 的行里的 -error=remount-ro 修改为rw,重启。

重启后,图形界面依然无法启动,文件系统依然只读。

这时候,脑子开了个小差,输入了exit,然后出现了一堆错误提示。其中有一个fsck的错误。我想着再次执行一次fsck吧,看看错误能不能重演。于是:

fsck /

很快提示了很多个inode错误。选择y修复了。最后提示重启。于是:

reboot

系统成功起来。然后我又把/etc/fstab的内容改回原来的样子,一切回归正常。

然后,发现原来也有人出现过同样的错误,不过是01年的老帖了。。。Orz


Hi,
I'm pretty new at linux-stuff, but I have to install Debian for a school-project. Problem is, after installing, configuring some stuff like xwindows, sendmail, /etc/fstab, hosts.allow\deny, /etc/services.. I get a serious error. For some reason, the comp boots up and mounts root (/dev/hda1) as a read-only filesystem.
This means I can't do anything.
I have tried booting in single-user mode, booting from rescue and boot-disks. It always boots in this annoying read-only-mode.
I changed the line in /etc/fstab /dev/hda1 - it had option error=remount-ro.. so I changed that to remount-rw.. it still boots in read-only mode..
Anyone got any clues?
Please. Thanx for any suggestions.
Dar

0 0
原创粉丝点击