【2008.09.30更新2楼】把 ubuntu linux 装入移动硬盘,并在不同电脑上运行

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
ptptptptptpt
帖子: 3711
注册时间: 2006-09-19 18:16

#526

帖子 ptptptptptpt » 2008-05-13 20:49

如果是把移动硬盘芯挂到台式机,当成内置硬盘来安装系统,grub就没问题了
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

#527

帖子 billbear » 2008-05-14 1:51

ptptptptptpt 写了:
很多人是用 live cd 启动,直接把系统安装到移动硬盘,在有内置硬盘存在的情况下,grub 会把移动硬盘认为 hd1 ,menu.lst 里会写成 root (hd1,x) ,而从移动硬盘启动时应是 hd0 ,从而无法启动。甚至 grub 会把启动代码写入 内置硬盘 mbr ,而 stage2 存于移动硬盘,这样,拔掉移动硬盘后,电脑将不能启动内置硬盘中的系统,论坛里有很多这样的求助帖,所以,保险起见,用了 grub4dos
那倒也是,安装之前要确认一下grub将要被安装到的位置,安装之后要改一下menu.lst
不过我一直都是用vmware装的,不可能碰到这些问题,所以没细想
头像
ptptptptptpt
帖子: 3711
注册时间: 2006-09-19 18:16

#528

帖子 ptptptptptpt » 2008-05-14 8:13

billbear 写了:刚刚看了楼主的更新
有一点我想补充一下。在8.04里添加 S03xconfig.sh 这一步不是必须的。
不知道楼主是否注意到 What's new in 8.04 里头提到, The latest version of the X window system, Xorg 7.3, is provided, with an emphasis on better autoconfiguration with a minimal configuration file. 这是8.04的一个大变化。

。。。

还有discover1 和 xresprobe,我从来就没有装过,也用得好好的。
看了一下,目前我认为,S03xconfig.sh 和 xresprobe 还是需要的

S03xconfig.sh 这个脚本只有一句最关键: dpkg-reconfigure -fnoninteractive --no-reload xserver-xorg ,实际上这句来自 ubuntu live cd 的 initrd ,是 ubuntu 官方提供的 ,而 8.04 的 live cd 中依旧有这一句,我想应该有它的道理 —— 尽管 8.04 的 x 更自动了 ,但恐怕还不能适应所有的硬件,所以依旧得用 dpkg-reconfigure -fnoninteractive --no-reload xserver-xorg 来配置 X

而 xresprobe 在 live cd 中也安装了,看说明它是用来辅助调节显示器分辨率的。根据 7.04 时的经验,不装它,确实探测不到某些显示器的最佳分辨率,而不装 discover1 ,对一些显卡识别不好

不过 8.04 中似乎去掉了 discover1 ,可能是 xorg 对显卡探测能力提高了,不再需要它了
dandyoya
帖子: 1
注册时间: 2008-05-14 10:27

#529

帖子 dandyoya » 2008-05-14 11:18

学习了
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

#530

帖子 billbear » 2008-05-14 11:31

是的,xresprobe好像live cd是有的。
你大概是对的,你测试过的硬件一定比我多。反正加上这些没有坏处。
chenqican
帖子: 1
注册时间: 2008-05-14 19:51

#531

帖子 chenqican » 2008-05-14 20:01

下载本楼附件,解压。在 Windows xp 下,运行附件中 grubinst-1.1-bin-w32-2008-01-01 目录下的 grubinst_gui.exe ,及将附件中 S03xconfig.sh,附件在哪?
头像
ptptptptptpt
帖子: 3711
注册时间: 2006-09-19 18:16

#532

帖子 ptptptptptpt » 2008-05-14 20:09

chenqican 写了:下载本楼附件,解压。在 Windows xp 下,运行附件中 grubinst-1.1-bin-w32-2008-01-01 目录下的 grubinst_gui.exe ,及将附件中 S03xconfig.sh,附件在哪?
就在2楼啊
shengweiaini
帖子: 133
注册时间: 2008-05-10 23:28
来自: nuaa

#533

帖子 shengweiaini » 2008-05-15 15:13

高人阿,支持了

虽然看不太明白 :lol:
头像
seufy
帖子: 82
注册时间: 2008-05-12 13:39

