发新话题
打印

关于硬盘分区

关于硬盘分区

  我的硬盘60G
swap 1025MB
其他的全在 /

这样会影响性能么?

为什么要吧硬盘分的那么开阿~

本人菜鸟,请高人解答
*
* WELCOME to the VeriSign Global Registry Service Whois Server.
*
* Sorry, the Whois database is currently down.
*
* Please wait a while and try again.  Thanks
*
好像看你的机器做甚么用 。我一般分的时候  分 /swap  /boot  /    这三个区  我看有的做服务器的还给甚么关于日志的专门分个区  分的方法好像很多 ,看你自己的需要吧 !

俺是“高人” (我说的是身高 ~~~~^_^)!!!!!
认真做好每一件事情。相信自己,相信朋友! PS:近期学校调整网络可能不能常来论坛聊了,大家加油啊!
哦,下面来自Debian参考手册

3.1.11.1 硬盘分区

我更喜欢将不同的目录树分别装在不同的分区下,这样可以将系统崩溃造成的损失减到最小。例如:

    /          == (/ + /boot + /bin + /sbin)
               == 50MB+
    /tmp       == 100MB+
    /var       == 100MB+
    /home      == 100MB+
    /usr       == 700MB+ with X
    /usr/local == 100MB

/usr 目录的大小很大程度上取决于 X window 应用程序和文档的数目。如果只运行控制台终端 /usr 可以小到 300MB,但如果你装了大量 Gnome 应用程序 2GB-3GB 也很正常。当 /usr/ 增长得太大,将 /usr/share/ 移到别的分区是最有效的解救方法。对新的 Linux2.4 内核包,/ 目录的大小可能要超过 200MB。

例如,当前我的 Internet 网关服务器的硬盘使用情况如下(由 df -h 命令输出):

    Filesystem            Size  Used Avail Use% Mounted on
    /dev/hda3             300M  106M  179M  38% /
    /dev/hda7             100M   12M   82M  13% /home
    /dev/hda8             596M   53M  513M  10% /var
    /dev/hda6             100M  834k   94M   1% /var/lib/cvs
    /dev/hda9             596M  222M  343M  40% /usr
    /dev/hda10            596M  130M  436M  23% /var/cache/apt/archives
    /dev/hda11            1.5G  204M  1.2G  14% /var/spool/squid

(有块大空间留给 /var/spool/squid 作为下载软件包时代理服务器的缓冲区。)

下面的 fdisk -l 输出提供了一个分区分配方案:

    # fdisk -l /dev/hda # comment
    
    /dev/hda1             1        41    309928+   6  FAT16 # DOS
    /dev/hda2            42        84    325080   83  Linux # (not used)
    /dev/hda3   *        85       126    317520   83  Linux # Main
    /dev/hda4           127       629   3802680    5  Extended
    /dev/hda5           127       143    128488+  82  Linux swap
    /dev/hda6           144       157    105808+  83  Linux
    /dev/hda7           158       171    105808+  83  Linux
    /dev/hda8           172       253    619888+  83  Linux
    /dev/hda9           254       335    619888+  83  Linux
    /dev/hda10          336       417    619888+  83  Linux
    /dev/hda11          418       629   1602688+  83  Linux

里面有一个未使用的分区。留作安装第二个 Linux 或为增长的目录树提供扩充余地。
*
* WELCOME to the VeriSign Global Registry Service Whois Server.
*
* Sorry, the Whois database is currently down.
*
* Please wait a while and try again.  Thanks
*
我更喜欢将不同的目录树分别装在不同的分区下,这样可以将系统崩溃造成的损失减到最小。

这句话不是很理解~
*
* WELCOME to the VeriSign Global Registry Service Whois Server.
*
* Sorry, the Whois database is currently down.
*
* Please wait a while and try again.  Thanks
*
你的內存多少?
怎切到1025...
這樣多少會影響到一些性能

底下是我所知道的分區功能
至於/我就不寫了

/var <- 常讀寫的分割區
/var/log <- Log files
/var/spool <- Mails
/usr <- 一些使用者的東西
/usr/bin <- Some executable file
/usr/local <- 使用者自己compile的程式
/home <- 還需要說嗎=  ="
/boot <- 這邊是放開機檔案
/proc <- 這邊放的是運行中的東西... 我不太會解釋

至於為什麼分開.. 容易Backup阿
CFC <at> Zuso Security CFC <at> Taiwan Ruby Users Group Taiwan Ruby Users Group: http://www.ruby.oss.tw/html/
内存512


怎切到1025...


我切1024就会变成0。99G  感觉不爽   呵呵~~~        不知道为什么,难道1MB让系统吃了,还是分区软件的,。
*
* WELCOME to the VeriSign Global Registry Service Whois Server.
*
* Sorry, the Whois database is currently down.
*
* Please wait a while and try again.  Thanks
*
引用:
下面是引用henry.ning于2006-09-10 10:16发表的:
我更喜欢将不同的目录树分别装在不同的分区下,这样可以将系统崩溃造成的损失减到最小。

这句话不是很理解~
假設以下是我的分割

hda1: /
hda2: /var/log
hda3: /home
hda5: /swap
hda6: /usr/local
hda7: /etc

好了,今天我的系統掛了..
我必須reinstall

這樣一來,我是不是重灌時可能會影響到一些重要檔案
像是/usr/local內的東西、/etc的東西跟/home的東西

那我要都安裝在hda1下,我重灌時這些都會消失
但是如果我分開
這些並不會在我重灌時影響到(除非你將其format或者將整顆硬碟fdisk)
就像是Windows下,我分C、D、E一樣的意思
CFC <at> Zuso Security CFC <at> Taiwan Ruby Users Group Taiwan Ruby Users Group: http://www.ruby.oss.tw/html/
哦,如果不考虑这个问题是不是就可以方在一个分区里面,在其他方面没什么影响吧?
*
* WELCOME to the VeriSign Global Registry Service Whois Server.
*
* Sorry, the Whois database is currently down.
*
* Please wait a while and try again.  Thanks
*
嗯!沒錯
其他方面不會有影響

Linux下我沒聽過磁碟重組之類的東西..
CFC <at> Zuso Security CFC <at> Taiwan Ruby Users Group Taiwan Ruby Users Group: http://www.ruby.oss.tw/html/
OK谢谢了~
*
* WELCOME to the VeriSign Global Registry Service Whois Server.
*
* Sorry, the Whois database is currently down.
*
* Please wait a while and try again.  Thanks
*
发新话题