how to increase existing partition ?

Jason Carson jay-ZPnsNkHkFjk at public.gmane.org
Sun Jan 18 19:36:31 UTC 2004


> On Fri, Jan 16, 2004 at 10:22:54PM -0800, James wrote:
>> i set up /usr directory too small, now it run out of space. i have spare
>> space  around in the same
>> drive. how do i add it to /usr ?
>>
>> here is du -h and fdisk -l output:
>>
>> Filesystem            Size  Used Avail Use% Mounted on
>> /dev/hda7             486M   88M  373M  19% /
>> /dev/hda1              23M  2.7M   18M  13% /boot
>> /dev/hda2             1.4G  122M  1.2G   9% /home
>> none                   30M        30M   0% /dev/shm
>> /dev/hda10            114M  4.1M  103M   4% /tmp
>> /dev/hda6             486M  333M  128M  73% /usr
>> /dev/hda3             1.2G   34M  1.0G   3% /usr/local
>> /dev/hda9             190M   13M  167M   7% /var
>> /dev/hda8             486M  8.1M  453M   2% /var/mail
>>
>>
>> Disk /dev/hda: 255 heads, 63 sectors, 788 cylinders
>> Units = cylinders of 16065 * 512 bytes
>>
>>    Device Boot    Start       End    Blocks   Id  System
>> /dev/hda1   *         1         3     24066   83  Linux
>> /dev/hda2             4       194   1534207+  83  Linux
>> /dev/hda3           195       347   1228972+  83  Linux
>> /dev/hda4           348       788   3542332+   5  Extended
>> /dev/hda5           348       412    522081   82  Linux swap
>> /dev/hda6           413       476    514048+  83  Linux
>> /dev/hda7           477       540    514048+  83  Linux
>> /dev/hda8           541       604    514048+  83  Linux
>> /dev/hda9           605       629    200781   83  Linux
>> /dev/hda10          630       644    120456   83  Linux
>>
>>
>> i thought of creating a new ext3 filesystem from 655 to 788, and copy
>> all content of /usr  to it.
>> then mount the new drive as /usr.
>>
>> is it doable ?  what are other good choices ?
>
> If there is space left on the drive for that, it is probably the
> simplest.  That is one insane amount of partitions, most of which are
> way smaller that I would ever have considered reasonable.
>
> Having seperate /tmp is sometimes good, seperate /var is good if you
> store lots of logs and don't want to getting cut off, /home seperate
> makes sense if you have lots of users and are not using quotas, having
> /usr seperate from / really doesn't accomplish anything useful, and
> seperate /boot makes sense for cases where /boot needs a different
> filesystem or your bios is old and crappy.  A database server or
> something may make sense to store it's data somewhere seperate too.

Yep, thats what I have
/
/boot
/home
/usr
/var
/tmp

Initally I just had / and /home but then I had a problem and couldn't
recover anything in / so I divided it up.

> I tend to do swap, / and /data and I symlink any large things into
> /data.  Keeps life simple and quite reliable.  Using LVM and resizeable
> filesystems is another way to deal with it and quite useful to learn.
>
> Lennart Sorensen
> --
> The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
> TLUG requests: Linux topics, No HTML, wrap text below 80 columns
> How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
>

--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list