Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
resize reiserfs problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
jgaffney
Apprentice
Apprentice


Joined: 22 Dec 2004
Posts: 165

PostPosted: Tue Jan 25, 2005 2:40 am    Post subject: resize reiserfs problem Reply with quote

Well, I have searched the fourms and found many similar issue but can't seem to find a solution. I think this should be an easy one.

I am trying to resize my root partition which is reiserfs like this.

Code:

resize_reiserfs -s +7G /dev/hda4

returned message is:
/dev/hda4 only with reiserfs of 1271137 blocks size only with reiserfs of 1271137 blocks size on it. Your are trying to to expand reiserfs up to 284400 blocks size.
You probably forgot to expand your partition size.
 


Then I ran

Code:

reiserfsck --check
reiserfsck --fix-fixable
reiserfsck --rebuild-tree



All apread to run fine.

After more searching I attempted to resize the partition using cfdisk. Not quite sure how to do this but I chose "Maximize partition", I and then recieve this error.

Code:

cannot maximize this partition


I've done all of this while booting from the Gentoo live CD so none of my partitions were mounted.

Here is what my partition table looks like

Code:

                                  cfdisk 2.12i

                              Disk Drive: /dev/hda
                        Size: 80026361856 bytes, 80.0 GB
              Heads: 255   Sectors per Track: 63   Cylinders: 9729

    Name        Flags      Part Type  FS Type          [Label]        Size (MB)
 ------------------------------------------------------------------------------
    hda1        Boot        Primary   NTFS                              5765.93
    hda2        Boot        Primary   Linux ext3                          41.13
    hda3                    Primary   Linux swap / Solaris               518.20
    hda4                    Primary   Linux ReiserFS                    5206.61
                                      Unusable                         68491.91



I assume I must increase the size of the hda4 partiton before using the resize_reiserfs command. But that apears to be where I am stuck.

I've also tried parted but it doesn't have reiserfs support. So I also attempted to emerge the need tools to do so but they are masked.

Thank you.
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Tue Jan 25, 2005 3:03 am    Post subject: Reply with quote

Can you post the output of
Code:
# fdisk -l

I want to see the cylinder numbers because I am guessing that your empty space is not located next to hda4. This means hda4 cannot be made bigger without also moving another partition.
Back to top
View user's profile Send private message
IamtheOne
Apprentice
Apprentice


Joined: 27 Sep 2002
Posts: 158
Location: Iowa

PostPosted: Tue Jan 25, 2005 3:25 am    Post subject: Reply with quote

I think if you run resize_reiserfs without specifying the size it will automatically expand it to fill the entire partition...

That is assuming you made the partition larger ;)
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Tue Jan 25, 2005 12:17 pm    Post subject: Reply with quote

Moved from IG
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
jgaffney
Apprentice
Apprentice


Joined: 22 Dec 2004
Posts: 165

PostPosted: Tue Jan 25, 2005 1:33 pm    Post subject: Reply with quote

Code:

bash-2.05b# fdisk -l

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1         701     5630751    7  HPFS/NTFS
/dev/hda2   *         702         706       40162+  83  Linux
/dev/hda3             707         769      506047+  82  Linux swap / Solaris
/dev/hda4             770        1402     5084572+  83  Linux
bash-2.05b#



I haven't made the partition larger, I guess that's my problem.
I'm just not quite sure how to make my partition larger?
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Tue Jan 25, 2005 2:28 pm    Post subject: Reply with quote

I think that you can use fdisk or parted to do so.... beware: it's dangerous.

Your problem with unusable space is determined by having 4 primary partitions, which is the maximum number of partitions that you can have. You should change the last primary partition to an extended disk, and them allocate logical disks on it.
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
jgaffney
Apprentice
Apprentice


Joined: 22 Dec 2004
Posts: 165

PostPosted: Tue Jan 25, 2005 3:39 pm    Post subject: Reply with quote

I've tried parted, no reiserfs support.
I though the resize_reiserfs would be all I needed.

/dev/hda4 is the last partition on the drive so I would assume I can expand it?
Back to top
View user's profile Send private message
ronmon
Veteran
Veteran


Joined: 15 Apr 2002
Posts: 1043
Location: Key West, FL

PostPosted: Tue Jan 25, 2005 3:57 pm    Post subject: Reply with quote

resize_reiserfs will resize the file system, not the partition. There's a big difference. That's why you need to use GNU/parted, which does support reiserfs partitions as long as it it built with libreiserfs and the partition's starting point is unchanged. Check out the table and read the notes that apply.

The version that comes on the Recovery Is Possible CD works great. I've used it a few times. To get Gentoo's build of parted to work with reiserfs, you need to 'emerge progsreiserfs' (not to be confused with reiserfsprogs) before parted.
_________________
Ask Questions the Smart Way - by ESR
Back to top
View user's profile Send private message
jgaffney
Apprentice
Apprentice


Joined: 22 Dec 2004
Posts: 165

PostPosted: Tue Jan 25, 2005 4:38 pm    Post subject: Reply with quote

OK, "progsreiserfs" is masked. Being a nOOb I figure it's best not to try to override it.
I will try the "Recovery Is Possible" route.

Thank you
Back to top
View user's profile Send private message
jgaffney
Apprentice
Apprentice


Joined: 22 Dec 2004
Posts: 165

PostPosted: Wed Jan 26, 2005 9:34 pm    Post subject: Reply with quote

Using parted off the Recover Is Possible CD did the trick.

Thanx for all your help.


ps I attempted QParted off Knoppix... no luck.
Back to top
View user's profile Send private message
dave_deu
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2005
Posts: 97
Location: East Anglia, UK

PostPosted: Mon Aug 22, 2005 1:18 am    Post subject: Re: ronmon Reply with quote

Hi ronmon, I read your post above.

I would like to use Qtparted to resize a Reiserfs partition to make it smaller. I realise I require libreiserfs which on Gentoo comes as part of progsreiserfs which is masked by ~x86.

My question is: if progsreiserfs is masked as unstable have you tried using it and is it worth risking using Qtparted with unstable progsreiserfs to resize my partition? I really don't want to screw up my hard drive! thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum