LinuxSir.cn,穿越时空的Linuxsir!

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

freebsd快?简直胡说霸道

 关闭 [复制链接]
 楼主| 发表于 2003-3-15 12:48:11 | 显示全部楼层

版主的态度让人敬佩

版主的态度让人敬佩。本人一时的气话大家就当过眼烟云吧。
发表于 2003-3-15 12:53:21 | 显示全部楼层
lunar我以前也听说过,现在我也想装个试试。
发表于 2003-3-15 13:18:41 | 显示全部楼层

言过了....

Installing lunar without CD burner


On Tue, Jul 16, 2002 at 09:59:12PM +0200, Jasper Huijsmans wrote:
> Hello list,
>
> I'd like to try Lunar linux, but I don't have a CD burner. Is it
> possible to install Lunar without starting from CD? I would guess yes.
> Has anyone tried that?

I did that, successfully.  "How" follows:

---
Suppose you don't have a CD-ROM drive or an installation ISO available, but
you want to turn your existing linux installation into Lunar-Linux.
This will practically mean wiping out whatever you have left of your
current distribution and starting over with the new one.  Here's what
you need:

  - One hard disk partition with enough space to hold the contents of
    the installation ISO.  Also you can't install to this partition; two
    separate hard disks are a good idea.

  - Loopback device support in your kernel (for copying the contents if
    of the ISO to the partition)

0. Of course, as always when you're installing something, back up
whatever important you have on your hard disk.

1. Copy the contents of the ISO to your temporary partition.  For
example, I wanted to install Lunar on the first disk (/dev/hda), and
used an empty 300-meg ext2 partition /dev/hdb4 to contain a copy of the
ISO during the installation.  The procedure went like this:
...
-rw-r--r--    1 root     root     161546240 May 29 01:37 lunar-20020503.iso
golem:/tmp# mount ./lunar-20020503.iso /mnt -t iso9660 -o loop=/dev/loop0
golem:/tmp# mount /dev/hdb4 /mnt2 -t ext2
golem:/tmp# cp -Rp /mnt/* /mnt2

>From now on, we'll assume that you've mounted the ISO to /mnt and the
temporary volume to /mnt2.

2. Next we need to boot the kernel which resides on the temporary
partition (/mnt2/isolinux/linux), and mount the file
(/mnt2/isolinux/initrd.gz) as the root file system.  We can do this with
lilo.  Create a temporary lilo.conf.tmp which contains the following:

--begin /tmp/lilo.conf--
boot=/dev/fd0
vga=normal
image=/mnt2/isolinux/linux
label=lunar-install
ramdisk=8192
initrd=/mnt2/isolinux/initrd.gz
root=/dev/ram0
--begin /tmp/lilo.conf--

This one will make a boot floppy disk which will boot into your newly
born temporary install disk.  If you wanted to boot straight from your
hard disk, you could use boot=/dev/hda (which installs on the MBR of the
first disk), but it will of course wipe your current boot sector.  I did
it and got problems - use with caution ;)

Then run lilo to write the boot sector to the floppy:

root at golem:/tmp# lilo -C ./lilo.conf
Warning: LBA32 addressing assumed
Added lunar-install *
root at golem:/tmp#

3. Not so fast! Don't reboot yet. The installation is (as of the time of
writing this, at least) configured to run the file
/usr/sbin/lunar.install if it is booted on a read-only device (such as a
CD-ROM), and to delete that file if it is booted on a hard disk.  This
causes an unpleasant surprise to the unaware (at least to me it did ;)
Before booting the temporary disk, you must change the file
/mnt2/etc/init.d/lunar (which is run at the boot time) so that it won't
delete that precious file:

--begin /mnt2/etc/init.d/lunar--
if  [      -x  /usr/sbin/lunar.install  ];  then
# comment out this line:
#  /bin/rm  -f  /usr/sbin/lunar.install  2>  /dev/null  ||
  /usr/sbin/lunar.install
fi
--end /mnt2/etc/init.d/lunar--

4. Now let's boot with the floppy disk.  If everything goes fine, first
the installer will mount the initrd image as root, containing some
kernel modules.  You should load all kernel modules which you will need
to access your temporary hard disk, in the same manner as you would have
to load your CD-ROM driver.  For example, if you were using /dev/sdb4
instead of /dev/hda4 for your temporary disk, select your SCSI driver,
etc. etc.  Most IDE ATA/100 drivers and similar are already compiled in
the installation kernel, I think, so you don't need to take care of
those.  When comes the time to select your root device, you should
select the same temporary device as before, except that it is now in
devfs-style path since the installer supports only devfs.  For example,
if the temporary partition was /dev/hdb4 in the normal /dev system, it's
/devices/discs/disc1/part4 now.  Go to the shell and check if you're
unsure.

