有没有人希望把正常安装的 ubuntu 转换成 wubi 安装的呢??

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

#2

帖子 syrano » 2008-07-17 18:55

有个词叫naocan。
E=m c^2
头像
ptptptptptpt
帖子: 3711
注册时间: 2006-09-19 18:16

#3

帖子 ptptptptptpt » 2008-07-17 20:29

这个也是有用滴,爱因斯坦不懂了吧 :lol:
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

#4

帖子 billbear » 2008-07-17 20:52

为什么捏,
pt 又有啥怪主意
头像
ptptptptptpt
帖子: 3711
注册时间: 2006-09-19 18:16

#5

帖子 ptptptptptpt » 2008-07-17 21:03

嘿嘿,其实是前几天试了一下,发现转换起来很容易,想写个帖子炫耀下,又懒得写了,先调查下有没有人需要

没人需要的技术还不是猴子自慰 :lol:

wubi安装方式有它的优点,之前写过个帖子, viewtopic.php?t=113953&highlight=

好处是:

无需专门为 ubuntu 分区;采用 GRUB4DOS 而非 GNU GRUB 作为引导器,不写硬盘 mbr,对现有系统无影响,出了问题在 windows 下就可修复。

通过复制*.disk,即可轻松实现系统克隆;将映像文件存入移动硬盘,稍加配置,就变成了可移动的 ubuntu 系统。这些都可以在windows下操作。
头像
20sanguo
帖子: 794
注册时间: 2008-05-10 9:53

#6

帖子 20sanguo » 2008-07-17 21:11

为了OpenSolaris,我也wubi->真->wubi了一回,还是用的wubi官方的那个脚本改了下。
在这里直接说估计需要这样的不多,因为不屑啊。但如果你用制作u盘、移动版之类的标题,可能响应的就一大堆了。
标题很重要 :o
上次由 20sanguo 在 2008-07-17 21:11,总共编辑 1 次。
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

#7

帖子 billbear » 2008-07-17 21:11

简单说一下吧,我想听。
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#8

帖子 skyx » 2008-07-17 21:16

偏门
no security measure is worth anything if an attacker has physical access to the machine
头像
ptptptptptpt
帖子: 3711
注册时间: 2006-09-19 18:16

#9

帖子 ptptptptptpt » 2008-07-17 21:37

假设只有一个 / 分区和swap区,假设 / 分区是sda7,在另一系统中运行

dd if=/dev/sda7 of=root.disk ,就能把分区做成一个映象文件(用别的文件名也可),与wubi生成的 root.disk 是相似的。

wubi 安装的,menu.lst 并无大异,只是内核参数多了一项 loop=/.../root.disk


官方 initrd 中内置了对 loop 根文件系统的支持
头像
20sanguo
帖子: 794
注册时间: 2008-05-10 9:53

#10

帖子 20sanguo » 2008-07-17 21:45

如果多分区合成一个disk dd能直接搞吗?如果能的话,我用脚本就傻了。
头像
ptptptptptpt
帖子: 3711
注册时间: 2006-09-19 18:16

#11

帖子 ptptptptptpt » 2008-07-17 21:52

20sanguo 写了:如果多分区合成一个disk dd能直接搞吗?如果能的话,我用脚本就傻了。
不行。不过可以dd成几个 文件,在fatab里加载就行。

有几个地方需要改: 建一个 /host ,存放 root.disk 的分区会自动转挂到这里;把 /boot 拷到存放 root.disk 的分区,挂载到 /boot —— fatab里加一行 ,这是模仿 wubi 安装
头像
luojie-dune
帖子: 22033
注册时间: 2007-07-30 18:28
系统: Linux
来自: 空气中

#12

帖子 luojie-dune » 2008-07-17 22:25

构思很好,支持~~~
『这个世界都是我的 ,我爱你们』

ENTP ⥂ INTP ⥄ INFP ⇦ INTJ

在此发布的文章使用 Creative Commons Attribution-ShareAlike 4.0 协议
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

#13

帖子 billbear » 2008-07-17 23:13

原来 无比的虚拟磁盘是这么个东西
明白了
头像
ptptptptptpt
帖子: 3711
注册时间: 2006-09-19 18:16

#14

帖子 ptptptptptpt » 2008-07-18 0:03

其实一个普通文件也可以做成虚拟磁盘,只要不太小
pt@ubuntu:~$ sudo mkfs.reiserfs /home/pt/BootCD_070911.ISO
mkfs.reiserfs 3.6.19 (2003 www.namesys.com)

A pair of credits:
Continuing core development of ReiserFS is mostly paid for by Hans Reiser from
money made selling licenses in addition to the GPL to companies who don't want
it known that they use ReiserFS as a foundation for their proprietary product.
And my lawyer asked 'People pay you money for this?'. Yup. Life is good. If you
buy ReiserFS, you can focus on your value add rather than reinventing an entire
FS.

Hans Reiser was the project initiator, source of all funding for the first 5.5
years. He is the architect and official maintainer.


/home/pt/BootCD_070911.ISO is not a block special device
Use -f to force over
pt@ubuntu:~$ sudo mkfs.reiserfs /home/pt/BootCD_070911.ISO -f
mkfs.reiserfs 3.6.19 (2003 www.namesys.com)

A pair of credits:
Joshua Macdonald wrote the first draft of the transaction manager. Yuri Rupasov
did testing and benchmarking, plus he invented the r5 hash (also used by the
dcache code). Yura Rupasov, Anatoly Pinchuk, Igor Krasheninnikov, Grigory
Zaigralin, Mikhail Gilula, Igor Zagorovsky, Roman Pozlevich, Konstantin
Shvachko, and Joshua MacDonald are former contributors to the project.

Alexander Zarochentcev (zam) wrote the high low priority locking code, online
resizer for V3 and V4, online repacker for V4, block allocation code, and major
parts of the flush code, and maintains the transaction manager code. We give
him the stuff that we know will be hard to debug, or needs to be very cleanly
structured.


/home/pt/BootCD_070911.ISO is not a block special device
Continue (y/n):y
Guessing about desired format.. Kernel 2.6.24-19-generic is running.
Format 3.6 with standard journal
Count of blocks on the device: 27905
Number of blocks consumed by mkreiserfs formatting process: 8212
Blocksize: 4096
Hash function used to sort names: "r5"
Journal Size 8193 blocks (first block 18)
Journal Max transaction length 1024
inode generation number: 0
UUID: 40401431-aaf9-477f-95cc-3416a58e993b
Initializing journal - 0%....20%....40%....60%....80%....100%
Syncing..ok

Tell your friends to use a kernel based on 2.4.18 or later, and especially not a
kernel based on 2.4.9, when you use reiserFS. Have fun.

ReiserFS is successfully created on /home/pt/BootCD_070911.ISO.
pt@ubuntu:~$ sudo mount /home/pt/BootCD_070911.ISO /mnt/loop/ -o loop
pt@ubuntu:~$
头像
ybbuge
帖子: 27
注册时间: 2008-05-25 9:53

Re: 有没有人希望把正常安装的 ubuntu 转换成 wubi 安装的呢??

#15

帖子 ybbuge » 2008-07-18 17:13

ptptptptptpt 写了:如题。
在安装的时候,按esc就行
回复