不安装ubuntu ,但和安装后效果一样的方案(本地/移动硬盘/光盘启动均可)

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

不安装ubuntu ,但和安装后效果一样的方案(本地/移动硬盘/光盘启动均可)

#1

帖子 skyx » 2008-02-04 9:28

为了达到最佳效果,推荐1280*xxx或更高分辨率,使用firefox或opera 等非IE内核浏览器在非windows平台浏览本帖







思路来源于长篇巨著ubuntu bible中介绍的ubuntu desktop cd 的一个特性 :
Using Desktop CD Persistence
Live CDs like the Ubuntu Desktop CD provide an easy way to temporarily turn any compatible computer
system into an Ubuntu Linux system. However, the fact that most live CDs don’t provide any sort of persistent
storage for configuration data, custom applications, and so on (other than manually copying files to
other local or networked storage) limits the practical usability of Live CDs to simple demonstrations, general
one-time experimentation, rescuing data from crashed systems, and for general system repair and
recovery efforts. Until now, that is.
The Ubuntu 6.06 Desktop CD provides a built-in mechanism for recognizing an external storage device
with a special name at boot-time and using the contents of that device to restore desktop settings, application
configuration files, and even installed applications. The amount of custom configuration information
and installed applications that you can save and restore is only limited by the size of the external storage
device that you use.



The requirements for taking advantage of this capability are the following:

The external storage device must be one that can be found by the Desktop CD kernel when it boots.


The external storage device must contain a Linux filesystem that is supported by the Desktop CD
kernel. VFAT, NTFS, and HFS+ filesystems will not work—the filesystem must be an actual
Linux filesystem. Ext2 or ext3 filesystems are recommended for portability.


The filesystem on the external storage device must have the name casper-rw.

You must add the persistent keyword to the kernel command line when you boot from the
Desktop CD.

The most common devices used for persistent storage with the Desktop CD are USB devices. USB sticks
(a.k.a. pen drives) are extremely portable, but provide a limited amount of storage. An external USB hard
drive is a better alternative if you need to install applications, related files, and other data that would exceed
the amount of storage available on a USB stick.
If you are using an Ubuntu Desktop
适合环境:wubi替代方案之一, 临时使用ubuntu,体验ubuntu,展示ubuntu ,在不方便安装linux的电脑上使用linux , and so on




请按骨头大大的方法对你所用电脑进行仔细的硬件兼容性测试,兼容性测试通过后再进行下面的步骤,否则不要往下看了,另外,如果你对硬盘进行分区时采用了第三方分区工具,建议试下本方案,但不建议安装


viewtopic.php?t=97951




实现环境:

ubuntu 6.06 或以上版本可以通过光盘或移动硬盘实现
ubuntu 7.04 或以上版本可以通过光盘,本地硬盘或移动硬盘实现
windows安装在本地硬盘,c盘分区为fat32(ntfs也可),ubuntu 7.10(或以上版本)desktop cd iso文件,推荐内存512M 或以上,其它情况,比如全部放在移动硬盘中,要先学习下grub4dos的mbr引导指南,也可参见ptptp大大的专著


简单的usb方案:
也可以在本地硬盘上做好后,把本地硬盘的c盘ghost到移动硬盘的第一个主分区,没用的东东,除了ntloader以外,比如windows目录,可以通通删除。 ghost完后,要在win的磁盘管理中把移动硬盘的第一个主分区设为活动的

该方法涉及M$ 和ghost的版权,但不涉及华镭usb启动linux的烂专利,如果想完全不涉及版权,请用linux的拷贝代替ghost,因为用win 的拷贝是否侵权还不清楚,同时移动硬盘的mbr处理请放弃M$的ntloader ,转用grub4dos的bootlace.com


由于用m$ win使用时间不长,我对win 不了解,还请各路win 高手批评指正。

1 下载ubuntu 7.10(或以上版本) desktop cd iso文件,将iso中的全部文件释放到c盘根目录下,释放后,如果casper目录在c盘根目录下,说明操作正确,否则重来.


2. windows下,我的电脑,属性,磁盘管理,删除一个分区,比如说最后一个分区,删除前请备份资料,如果不想删,推荐用usb的存储设备来进行

3.下载附件中的文件,把grldr 和menu.lst放到c盘根目录

4.修改c盘下的boot.ini,在最后加一句: C:\GRLDR=ubuntu

5.重启,选ubuntu启动,到桌面后进入终端

代码: 全选

sudo gparted
把刚才在win下删除的分区或usb设备中的分区分成ext3分区. 分好后记住这个分区名,比如说是sda5

6 .重启再次进入ubuntu,在终端中输入:
e2label /dev/sda5 casper-rw

红色数字不代表你的实际情况



7. 重启,注意如果刚才你处理的是usb设备,记得每次开机前都要接上。

8. 通过以上处理,不用安装ubuntu ,但和安装后的效果一样,可以安装软件,修改配制,也可以享受3d,重启后仍然会有效。

