回文章列表
作者Adama.bbs@ptt.cc (So Say We All.) 看板: linux
標題Re: [問題] linux磁碟分割問題.
時間批踢踢實業 (2008/07/03 Thu 22:47:00)
※ 引述《amd3dnow (qq)》之銘言:
: os:  centos 5.1
: hdd: 100G
: 目前有個問題是,安裝時,os自動分割硬碟,但是只分配8G給dev/sda 掛載在 / 下
: 但是發現8g不夠用,想分配多一點給他,不知道有什麼方法可以達成?
: 還是只能重灌?

resize2fs + fdisk 可以改變ext2/ext3 分割區的大小
只是有個限制,就是分割區的開頭不能變
就是說你的/ 後面要緊接著可用空間,才能讓 / 變大

但如果你是用centos預設分割,那你應該是有用到lvm
有lvm就可以把任意可用空間轉成logical volume,
然後加入/ 那個volume group

--
The 4400     ~ A Place In Time ~              [Amanda Abizaid]

So long ago, another life, I can feel your heartbeat.
It's not a dream, remember us. I can see it in your eyes.
We'll find our place in time, a place in time beyond the sun.
We'll find our place in time, a place in time to call our own.

--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 72.234.170.75
※ 編輯: Adama           來自: 72.234.170.75        (07/03 22:46)
文章選讀←離開[主題上]主題下(k)上篇(j)下篇S/a搜尋 G串列 TAB精華 ↑↓捲 Pg/Space翻