LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-27-2004, 05:33 PM   #1
inescapeableus
Member
 
Registered: Feb 2004
Location: Canada
Distribution: GNU/Linux Debian (Etch)
Posts: 319

Rep: Reputation: 30
Resize That Root


Alright well here is the snag. I installed Yoper. During the install I must have been partially awake and I made it so my root partition is 2gigs. As we are all aware that just doesn't cut it and it is filling up fast. Is there anyway that I can relocate space from my home to my root? any ideas would be appreciated.
 
Old 11-27-2004, 05:36 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,978
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
What file-system are you using for both?
How big is which?


Cheers,
Tink
 
Old 11-27-2004, 08:32 PM   #3
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
do a "du -h --max-depth 1" in your / directory. you'll see that there's a lot in /usr.
so we'll split /usr away to a seperate partition:

1. backup your data! work in runlevel 1!
2. empty some space where /usr will go. ex. move data from your /home away to a temproary storage.
3. unmount the empty/old home and split this partition into two halfs (cfdisk/parted) with enough place to hold usr (it's getting quite big with time).
4. format both new partitions and make a new directory /usr2 (mke2fs/mkreiserfs).
5. edit your fstab to get /home and /usr2 mounted and reboot into single user mode.
6. move your home-data back and copy (cp -a) all your data from your old /usr to the new (usr2).
7. now rename /usr to /usr_old and change the /usr2 line in your fstab to /usr and reboot to see that there isn't anything doing wrong.
8. now you won't need your /usr_old anymore and can remove it.....

..free space.

you can do this easily with another directory, but be sure not to touch /dev if you're not sure what you do. for more that 4 partitions on one disk you need to build extended partitions. write down the partition table of the drive to be sure where what is in future.
post here if there are any other questions.

sl mritch.

Last edited by mritch; 11-27-2004 at 08:45 PM.
 
Old 11-27-2004, 08:58 PM   #4
inescapeableus
Member
 
Registered: Feb 2004
Location: Canada
Distribution: GNU/Linux Debian (Etch)
Posts: 319

Original Poster
Rep: Reputation: 30
Alright guys, thanks for the response. This is my specs as per "df -h"

Filesystem Size Used Avail Use% Mounted on
rootfs 4.6G 2.7G 1.8G 60% /
/dev/root 4.6G 2.7G 1.8G 60% /
/dev/hda2 30G 2.7G 26G 10% /home

you can clearly see my restrictions. I will attempt to follow the instructions. Thanks.

and this

16K ./lost+found
4.4M ./bin
2.9M ./boot
68K ./dev
4.0K ./floppy
2.7G ./home
4.0K ./initrd
16K ./isolinux
61M ./lib
12K ./mnt
4.0K ./opt
903M ./proc
6.3M ./root
6.5M ./sbin
0 ./sys
1.3M ./tmp
2.4G ./usr
101M ./var
39M ./etc
4.0K ./yos
4.0K ./.qt
6.2G .

Last edited by inescapeableus; 11-27-2004 at 09:00 PM.
 
  


Reply


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
resize root partition after install Phyrexicaid Suse/Novell 2 08-31-2005 03:38 AM
Resize root partition via reinstall dubya Fedora 0 12-05-2004 01:00 PM
resize hdb1 -root folder!! ngan_yine Linux - Newbie 2 01-15-2004 03:51 PM
how to resize my /root partition Perfekt Linux - Software 4 12-23-2003 09:22 PM
cant resize root thru rescue, auto mounts root dir absolutal Linux - Newbie 0 06-18-2003 03:06 PM


All times are GMT -5. The time now is 07:25 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration