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

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

#331

帖子 bian222 » 2007-08-01 11:34

booting 'Ubuntu, kernel.2.6.17-10-generic'

find --set-root /boot/umlinuz-2.6.17-10-generic

Warning: MBR cyclinders(4864) is not equal to the BIOS one(768)

Error 17: File not found

Press any key to continue...


按任意键以后会再回到grub的界面
同样的问题.我的电脑是dell dimension 9150
dadlang
帖子: 5
注册时间: 2007-08-03 9:35

#332

帖子 dadlang » 2007-08-03 9:43

ding
lemonice2006
帖子: 16
注册时间: 2007-08-03 20:29

很有意思的做法

#333

帖子 lemonice2006 » 2007-08-04 17:19

非常欣赏楼主的ideal
不过 俺是新手 能直接这么做吗?
还是先熟悉在一般系统上的运用呢?
xufund
帖子: 188
注册时间: 2007-05-06 2:11

#334

帖子 xufund » 2007-08-04 22:05

ptptptptptpt 写了:做一个 portable-ubuntu

本文内容适用于 ubuntu 7.04 ,部分内容适用于其它 LINUX 。

1.将 ubuntu 装进移动硬盘

方法很多,可自行选择。提供几个参考:
方法1:安装 ubuntu 到内置硬盘,然后把内置硬盘拆下来做成移动硬盘。这样可以略过后面第2、3步,直接进行第4步。但若做了2、3步,可获得更好的兼容性。
方法2:直接安装到移动硬盘。这种方法有可能遇到 GRUB 问题,不熟悉的朋友最好先学习下 GRUB 教程。
方法3:将已经安装配置好的系统拷贝到移动硬盘。最好另外启动一个 linux(如各种 LIVE CD)来拷贝目标系统,这样可以避免很多麻烦。命令示例:sudo cp -a /mnt/hda7/* /mnt/sda6/

2.将 GRUB4DOS 引导代码写入移动硬盘MBR

经验表明,GRUB4DOS 比 GNU GRUB 0.97 兼容性要好些,所以选用它作为引导器。

方法1:Windows 2k/xp/2003 下,运行附件中 grubutil-1.1-bin-w32-9 目录下的 grubinst_gui.exe ,在“磁盘”处选中移动硬盘,在“选项”区选中“不保存原来的mbr”、“不引导原来的mbr”、“启动时不搜索软盘”,点击“安装”即可。

方法2:LINUX 下,假设移动硬盘为 /dev/sda(注意:某些情况下,比如主机内接有 sata 硬盘,移动硬盘就不一定是 sda 了),进入 bootlace.com 所在目录,运行命令 sudo ./bootlace.com /dev/sda 即可。

3.配置 GRUB4DOS

在移动硬盘上找一个或新建一个 fat16/fat32/ext2/ext3 分区,将附件中的 grldr 拷至其根目录, 并在同一目录下建立 menu.lst 文件,内容如下:

代码: 全选

timeout 6 
default 0 

title		Ubuntu, kernel 2.6.17-10-generic
find  --set-root  /boot/vmlinuz-2.6.17-10-generic
kernel		/boot/vmlinuz-2.6.17-10-generic root=UUID=xxxxxxxxxxxxxxxxxxxx  ro splash
initrd		/boot/initrd.img-2.6.17-10-generic
boot 
其中,“xxxxxxxxxxxxxxxxxxxx”需换成根分区 UUID 。查看各分区UUID的命令:ls -l /dev/disk/by-uuid

4.硬件自动检测

将附件中 S03xconfig.sh 复制到 /etc/rc2.d/ ,并修改其权限使“允许作为可执行文件执行” —— 这个用来配置 X 。至此,移动硬盘系统已经可以在不同机子上运行了。

再安装两个软件以增强硬件检测能力:启动移动硬盘系统,设置好源,连上网络,运行命令

代码: 全选

apt-get update
apt-get install discover1 xresprobe
搞定。
楼主:
我是菜鸟.按照你的指导,我直接把7.04安装到了移动硬盘上,但重启时系统找不到GRUB(已设为USB启动).从安装光盘启动RESCUE模式,进入UBUNTU后,按照你下面的步骤做完仍然不能从USB启动,系统仍提示找不到GRUB.我尝试在另外一台安装好的7.04系统中执行步骤2,3,4,却始终告诉我无权限(已使用NAULINUS命令去修改,但无法修改).请楼主详细说说在用方法2安装完系统后,如何才能重启系统进行下面的步骤?因为在默认安装时GRUB的安装位置是没法选的.谢谢!
together4233
帖子: 27
注册时间: 2007-05-08 22:11

#335

帖子 together4233 » 2007-08-05 20:22

易用性~易用性~精简得太多就失去意义了~winPE已经可以装在U盘使用了而且软件也很多,若这个精简得没有特色了,那就很没有意义了,
anwen
帖子: 1
注册时间: 2007-08-07 17:02

#336

帖子 anwen » 2007-08-07 17:04

ding
头像
blackfail
帖子: 45
注册时间: 2007-07-25 22:05
来自: Mark
联系:

#337

帖子 blackfail » 2007-08-07 17:36

看来这里 linux高手很多阿 呵呵 我没用过 别的 linux光搞 ubuntu了 呵呵
yaoyepeng
帖子: 6
注册时间: 2007-08-10 1:35

#338

帖子 yaoyepeng » 2007-08-12 23:51

最后卡到这里了,启动不了。

Warning: MBR cyclinders(4864) is not equal to the BIOS one(768)
ximxom
帖子: 2
注册时间: 2007-08-11 21:43

像我一样的菜鸟们可以去一下以下网址!

#339

帖子 ximxom » 2007-08-13 12:43

http://www.pendrivelinux.com
在那里有很好的将ubuntu或其它linux整到移动硬盘的方法,简单易行,可以一解屡试屡败的惆怅之情!建议试一下!
以下是冰山一角:


USB Ubuntu 6.10 Edgy install This tutorial enables a user to install, boot and run Ubuntu Edgy portably from a USB flash thumb drive using Windows and the Live Linux CD. By utilizing multiple partitions, the user can save all changes and settings back to the flash thumb drive. Note that the second partition must be labeled “casper-rw” to use the “persistent” feature and save changes back to the stick.

Ubuntu® was produced by Canonical ltd and is based on Debian Linux. It is both user friendly and stable. Ubuntu’s famous slogan is (it should “Just Work”, TM)

Note: This tutorial is based on Ubuntu 6.10. In Ubuntu 7.04, the Persistent feature is currently broken. If your planning to save your changes use 6.10 as suggested here.


USB Ubuntu 6.10 Edgy Linux Screenshot:

Basic essentials:

1GB or larger USB flash drive
Ubuntu 6.10 ISO
CD Burner/Recorder
7-zip (or another ISO extracting tool)
Partition and make the USB flash drive bootable:

Download the Ubuntu 6.10 ISO and burn it to CD
Restart your computer (booting from the Ubuntu Live CD)
Insert a 1GB or larger USB flash drive
Open a terminal window and type sudo su
Now type fdisk -l to list available drives/partitions (note which device is your flash drive Example: /dev/sdb). Throughout this tutorial, replace all instances of x with your flash drive letter. For example, if your flash drive is sdb, replace x with b.
type umount /dev/sdx1
type fdisk /dev/sdx
type p to show the existing partition and d to delete it
type p again to show any remaining partitions (if partitions exist, repeat step 3)
type n to make a new partition
type p for primary partition
type 1 to make this the first partition
hit enter to use the default 1st cylinder
type +750M to set the partition size
type a to make this partition active
type 1 to select partition 1
type t to change the partition filesystem
type 6 to select the fat16 file system
type n to make another new partition
type p for primary partition
type 2 to make this the second partition
hit enter to use the default cylinder
hit enter again to use the default last cylinder
type w to write the new partition table
Type umount /dev/sdx1 to unmount the partition
Type mkfs.vfat -F 16 -n usb /dev/sdx1 to format the first partition
“Alternately you can try mkfs.vfat -F 32 -n usb /dev/sdx1 (doesn’t always work)”
Type umount /dev/sdx2 to ensure the partition is unmounted
Type mkfs.ext2 -b 4096 -L casper-rw /dev/sdx2 to format the second partition
Remove and Re-insert your flash drive
Back at the terminal, type sudo apt-get install syslinux mtools

Type syslinux -sf /dev/sdx1
Restart your computer, remove the CD and boot back into Windows
Using Windows to prepare and move the files to the USB Stick:

Create a folder named USB on your computer
Download UBconvert.zip and extract the files to the USB folder
Move the Ubuntu 6.10 ISO downloaded earlier to the USB folder
Click fixu.bat from the USB folder (follow on screen instructions)
Move all files from the ubuntu directory to your memory stick
Reboot your computer and set your system BIOS to boot from USB-HDD or USB-ZIP. Also set the “Hard Disk Boot Priority” if necessary.
You should now be booting into Ubuntu Linux from your USB drive!
相应的下载在这个网址都有,不用你操心!
头像
i138
帖子: 46
注册时间: 2007-01-25 12:13

Re: [求助] 老大!遇到问题了!

#340

帖子 i138 » 2007-08-13 22:26

stanleyk 写了:麻烦大家帮忙看一下这个问题啊! 多谢了!那个MBR cyclinders可以自己设吗?

我的移动硬盘的接口和这台笔记本硬盘的接口不一样。。。。。只能通过USB线连接。。。
找个台式机,拔掉里面的硬盘,接上你的USB硬盘,然后安装你的ubuntu 安装完毕,启动后别忘记安装第一楼的两个软件.

按照我之前写的办法,100%都能成功..
chinatianer
帖子: 2
注册时间: 2007-07-20 9:26

#341

帖子 chinatianer » 2007-08-14 15:59

很好啊 ,支持
francis.tm
帖子: 134
注册时间: 2006-12-05 0:23
系统: Windows® 7
联系:

#342

帖子 francis.tm » 2007-08-15 11:36

blackfail 写了:看来这里 linux高手很多阿 呵呵 我没用过 别的 linux光搞 ubuntu了 呵呵
http://www.w3rep.cn/blog/index.php?entr ... 730-232445

That not a problem...
langf
帖子: 1
注册时间: 2007-08-15 12:35

#343

帖子 langf » 2007-08-15 12:36

hao ,thks!
头像
ptptptptptpt
帖子: 3711
注册时间: 2006-09-19 18:16

#344

帖子 ptptptptptpt » 2007-08-25 17:21

十分抱歉,近来生病,无力上网回帖,请各位多多包涵,请高手多多关照,谢谢啦
wanyujie613
帖子: 1
注册时间: 2007-08-14 21:48

#345

帖子 wanyujie613 » 2007-08-25 21:26

bian222 写了:
booting 'Ubuntu, kernel.2.6.17-10-generic'

find --set-root /boot/umlinuz-2.6.17-10-generic

Warning: MBR cyclinders(4864) is not equal to the BIOS one(768)

Error 17: File not found

Press any key to continue...


按任意键以后会再回到grub的界面
同样的问题.我的电脑是dell dimension 9150
也是 这个问题 麻烦高手解答
回复