From: john connolly on
Hi,
In slackware 13 I have resized a reiserfs using the command
resize_reiserfs. That worked ok but I can't figure out how to
resize the partition. Partimage will only copy the whole partition
to one of a similar or larger size and parted won't resize a reiserfs.
I cannot find a copy of libreiserfs, which is supposed to have the anser
to this problem.
Any help would be appreciated, jwc
From: John F. Morse on
john connolly wrote:
> Hi,
> In slackware 13 I have resized a reiserfs using the command
> resize_reiserfs. That worked ok but I can't figure out how to
> resize the partition. Partimage will only copy the whole partition
> to one of a similar or larger size and parted won't resize a reiserfs.
> I cannot find a copy of libreiserfs, which is supposed to have the anser
> to this problem.
> Any help would be appreciated, jwc
>

I'm sure you could use something like fdisk or cfdisk within Slackware.

Then there is GParted, which may also be in Slackware. Try:

apropos partition

You could download and burn the GParted LiveCD. It makes a great rescue
disk as well:

http://distrowatch.com/table.php?distribution=gparted

I used it to slice up a large hard drive to hold several distros,
including Slackware 13.

There is also PartedMagic:

http://distrowatch.com/table.php?distribution=partedmagic


--
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
From: Grant on
On Tue, 29 Dec 2009 15:01:58 -0600, "John F. Morse" <john(a)example.invalid> wrote:

>john connolly wrote:
>> Hi,
>> In slackware 13 I have resized a reiserfs using the command
>> resize_reiserfs. That worked ok but I can't figure out how to
>> resize the partition. Partimage will only copy the whole partition
>> to one of a similar or larger size and parted won't resize a reiserfs.
>> I cannot find a copy of libreiserfs, which is supposed to have the anser
>> to this problem.
>> Any help would be appreciated, jwc
>>
>
>I'm sure you could use something like fdisk or cfdisk within Slackware.

First, you resize the filesystem to *smaller* than your wanted final
size. Try ~90% or 95% of wanted size. This allows for different
program's partition size calculation slop: GiB vs GB, cylinder
rounding and so on.

Second, you reduce the partition size with fdisk, *fdisk to wanted
partition size. Be very careful with other partitions, I use pencil
and paper or several terminals to track before and after partition
manipulation.

Using fdisk: If you delete partition entries from the end down to
target and then rebuild the table, you can play with intermediate
partition sizes safely without affecting other partitions. If you
change random partitions they may get reordered in the partition
table or logical list, not a good thing. Remember no damage is
done until you hit the 'w' key. Use 'q' and retry if doubtful.

Thirdly you expand filesystem to fill your resized partition.
>
>Then there is GParted, which may also be in Slackware. Try:
>
>apropos partition
>
>You could download and burn the GParted LiveCD. It makes a great rescue
>disk as well:
>
>http://distrowatch.com/table.php?distribution=gparted
>
>I used it to slice up a large hard drive to hold several distros,
>including Slackware 13.
>
>There is also PartedMagic:
>
>http://distrowatch.com/table.php?distribution=partedmagic

Grant.
--
http://bugs.id.au
From: john connolly on
On Wed, 30 Dec 2009 08:25:46 +1100, Grant wrote:

> On Tue, 29 Dec 2009 15:01:58 -0600, "John F. Morse"
> <john(a)example.invalid> wrote:
>
>>john connolly wrote:
>>> Hi,
>>> In slackware 13 I have resized a reiserfs using the command
>>> resize_reiserfs. That worked ok but I can't figure out how to resize
>>> the partition. Partimage will only copy the whole partition to one of
>>> a similar or larger size and parted won't resize a reiserfs. I cannot
>>> find a copy of libreiserfs, which is supposed to have the anser to
>>> this problem.
>>> Any help would be appreciated, jwc
>>>
>>>
>>I'm sure you could use something like fdisk or cfdisk within Slackware.
>
> First, you resize the filesystem to *smaller* than your wanted final
> size. Try ~90% or 95% of wanted size. This allows for different
> program's partition size calculation slop: GiB vs GB, cylinder rounding
> and so on.
>
> Second, you reduce the partition size with fdisk, *fdisk to wanted
> partition size. Be very careful with other partitions, I use pencil and
> paper or several terminals to track before and after partition
> manipulation.
>
> Using fdisk: If you delete partition entries from the end down to
> target and then rebuild the table, you can play with intermediate
> partition sizes safely without affecting other partitions. If you
> change random partitions they may get reordered in the partition table
> or logical list, not a good thing. Remember no damage is done until
> you hit the 'w' key. Use 'q' and retry if doubtful.
>
> Thirdly you expand filesystem to fill your resized partition.
>>
>>Then there is GParted, which may also be in Slackware. Try:
>>
>>apropos partition
>>
>>You could download and burn the GParted LiveCD. It makes a great rescue
>>disk as well:
>>
>>http://distrowatch.com/table.php?distribution=gparted
>>
>>I used it to slice up a large hard drive to hold several distros,
>>including Slackware 13.
>>
>>There is also PartedMagic:
>>
>>http://distrowatch.com/table.php?distribution=partedmagic
>
> Grant.

Thanks for the replies. The version of parted that I have (built w/o
libreiserfs) will not resize a reiserfs partition. I have downsized
the reiserfs itself but I'm stuck reinstalling it in a smaller
partition. I may have to try dd. What follows is my problem:
I can use partimage to store the file system in a set of images but when
I do that the images contain info about the size of the partition
that the file system came from. (As I said above I have not been
able to figure out how to resize it since it's a reiserfs.)
Even if I repartition after using partimage I can't reinstall into
a smaller partition because partimage won't let me do it.
From: Helmut Hullen on
Hallo, john,

Du meintest am 29.12.09:

> In slackware 13 I have resized a reiserfs using the command
> resize_reiserfs. That worked ok but I can't figure out how to
> resize the partition.

You always need a backup.
And when you have a backup you can partition the old harddisk from
scratch and then restore the backup. That's a safe way.

Viele Gruesse
Helmut

"Ubuntu" - an African word, meaning "Slackware is too hard for me".