LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices

Reply
 
Search this Thread
Old 10-07-2005, 05:01 PM   #1
alexf
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Rep: Reputation: 0
How to reduce the size of root /


Hi,
I'm a newbie to the Linux world. I'm running SUse 9.1 personal edition using reiserfs. I installed Suse on a virtual PC. I don't remember any part during the installation prompting me to create different mount points and logical volumes. I ended up having / at the size of 15G. I want to reduce the size of root so that I could create other logical volumes. How do I reduce the size of root?

Thanks,
Alex
 
Old 10-07-2005, 06:46 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,469

Rep: Reputation: 154Reputation: 154
"I ended up having / at the size of 15G. I want to reduce the size of root so that I could create other logical volumes. How do I reduce the size of root?"

First you need to find out how much of the 15G partition is actually being used. You can then determine how much space you can transfer from the / partition to new logical partitions. To find out how much of the partition is used issue the command:

du -s -h

Then check what file system type / is. You can do this with the mount command:

mount

Most likely / is either an ext2 or ext3 file system. If so you can shrink the file system using the resize2fs command. See:

man resizefs

Then you can use fdisk or parted to reduce the size of the / partition. Then use fdisk or parted to create some new partitions in the spare you removed from the / partition. See:

man fdisk

---------------------------------
Steve Stites
 
Old 10-07-2005, 07:39 PM   #3
alexf
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Original Poster
Rep: Reputation: 0
The problem is that it's the / (root) mount point. I would have to unmount it before resizing it but because it's root I can't unmount it.
Alex
 
Old 10-07-2005, 07:49 PM   #4
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,469

Rep: Reputation: 154Reputation: 154
"The problem is that it's the / (root) mount point. I would have to unmount it before resizing it but because it's root I can't unmount it."

Any work that needs to be done on umounted partition can be done by booting a rescue CD.

I made a mistake in my first reply. Since you are using a reiserfs you would need to use resize_reiserfs to resize your file system.

-----------------------------
Steve Stites

Last edited by jailbait; 10-07-2005 at 07:51 PM.
 
Old 10-10-2005, 01:33 PM   #5
alexf
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Original Poster
Rep: Reputation: 0
THanks Jailbait,
I found a rescue image to boot from and reduced the size of root.

Alex
 
Old 10-10-2005, 04:53 PM   #6
1kyle
Member
 
Registered: Feb 2004
Location: 'Ol Blighty
Distribution: SLED 10, SUSE 10.3
Posts: 722

Rep: Reputation: 32
I'd also make a different partition for /home --so you can store all your temporary data there -- you can also use the same /home partition even if you switch distros. Depending on what you've installed you might also consider a separate partition for /usr. However only /home can be re-used without re-formatting if you install a different distro (other than purely data type partitions such as /datavol1 or whatever if you share these with other computers).

Cheers

-K
 
  


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
how i can reduce the squid log size.. shahg_shahg Linux - Networking 2 06-16-2005 02:23 PM
help me reduce my OS size =/ xushi Slackware 29 12-01-2004 11:45 AM
how to reduce /proc size provkitir Debian 1 10-14-2004 10:56 PM
reduce the kernel image size further abirami Linux - Networking 1 10-05-2004 10:06 AM
How to reduce the size of bzImage hemk76 Linux - Networking 2 10-05-2004 06:32 AM


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

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