LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1255|回复: 8

请问:我想重装系统后,以前安装的软件仍然可以用,怎么通过分区来实现?

[复制链接]
发表于 2005-1-26 19:02:09 | 显示全部楼层 |阅读模式
编译安装软件时,该怎么做?
发表于 2005-1-26 20:25:33 | 显示全部楼层
分出一个区,比如/data 存放你的这些软件
编译安装时指定 目录就可以了
比如从源码包编译时 : ./configure --prefix=/data
回复 支持 反对

使用道具 举报

发表于 2005-1-26 20:32:42 | 显示全部楼层
Post by 6692975
分出一个区,比如/data 存放你的这些软件
编译安装时指定 目录就可以了
比如从源码包编译时 : ./configure --prefix=/data

In this case, please remember to add /data/bin to your search PATH.
回复 支持 反对

使用道具 举报

发表于 2005-1-26 20:48:37 | 显示全部楼层
其实用/usr/local就可以,
编译安装时指定--prefix=/usr/local,
然后把/usr/local备份
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-1-26 21:04:49 | 显示全部楼层
我看了一些文章,说可以分出,/usr,/boot,和/,swap.
说/boot用于启动。我不明白这些是什么意思,
如果我分了/usr,/boot,和/,swap,安装时与只分/,swap有什么差别,要怎么安装呢?
回复 支持 反对

使用道具 举报

发表于 2005-1-26 21:15:49 | 显示全部楼层
A separate /boot is a good idea because you can fix it independently in case of boot problems.  In addition, if you have multiple distros, e.g. Debian, LFS, Gentoo, BSD etc on the same computer, a separate /boot is particularly useful.

A /usr is good if you have the chance to upgrade your system without affecting your data.

In fact, it is usual to have a separate /home for sharing data between different distros on the same computer.

Simply define your partitions with your partitioning tools, e.g. fdisk, cfdisk etc and then define the corresponding mount points in your filesystem table, i.e. /etc/fstab
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-1-26 21:52:16 | 显示全部楼层
Post by d00m3d
A separate /boot is a good idea because you can fix it independently in case of boot problems.  In addition, if you have multiple distros, e.g. Debian, LFS, Gentoo, BSD etc on the same computer, a separate /boot is particularly useful.

A /usr is good if you have the chance to upgrade your system without affecting your data.

In fact, it is usual to have a separate /home for sharing data between different distros on the same computer.

Simply define your partitions with your partitioning tools, e.g. fdisk, cfdisk etc and then define the corresponding mount points in your filesystem table, i.e. /etc/fstab




我似乎有些理解了:其实单独的/usr,/boot分区和根分区下的/usr,/boot目录,没有任何关系,虽然他们名字相同。只要正确的挂载使用他们,/usr,/boot分区叫什么名字无所谓,不知道是不是这样。
   我以前理解成安装的时候把根分区下的/usr,/boot 目录安装到单独的/usr,/boot分区,结果搞得稀里糊涂的。
回复 支持 反对

使用道具 举报

发表于 2005-1-26 22:12:13 | 显示全部楼层
I am not familiar with Chinese input.  I have to type in English.  Please accept my apologies if I have misled you.

In my previous post, I am refering "separate /boot" to the individual partition and mount at /boot.

To better describe the situation, you could have a partition layout as below:

Partition     Mount point
/dev/hda1  /
/dev/hda2  /boot
/dev/hda3  /usr
/dev/hda4  swap

All you need is to format the partitions and define them in /etc/fstab.  Hope this clear.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-1-26 22:30:58 | 显示全部楼层
我刚才的理解是错误的。现在明白了:
Partition Mount point
/dev/hda1 /
/dev/hda2 /boot
/dev/hda3 /usr
/dev/hda4 swap
感谢d00m3d的热心帮助。
回复 支持 反对

使用道具 举报

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

本版积分规则

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