#534

帖子 seufy » 2008-05-16 13:38

哈哈,自从804可以WUBI安装之后我也想到了,安装选项中可以选择USB移动设备,但我也没试过.看了下好像我的本本支持从USB启动.
freedom_2008
帖子: 49
注册时间: 2008-05-16 22:10

#535

帖子 freedom_2008 » 2008-05-16 22:41

楼主好人

有空拿移动硬盘试试

公司同事装了8.04,貌似软件开发时好些配置和7.10不太一样,所以还没打算换,先用移动硬盘体验体验
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

#536

帖子 billbear » 2008-05-17 12:56

ptptptptptpt:
我现在认为8.04中dpkg-reconfigure -fnoninteractive --no-reload xserver-xorg 的作用可能仅限于配键盘和鼠标。我发现8.04的xorg.conf 变了,显示方面根本没有什么东西可配。

代码: 全选

# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc105"
	Option		"XkbLayout"	"cn"
	Option		"XkbOptions"	"lv3:ralt_switch"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"CorePointer"
EndSection

Section "InputDevice"
	Identifier	"Synaptics Touchpad"
	Driver		"synaptics"
	Option		"SendCoreEvents"	"true"
	Option		"Device"		"/dev/psaux"
	Option		"Protocol"		"auto-dev"
	Option		"HorizEdgeScroll"	"0"
EndSection

Section "Device"
	Identifier	"Configured Video Device"
EndSection

Section "Monitor"
	Identifier	"Configured Monitor"
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Monitor		"Configured Monitor"
	Device		"Configured Video Device"
EndSection

Section "ServerLayout"
	Identifier	"Default Layout"
	Screen		"Default Screen"
	InputDevice	"Synaptics Touchpad"
EndSection
配鼠标对我还是需要的,我时常在vmware与实体机中使用这同一个ubuntu安装,8.04自带了vmware鼠标的驱动,很好用,基本没什么必要装vmware-tools了。配上这个vm鼠标驱动,使用实体机时触摸板右键和滚动不正常;配上实体机驱动,vm里鼠标不好用。所以 S03xconfig.sh 还是有作用的,但是已经弱化。
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

#537

帖子 billbear » 2008-05-17 13:01

我还是不清楚新的xorg的工作机制。有人研究过吗?
头像
ptptptptptpt
帖子: 3711
注册时间: 2006-09-19 18:16

#538

帖子 ptptptptptpt » 2008-05-17 16:51

8.04的 xorg.conf 还是可以添加更多内容的。比如装了 nv 的闭源驱动之后,就多了一句 driver "nvidia"


似乎从7.10开始,xorg 有了一个启动x失败时的挽救程序,最近一次我在8.04的 xorg.conf 手动加了一句 driver nv (其实这样格式是错的,应该是 driver “nv” ),x 努力启动了一会,突然出现一个 “正在使用低分辨率”什么的,有一些配置选项,可以手动选择显卡驱动、分辨率等。配置了之后, xorg.conf 会有更多内容。7.10时也见过这个

至于 dpkg-reconfigure -fnoninteractive --no-reload xserver-xorg ,我只是拿来使用,具体原理不清楚。它的功能肯定是要弱化的,xorg 应该会越来越智能

xorg 似乎更新挺快的。

我也不清楚xorg的工作机制,我比较懒,在 xorg 的研究方面,肯定有人比我更精通,我不必再去搞很清楚,直接拿来用就行了,就像 dpkg-reconfigure -fnoninteractive --no-reload xserver-xorg :)
头像
findfunaax
帖子: 49
注册时间: 2007-10-29 11:02
联系:

#539

帖子 findfunaax » 2008-05-24 15:59

我的系统里本来有ubuntu(不是wubi的),现在把原来的系统拷到了移动硬盘里,然后安装grub4fordos,配置了menu.lst文件,然后重启,设置了USB-FDD启动,可是一直看不到启动选项的画面。。。
请问大概什么原因?
头像
ptptptptptpt
帖子: 3711
注册时间: 2006-09-19 18:16

#540

帖子 ptptptptptpt » 2008-05-24 21:07

大概是 usb-fdd 的问题,我想应该设成 usb-hdd 模式
回复