以上方法也可以做为ubuntu desktop cd硬盘安装参考


测试结果:

8楼骨头在本地硬盘上分了一个这样的分区, 使用光盘启动测试成功,重启后所有设定全部保留!

skyx使用sd卡+读卡器,把sd卡格式化为ext3分区,卷标名改为casper-rw,使用硬盘启动成功,重启后所有设定全部保留!

硬件要求: 采用live cd 光盘或硬盘启动,只要可以正常进桌面的理论上都可以,内存最好在512M 以上。


适合环境: 临时使用,体验,展示 ,在不方便安装linux的电脑上使用linux , and so on


另一种类似方案为:

viewtopic.php?t=58778
附件
这个卷标为casper-rw的分区,在使用后的情况:
这个卷标为casper-rw的分区,在使用后的情况:
grldr and menu.tar.gz
(99.05 KiB) 已下载 996 次
上次由 skyx 在 2008-04-06 10:58,总共编辑 48 次。
no security measure is worth anything if an attacker has physical access to the machine
头像
bones7456
帖子: 8495
注册时间: 2006-04-12 20:05
来自: 杭州
联系:

#2

帖子 bones7456 » 2008-02-04 9:33

...给我看虫子文啊,会晕的.

这个我还真没试过唉...难道只有6.06的有这机制?
我虚拟机里实验下看看.
关注我的blog: ε==3
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#3

帖子 skyx » 2008-02-04 9:37

bones7456 写了:...给我看虫子文啊,会晕的.

这个我还真没试过唉...难道只有6.06的有这机制?
我虚拟机里实验下看看.

把u盘或移动硬盘格式化为 ext3 卷标名为casper-rw

desktop cd 开机时加内核参数 persistent

desktop cd 进桌面后,直接安装软件或改设定,关机后安装的软件或设定也保留。


如果其它版本也有这个特性,你那测试硬件的文章就完美了。

那些不打算装机的,通过硬盘启动iso文件,这样用也不错哦。
上次由 skyx 在 2008-02-04 17:30,总共编辑 2 次。
no security measure is worth anything if an attacker has physical access to the machine
头像
JangMunho
帖子: 1347
注册时间: 2006-01-18 12:55
来自: 也许真的没有人理解

#4

帖子 JangMunho » 2008-02-04 9:45

呵呵,不过我的移动硬盘式ubuntu用得很爽呀,启动那叫一个快……
MacBook Pro 15" User
Cocoa Programmer
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#5

帖子 skyx » 2008-02-04 9:49

JangMunho 写了:呵呵,不过我的移动硬盘式ubuntu用得很爽呀,启动那叫一个快……
关键是用这个方法可以实现,不用安装,却和安装后一样用的效果。 不一定非要用cd 启动,说不定硬盘启动也是一样的哦。

这可是由ubuntu官方提供的方法实现的。


求验证。
no security measure is worth anything if an attacker has physical access to the machine
头像
PL7s
帖子: 377
注册时间: 2007-03-15 23:44

#6

帖子 PL7s » 2008-02-04 9:57

值得关注,还有下文吗?说一下结果。
For the love of PL7s
图片
图片
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#7

帖子 skyx » 2008-02-04 10:20

PL7s 写了:值得关注,还有下文吗?说一下结果。
晚上我测试一下ubuntu 7.10
no security measure is worth anything if an attacker has physical access to the machine
头像
bones7456
帖子: 8495
注册时间: 2006-04-12 20:05
来自: 杭州
联系:

#8

帖子 bones7456 » 2008-02-04 10:25

skyx 写了:
bones7456 写了:...给我看虫子文啊,会晕的.

这个我还真没试过唉...难道只有6.06的有这机制?
我虚拟机里实验下看看.

把u盘或移动硬盘格式化为 ext3 卷标名为casper-rw

desktop cd 开机时加内核参数 persistent

可以有desktop cd 直接安装软件或改设定了,重要的是关机后安装的软件或设定也保留。


如果其它版本也有这个特性,你那测试硬件的文章就完美了。

那些不打算装机的,通过硬盘启动iso文件,这样用也不错哦。
赞~验证通过~
使用ubuntu-7.10-desktop-i386.iso,本地硬盘划了个1G多的分区(/dev/sda1),然后执行 e2label /dev/sda1 casper-rw 设置卷标.然后再启动liveCD的时候,按F6键,加如图所示的内核参数.启动以后,安装点什么东西,保存点文件之类的.重启,也加上额外的内核参数,再进系统之后,安装的软件和保存的文件都还在.
附件
内核参数
内核参数
关注我的blog: ε==3
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#9

帖子 skyx » 2008-02-04 10:30

bones7456 写了:
skyx 写了:
bones7456 写了:...给我看虫子文啊,会晕的.

这个我还真没试过唉...难道只有6.06的有这机制?
我虚拟机里实验下看看.

把u盘或移动硬盘格式化为 ext3 卷标名为casper-rw

