LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-08-2006, 02:35 PM   #1
GUIPenguin
Member
 
Registered: Aug 2004
Location: Maine
Distribution: Gentoo Linux
Posts: 239

Rep: Reputation: 30
moving unallocated disk space into reiserfs partition.


I have setup many gentoo installations before, and have never had to do this. I was rushing today getting gentoo installed on my laptop. I was meaning to set my swap (/dev/sda3) as +1024M but now it seems after the installation and everything that I set this partiton some how to around 8GB LOL.

and of course I used the rest of the space for my linux root file system / which is mounted at (/dev/sda4) and this is 6.9GB it should be a lot bigger had I not made that mistake. It is formated and using reiserfs 3.6

is there any possible way to reduce the side of my swap partition and safely merge the remaining free space for my linux file system.

I booted with PQMagic bootable cd, and I could resize my swap partition back to 1024mb, but I cant merge the remaining space into my /dev/sda4 partition. What should i do? (if worse comes to worse I would have to use fdisk to make a temp partition with the free space left over from re-sizing the swap with pqmagic and dd or rsync everything onto a new temp file system, and then delete /dev/sda4 and re-create it some how. Any thoughts? Thanks.
 
Old 04-08-2006, 02:44 PM   #2
d0odman
Member
 
Registered: Sep 2004
Location: CA, USA
Distribution: Slackware 10.2
Posts: 132

Rep: Reputation: 15
You could make a stub, and mount the extra space on it.

LVM would be easier, if you used that at first. You just add the unused extents to the LV in question and do a resize_reiserfs. You wouldn't even need to boot in to PQMagic, and could do it live. That's a bit advanced, though.
 
Old 04-08-2006, 02:47 PM   #3
GUIPenguin
Member
 
Registered: Aug 2004
Location: Maine
Distribution: Gentoo Linux
Posts: 239

Original Poster
Rep: Reputation: 30
I have never done that before... know of any docs or toturals out there that may be of use to me?
 
Old 04-08-2006, 03:07 PM   #4
d0odman
Member
 
Registered: Sep 2004
Location: CA, USA
Distribution: Slackware 10.2
Posts: 132

Rep: Reputation: 15
For the first (and easier) part? I can tell you how to do that now. Make a directory, say 'morespace' in /. Edit fstab to mount it at boot. fstab should be in /etc. Add the following line to it:

Code:
/dev/hd? /morespace reiserfs defaults 1 2
where hd? is the newly formatted recovered space from your resized swap partition.

After you edit fstab, you can mount the new space without rebooting. Just issue a 'mount /morespace' as root, and the space will show up. The only problem with this solution, is making the space available to all your users, and REMEMBERING there is space there. But, it's a quick and dirty fix.

LVM is another beast entirely. Check out (I'm really disliking suggesting this) the howtos on 'logical volume management'. This requires a lot of forethought on your part, and pre-setup, in order to get going. You'll also have to probably install a new kernel, in some cases. Don't get me started on maintenance if something goes wrong. Once it's up and running, it's pretty handy to be able to resize your partitions on the fly.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ReiserFS - where is my disk space? krizzz Slackware 1 03-09-2005 02:08 PM
Resize ReiserFS partition to use rest of disk space fivezerosixzero Linux - General 1 10-31-2004 01:43 PM
add unallocated free space to existing disk drives!! ajaymyeg Linux - Networking 1 07-21-2004 08:17 PM
Format ext3 ONLY on unallocated space X-Crawler Linux - General 3 03-16-2004 11:27 AM
Moving Disk Space in Linux ALF Linux - Software 6 11-27-2003 06:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:04 AM.

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