LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-13-2005, 11:58 AM   #1
LeftyAce
Member
 
Registered: Oct 2005
Distribution: Debian
Posts: 69

Rep: Reputation: 15
Can I expand a reiserfs partition?


Hi all!

I have been happily using debian for a few months now, and someone told me I should try SuSE (better hardware support, yast, a cool little lizard, blah blah blah). so I did, and resized my debian reiser partition to allow room for SuSE. Having decided that SuSE isn't for me (kde problems, vid card problems, etc) I've removed it and now want to reclaim those 5 GB at the end of my harddisk. I removed the SuSE partition, so there's just 5G of unused disk space adjacent to my debian partition.

I tried resizing in parted, and it said it didn't have reiserfs support. If I remember correctly, the command resize_reiserfs only resizes the filesystem, not the partition. So I would like to know how to resize a partition which is currently formatted with reiserfs (without losing data).

Any suggestions much appreciated!
 
Old 12-13-2005, 12:05 PM   #2
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
It's a 2-step process. You resize (delete and re-create) the partition first (e.g. using cfdisk, change the higher number to fill the empty space) and then expand the filesystem (using resize_reiserfs). It works. But be aware that you could always lose data (resizing is a risky process).

(see 'man resize_reiserfs' for more info)
 
Old 12-13-2005, 12:27 PM   #3
LeftyAce
Member
 
Registered: Oct 2005
Distribution: Debian
Posts: 69

Original Poster
Rep: Reputation: 15
I understand why that *should* work. But I've got a question: once I delete the reiser partition, I then create a new partition using all free space. Now, as long as I don't format that partition at all, the filesystem (and the data) from the old one is still there? and can be resized using resize_reiserfs??

Or, do I need to format the whole space with reiser before doing the resize? (I assume not; that'll kill all my data, right?)

btw, had never heard of cfdisk (yes, I'm a noob); it looks nice. More polished than parted, but lighter (much lighter) than qtparted.
 
Old 12-13-2005, 12:37 PM   #4
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
If you resize the partition only (not the filesystem) you will still be able to acces the data, but there will be the same space available as before. One important point is that the first cylinder has to be identical to your previous setting! Otherwise you'll lose the data. After that, you can extend the existing filesystem with resize_reiserfs to fit the new partition size. When I did this, I took extra care not to exceed the partition size. However, I am not sure if resize_reiserfs would accept such a setting anyway.

I assumed the partition is formated with reiserfs already. If you create an new filesystem (mkreiserfs), you will lose the data.
 
Old 12-13-2005, 12:51 PM   #5
LeftyAce
Member
 
Registered: Oct 2005
Distribution: Debian
Posts: 69

Original Poster
Rep: Reputation: 15
Ok I'll try that. I'm going to back up some stuff first, just in case :-)
 
  


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
how resize a reiserfs partition? sh4d0w13 Linux - Newbie 2 12-14-2005 10:36 AM
formating partition to reiserfs tintilin Linux - Software 1 11-22-2004 12:14 PM
expand main partition to another hard drive? halo14 Red Hat 3 08-09-2004 04:54 PM
Need to expand /usr partition marenkiapina Linux - Software 2 05-22-2004 06:27 AM
how to expand my /tmp...partition Zvezda Linux - General 2 07-03-2003 07:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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