LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 07-03-2006, 04:38 PM   #1
android6011
Member
 
Registered: May 2005
Posts: 255

Rep: Reputation: 30
Resize reiserfs partition without data loss


I have two partitions, a swap (1GB) and a 73GB reiser partition, and want to free up 10 gigs of space by resizing the reiser partition. I dont want to ruin the partition or lose data, so I was wondering how I should go about doing it. Ive heard of a live cd specifically made for partitioning, does anyone know what it is and if it will do what I need, or a quicker way? thanks
 
Old 07-03-2006, 05:15 PM   #2
zeitounator
Member
 
Registered: Aug 2003
Location: Montpellier, France, Europe, World, Solar System
Distribution: Debian Sarge, Fedora core 5 (i386 and x86_64)
Posts: 262

Rep: Reputation: 30
Point 1: when you play arround with filesystem/partition, BACKUP YOUR DATA FIRST.
Point 2: read point 1.

Now, to shrink your partition:
- Boot off a cd/rescue disk/usb key containing a working linux system with the reiserfs tools (I guess any knoppix live cd or such has such tools installed). Don't mount your system disks
- Shrink the file system on the given partition with resize_reiserfs
Code:
resize_reiserfs -10G /dev/hdx
- Using fdisk, shrink the partition the filesystem is on: delete the current partition and make a new one starting at the same block. Don't make the partition smaller than the filesystem.

You're done.

Hint: to make sure you don't mess-up: shrink the filesystem a little more than you really need, shrink the partition to the size you need, and run resize_reiserfs on the device again with no option to expand the filesystem to the full device size (this last operation can be done on a mounted filesystem).

Hint2: for a gui equivalent to all this, try qtparted
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
partition resize, loss of data? MetalStorm Linux - General 4 05-12-2006 09:05 PM
how to resize partition with no data loss? jonohana Linux - Newbie 3 11-15-2005 08:20 AM
ReiserFS: Enlarging sandwiched partition with no data loss Lagg Linux - Newbie 7 09-19-2005 02:59 AM
Resize Reiser without data loss dlublink Linux - Hardware 2 05-18-2005 04:46 PM
Resize / partition without loss of data techsimian Linux - Hardware 6 03-19-2005 12:19 AM

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

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