合并两个ReiserFS分区很简单。
首先使用fdisk,调整分区表。之后在新分区上运行resize_reiserfs就可以了。
不过要先备份一下后一个分区的数据(如:合并Part 1、2,合并后Part 2数据就会丢失)。
详细如下:
$ fdisk /dev/sdb
The number of cylinders for this disk is set to 14593.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
可以列出分区。把要合并的两个连续的分区(如:Part1: 5G、Part2: 5G)删掉,并重建一个新的分区(Part1: 10G)
之后
Command (m for help): w
写入分区表。
运行
resize_reiserfs /dev/sdb1
resize新的分区,恢复数据就可以了。
虽然后一个分区的数据需要备份,不过我们至少不需要备份两个分区的数据。
当你的备份盘只够备份一个分区的数据的时候,此方法非常有用。
Viewed 9194 times by 2163 viewers