LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 07-01-2006, 03:16 AM   #1
gljubuncic
Member
 
Registered: Apr 2005
Posts: 34

Rep: Reputation: 15
Running out of space - resizing my existing Linux partition


Hello all,

I'm running SUSE 10.1 which is installed on a small physical 10GB drive (not a partition on a bigger drive). At the installation I accepted the suggested partitioning which resulted in the following:

/dev/hdb1 which is swap it's 1GB in size
/dev/hdb2 which is system partition with a size of 3.4 GB and it has 400 MB of free space
/dev/hdb3 which is /home and has 5.2GB of total space with 4.8GB free

All I want to do is increase the size of /dev/hdb2 by a 1GB and decrease the size of /dev/hdb3 accordingly. How do I do this?

I searched this forum but I couldn't find an answer that suits my problem.

Many thanks to you all,
Goran
 
Old 07-01-2006, 03:54 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Depending on the file-system you chose you may be able to use a
live-CD with qparted to resize them...


Cheers,
Tink
 
Old 07-01-2006, 06:31 AM   #3
noranthon
Member
 
Registered: Apr 2006
Location: Australia
Distribution: PCLinuxOS with Xfce
Posts: 301

Rep: Reputation: 30
AFAIK, resizing is virtually guaranteed to destroy your files. There is a programme called partimage which can be run from systemrescuecd or knoppix (get the links if you want them from Distrowatch). The programme takes an image of a partition. I've been researching this recently because I have the system rescue cd and it's not big on explanations.

These are a couple of threads which I've added to my subscription list:
http://www.linuxquestions.org/questi...d.php?t=138366
http://www.linuxquestions.org/questi...d.php?t=135182

My two cents worth: I had a separate /home partition. I've moved it into the root partition and set up a separate partition for all material that grows - data files, backup files and the like. The pure system and home files only expand when you add more software. I find I need most room for downloading.

Edit: more specific link to DistroWatch.

Last edited by noranthon; 07-01-2006 at 07:47 AM.
 
Old 07-01-2006, 01:29 PM   #4
gljubuncic
Member
 
Registered: Apr 2005
Posts: 34

Original Poster
Rep: Reputation: 15
First, thank you all for answering.

If I'm not to re-partition my drive, which software I can safely uninstall to free some space? I'm sure there's a ton of software installed that I do not need.

While configuring my SUSE installation I installed some of the following software as suggested in this article http://www.thejemreport.com/mambo/content/view/254/42/:

* gcc
* make
* kernel-source
* kernel-syms
* kdeadmin3
* compat-expat1
* expat

Some of it is rather heavy. Which one can I uninstall safely?

Thank you,
Goran
 
Old 07-01-2006, 01:36 PM   #5
luriomer
Newbie
 
Registered: Apr 2006
Distribution: Slackware
Posts: 12

Rep: Reputation: 0
Well, you can uninstall the "kernel-source", witch is very big, and needed only if you want to recompile the kernel's source code(only if you are dealing with software-engineering).
 
Old 07-01-2006, 03:17 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by noranthon
AFAIK, resizing is virtually guaranteed to destroy your files.
/me coughs

I've used parted (qparted) quite a few times, and never had any
data loss; where did your statistics come from? I mean, virtually
guaranteed is a VERY strong statement. If you had said "It may
lead to date loss" because there's anecdotal evidence of that
happening, OK, but ... one just needs to be sure that one reads
(and understands) the README and the man-pages, and doesn't
try to resize ext3 with a version of parted that only knows ext2.


Cheers,
Tink

Last edited by Tinkster; 07-02-2006 at 04:01 AM.
 
Old 07-01-2006, 03:34 PM   #7
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Your hdb2 will fit on a single DVD. Your hdb3 will fit on a single CD. If you have a DVD burner, I'd first back these two up in their entirety. Then resize or repartition to your heart's content and restore from your backups. You will need a LiveCD (Knoppix, etc.) to do this. Hopefully you have enough ram so you can boot Knoppix with the "toram" parameter so you can free up your DVD burner (if you indeed have one). If you don't have enough ram for "knoppix toram", try some smaller LiveCD like Slax that will fit into your existing ram.
 
Old 07-01-2006, 09:48 PM   #8
katayamma
Member
 
Registered: Jan 2006
Posts: 37

Rep: Reputation: 15
Partition Magic(tm) is a wonderful product that will also resize your linux partition without trashing it. I've used it several times on my personal system at home as I've re-arranged my drives to add/remove partitions for OS testing.

Of course, now that I've bought VMware, I don't do that nearly as often as I used to. :P
 
  


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
resizing existing partition rahilrai SUSE / openSUSE 2 03-15-2006 09:55 AM
Possible to create new partition by resizing existing? rollo SUSE / openSUSE 11 07-02-2005 08:31 AM
Resizing an existing RH9 Linux partition Battletux Linux - Newbie 1 05-27-2004 07:59 AM
Resizing Existing Linux Partition (ext3) BxBoy Linux - General 23 09-22-2003 10:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:10 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