desktop cd 开机时加内核参数 persistent

可以有desktop cd 直接安装软件或改设定了,重要的是关机后安装的软件或设定也保留。


如果其它版本也有这个特性,你那测试硬件的文章就完美了。

那些不打算装机的,通过硬盘启动iso文件,这样用也不错哦。
赞~验证通过~
使用ubuntu-7.10-desktop-i386.iso,本地硬盘划了个1G多的分区(/dev/sda1),然后执行 e2label /dev/sda1 casper-rw 设置卷标.然后再启动liveCD的时候,按F6键,加如图所示的内核参数.启动以后,安装点什么东西,保存点文件之类的.重启,也加上额外的内核参数,再进系统之后,安装的软件和保存的文件都还在.
显卡驱动是不是也一样? 另,iso通过ptpt介绍的方法硬盘启动是否也有这个效果? 如果也有,那请你更新desktop cd 测试硬件的置顶内容

如果ptptp的方法也能通过,本帖申请加精。
上次由 skyx 在 2008-02-04 10:32,总共编辑 1 次。
no security measure is worth anything if an attacker has physical access to the machine
头像
bones7456
帖子: 8495
注册时间: 2006-04-12 20:05
来自: 杭州
联系:

#10

帖子 bones7456 » 2008-02-04 10:30

我虚拟机的分区情况,真奇怪,mount看不到分区挂哪儿了.应该是内核当特殊设备处理了...
附件
分区情况.
分区情况.
关注我的blog: ε==3
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#11

帖子 skyx » 2008-02-04 10:37

bones7456 写了:我虚拟机的分区情况,真奇怪,mount看不到分区挂哪儿了.应该是内核当特殊设备处理了...
内核中的特性, 我想mount看不到。mount前就处理了。
no security measure is worth anything if an attacker has physical access to the machine
头像
bones7456
帖子: 8495
注册时间: 2006-04-12 20:05
来自: 杭州
联系:

#12

帖子 bones7456 » 2008-02-04 10:38

skyx 写了: 显卡驱动是不是也一样? 另,iso通过ptpt介绍的方法硬盘启动是否也有这个效果? 如果也有,那请你更新desktop cd 测试硬件的置顶内容

如果ptptp的方法也能通过,本帖申请加精。
显卡驱动还没试过,但理论上肯定也是这样啊,不过这方法,不借助U盘或移动硬盘的话,得用liveCD启动3次,第1次分区,设卷标,第二次装东西,第三次才能用上...是不是有点复杂?不过如果有u盘的话,好像可以先在U盘上装好...不知道到其他机器上能不能用...
关注我的blog: ε==3
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#13

帖子 skyx » 2008-02-04 10:42

bones7456 写了:
skyx 写了: 显卡驱动是不是也一样? 另,iso通过ptpt介绍的方法硬盘启动是否也有这个效果? 如果也有,那请你更新desktop cd 测试硬件的置顶内容

如果ptptp的方法也能通过,本帖申请加精。
显卡驱动还没试过,但理论上肯定也是这样啊,不过这方法,不借助U盘或移动硬盘的话,得用liveCD启动3次,第1次分区,设卷标,第二次装东西,第三次才能用上...是不是有点复杂?不过如果有u盘的话,好像可以先在U盘上装好...不知道到其他机器上能不能用...
去电脑城,带上desktop cd ,带上做好的u盘啊。
no security measure is worth anything if an attacker has physical access to the machine
头像
bones7456
帖子: 8495
注册时间: 2006-04-12 20:05
来自: 杭州
联系:

#14

帖子 bones7456 » 2008-02-04 10:48

skyx 写了:
bones7456 写了:
skyx 写了: 显卡驱动是不是也一样? 另,iso通过ptpt介绍的方法硬盘启动是否也有这个效果? 如果也有,那请你更新desktop cd 测试硬件的置顶内容

如果ptptp的方法也能通过,本帖申请加精。
显卡驱动还没试过,但理论上肯定也是这样啊,不过这方法,不借助U盘或移动硬盘的话,得用liveCD启动3次,第1次分区,设卷标,第二次装东西,第三次才能用上...是不是有点复杂?不过如果有u盘的话,好像可以先在U盘上装好...不知道到其他机器上能不能用...
去电脑城,带上desktop cd ,带上做好的u盘啊。
恩,但是这样的话,得先看好要买的电脑硬件,如果是A卡,就得先在U盘上装上A卡的驱动;N卡亦然;好像有点局限性了,不如直接用U盘上的系统,装了东西都保存在U盘,临时装,临时试,这些应该可以作为进阶内容,哈哈.操作上可能都会有点变化的,适合已经入门的人群.原来那部分,照着命令打,应该基本上都会做,呵呵.
关注我的blog: ε==3
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#15

帖子 skyx » 2008-02-04 20:42

硬盘启动测试成功,方法在一楼
no security measure is worth anything if an attacker has physical access to the machine
回复