DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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).
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).
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.