LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: kj501

在移动硬盘上安装GentooLinux

[复制链接]
发表于 2005-7-29 05:13:46 | 显示全部楼层
Assume you have the following HDD layout during Linux installation:

/dev/sda is your USB HDD
/dev/sda4 is your boot partition /boot
/dev/sda7 is your root partition /

Then, during Linux installation, your /dev/sda is recognized as (hd1) by GRUB.

Steps:

1. Become root
2. Run grub
#grub
Probing devices to guess BIOS drives. This may take a long time.

3. In grub shell, run the following commands:
>root (hd1,3)
>setup (hd1)
>quit

Here, (hd1,3) correspond to your /dev/sda4 which is your /boot, i.e. where the
kernel image and initrd located.
(hd1) is the MBR of your /dev/sda (USB HDD)

That's it.  However, you need to edit your menu.lst as well.

If you setup your BIOS to boot your USB HDD, grub will recognize your USB HDD
as the first hard disk to boot, i.e. hd0, not hd1. In this case, your have to write the menu.lst as:

title Gentoo Linux on USB HDD.....
root (hd0,3)
kernel vmlinuz-xxxxx ..... real_root=/dev/sda7 .....
initrd initrd-xxxxx
...

Clear?

Good luck!
回复 支持 反对

使用道具 举报

发表于 2005-7-29 09:19:00 | 显示全部楼层
Thank you very much, doom3d, I get it.
回复 支持 反对

使用道具 举报

发表于 2005-7-29 15:41:43 | 显示全部楼层
郁闷,我用mdv编译内核,竟然无法将usb.o加进去,考虑用getoo了,在移动硬盘上装linux真是麻烦,好费时间
回复 支持 反对

使用道具 举报

发表于 2005-7-29 16:16:48 | 显示全部楼层
我有个同事用劣质硬盘盒,结果把硬盘烧了,虽说数据都恢复了,但是还是很麻烦,而且还花了两百多个元,楼主要小心啊。
回复 支持 反对

使用道具 举报

发表于 2005-7-30 09:44:48 | 显示全部楼层
楼主能不能把你的安装过程在说详细一点?先谢谢了.
ps:买移动硬盘最好买移动之星或元谷的,芯片要cs8818g或M5642,M5621的,GL811e,GL811都不好
回复 支持 反对

使用道具 举报

发表于 2005-9-2 01:52:51 | 显示全部楼层
芯片最好选cypress 7C68300a的,速度非常快,而且异常稳定
回复 支持 反对

使用道具 举报

发表于 2006-11-11 13:59:53 | 显示全部楼层
小弟最近用HIWEED做了一个,看到这贴才知道,我的思路 老虎 兄在两年前就已经想到了!PFPF……

“……在任何支持usb硬盘启动intel架构的电脑上运行linux。也就是可以带着这个移动硬盘,可以到处跑的那种感觉。

因此,在解决了移动硬盘启动的之后,剩下的问题就是考虑在启动的时候,按照livecd的方式进行检测硬件,而不是按照单机的那种方式启动。
此外,用移动硬盘与livecd相比,好处就是容量大,而且可以记住一些软件的配置。

所以,教主在考虑硬盘安装的脚本的时候,在能够从usb硬盘启动的同时。

我认为下面的,也是至关重要的
1 使安装之后的硬盘ibox仍然能够保持livecd的硬件检测,硬件自动配置的功能
……  


http://www.linuxsir.cn/bbs/showthread.php?t=279196
还请各位大侠不吝赐教!
回复 支持 反对

使用道具 举报

发表于 2007-11-12 17:00:18 | 显示全部楼层
到这步做不下去了mount -o loop initrd-2.6.4 /mnt/initrd,提示“mount:no such file or directory”
回复 支持 反对

使用道具 举报

发表于 2008-5-16 17:55:27 | 显示全部楼层
用Gentoo Linux吧,我用那个做在了移动硬盘上,哪里都可以用,除了bios不支持的情况。
回复 支持 反对

使用道具 举报

发表于 2009-8-13 17:08:38 | 显示全部楼层
Post by xw_max;1850507
用Gentoo Linux吧,我用那个做在了移动硬盘上,哪里都可以用,除了bios不支持的情况。

可有驱动?
没有驱动。用起卡。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表