5. After this you can hopefully manage to continue installing as if you
were booting from CD-ROM; the installer prompts to repartition and
format your partitions and swap spaces, etc.  Don't wipe out your
temporary partition yet

6. Finally, the installer lets you configure the kernel and compiles it,
and then reboots - or alternatively lets you go to the shell to do
whatever you want to do.  This is a good change to move the installer
out of the way so that it won't be run again when you boot for the
second time.  (Remember the change we made in step 3?)  Just simple
"mv /mnt/root/usr/sbin/lunar.install /mnt/root/usr/sbin/lunar.install.old"
will do.

7. If everything goes fine, you've got a fresh installation with minimal
default settings (I had to do 'lin dhcpcd', for example, to get the
network up).  Enjoy.

---

Antti.

P.S. After I installed my system the thought that you could install
lunar straight from the ISO image via the loopback filesystem popped
into my mind, but I was too lazy to reinstall my system, testing if it
would work for real.  But you might want to try if you're brave enough



-----------


什么是最好---没有最好的

!!!!!

lunar
可能有它存在的必要,但Gentoo.真的很"博大"---作了很多工作,用了就知道!!!

<一句话,都是从source来的,都是同一个爹妈生的,能有多不一样吗?>
发表于 2003-3-15 13:27:26 | 显示全部楼层

好奇又来了.....

安装过的

请发"快照"
发表于 2003-3-15 13:40:07 | 显示全部楼层

Re: 好奇又来了.....

哈哈,偶正在下!


最初由 qing 发布
安装过的

请发"快照"
发表于 2003-3-15 13:45:51 | 显示全部楼层

好的...

使用过了

发上来

快照

我作成一集吧
发表于 2003-3-15 17:53:31 | 显示全部楼层

Re: freebsd快?简直胡说霸道

最初由 bearxj 发布
freebsd快?简直胡说霸道。不要老抱着惟我独尊的态度去看linux,你凭什么说freebsd比linux快,你用过lunar吗,这个distro比gentoo还快呢。唉,很多人老是说freebsd这个好,那个好,曲高和寡的东西只不过是即将灭种的东西罢了!不信你们扪心自问,干活还是要用redhat吧(当然在加上debian)。


楼主好牛比

你自己写个系统出来好了

还不是在嚼洋鬼子吃过的剩饭吗?

鄙视你!:mad:
发表于 2003-3-15 20:48:01 | 显示全部楼层

Re: Re: freebsd快?简直胡说霸道

最初由 l63 发布


楼主好牛比

你自己写个系统出来好了

还不是在嚼洋鬼子吃过的剩饭吗?

鄙视你!:mad:

这样就不对了,大家谈论技术又不是吵架,你要反驳请好好说,好吗?
我认为FreeBSD系统是快,至少比Redhat快,当然这和在redhat下使用X有关。
发表于 2003-3-15 22:30:07 | 显示全部楼层

Re: Re: freebsd快?简直胡说霸道

最初由 l63 发布


楼主好牛比

你自己写个系统出来好了

还不是在嚼洋鬼子吃过的剩饭吗?

鄙视你!:mad:



楼主说的有可能也是对的,偶们都没用过嘛,今天下载了,还没来得急刻盘,毕竟是个新的发行版,应该也就是最近才发布的,楼主发贴好及时,LUNAR的论坛上面的帖子也就是几个帖子,还没出现几十个帖子呢,应该是很新,兄弟们感兴趣倒是可以研究研究,哈哈!
http://community.lunar-linux.org/forums/
发表于 2003-3-15 23:26:47 | 显示全部楼层
我用过freebsd和linux中的slackware 红旗,Turbolinux,gentoo,SuSE,曼德拉草,debian,矩阵linux,等...

可以这么说,在不特别优化,就默认安装的情况下,freebsd绝对是快的!并且还不是快一点,这主要讲的是主观感受.

楼主不要没有用过freebsd,就说freebsd曲高和寡,其实用的人不少,而且比大多数的linux发行版都要好用--当然,在你会用的基础上!

干活还是要用redhat吧--这句话恰好说反了,小红帽对于很多人来说只是玩玩的!!!它的优点,也就是安装容易,一堆乱七八糟的软件,给新手过把瘾的!
玩linux早点的,都是玩slackware的.后来接触linux的人因为redhat安装方便,所以更多的去到redhat那一边了.

真正干活的,还是用freebsd靠得住!!!明白么!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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