How do I increase the size of a Reiserfs?
Consider this:
Quote:
hde3 is about 2.4G in size currently hde3 is at the end of the hde disk hde disk is 27.3G As you can see there is plenty of space between hde1 and hde3. I would like hde3 to be 10G in size How can I do this? Thanks. |
Simplest way without the hassle of actually resizing a partition is to create say "hde2" with the space and then mount it from a directory on hde3 or anywhere else you need it.
This would assume you dont need all 10GB for one file. Somebody will probably have an easier way to actually resize. |
It is Impossible to enlarge it without free space after. The reason is because there are no tools in existance to move the front-end of a ReiserFS (or ext2, or ext3 for that matter).
What you must do to enlarge it is this: 1. Create a new partition in the middle (hde2?) 2. Copy the entire partition over There has to be Free Space after the partition for you to be able to enlarge it. |
ok, if I create a new Reiserfs partition in hde2 -
How do I move everything over from hde3? What tools can move this? And then when I reboot the system, will anything complain about not being in hde3 any more? |
To copy everything, I would do this:
1. Create the new partition of the size I wanted on hde2 2. Create the filesystem on hde2 mkfs.reiserfs /dev/hde2 3. Mount the new filesystem mount /dev/hde2 /mnt/<new_fs> 4. Use the command `cp -aR` to copy over all files cp -aR /<old_fs> /mnt<new_fs> Will it complain? Most likely yes. To stop it from complaining, you will need to correct your bootloader(grub?) and /etc/fstab file. |
Thanks. That helped.
|
Glad I could help. Unfortunately, there appears to be very few people with partitioning knowledge on this forum.
(Either that, or they aren't very good at relaying the knowledge to others.) |
All times are GMT -5. The time now is 05:40 PM. |