LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-03-2009, 12:07 PM   #1
pankajd
Member
 
Registered: Oct 2008
Posts: 54

Rep: Reputation: 15
problem with repartitioning in linux server


hi,

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, 02:35 PM   #2
ramram29
Member
 
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 sysresccd.org. 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.
 
  


Reply



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 04:30 AM
Problem using SimplyMEPIS for repartitioning Windows XP hardrive bradcecil Linux - Software 2 03-02-2007 08:21 PM
Linux wont start up after repartitioning the hdd donkyboy666 Mandriva 1 08-21-2004 06:48 PM
Can I just replace Windows with Linux WITHOUT repartitioning the disk?? Trying to Learn Linux - Newbie 4 01-21-2004 08:31 AM
repartitioning of linux space from /home to /usr prpsarathy435 Linux - General 0 08-24-2002 10:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:23 PM.

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