Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-03-2009, 01:07 PM   #1
Registered: Oct 2008
Posts: 46

Rep: Reputation: 15
problem with repartitioning in linux server


i have a linux server with fallowing configuration :
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 9.7G 4.7G 4.6G 51% /
/dev/sda6 19G 368M 18G 3% /var
/dev/sda2 194G 8.7G 176G 5% /usr
/dev/sda1 494M 26M 444M 6% /boot
tmpfs 2.0G 0 2.0G 0% /dev/shm

Now i want to have /var as 10 gb and /usr as 20 gb and / as 194 gb .How can i do that?
Solution what i thin is:
1)go to single user mode
doing chroot /mnt/sysimage and then cpoying data from one dir to other and emptying the first dir...
or how can i proceed?
Old 06-03-2009, 03:35 PM   #2
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
I've done this before. First do a full backup of everything. Use a rescue CD such as Save to external USB disk. You can then use a combination of resize2fs to shrink or expand the partitions. However, I would recommend to partition your disk using LVM (Logical Volume Management) next time. This is one of the reasons why LVM was created - in order to better manage physical and logical partitions.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub problem after repartitioning anika.ella Linux - Newbie 2 11-10-2008 05:30 AM
Problem using SimplyMEPIS for repartitioning Windows XP hardrive bradcecil Linux - Software 2 03-02-2007 09:21 PM
Linux wont start up after repartitioning the hdd donkyboy666 Mandriva 1 08-21-2004 07:48 PM
Can I just replace Windows with Linux WITHOUT repartitioning the disk?? Trying to Learn Linux - Newbie 4 01-21-2004 09:31 AM
repartitioning of linux space from /home to /usr prpsarathy435 Linux - General 0 08-24-2002 11:51 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:37 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration