Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Harddrive cannot expand partition
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
KevinLarson
Tux's lil' helper
Tux's lil' helper


Joined: 23 Sep 2005
Posts: 126
Location: Chaimpaign, IL

PostPosted: Tue May 20, 2008 2:09 am    Post subject: Harddrive cannot expand partition Reply with quote

I try to Maximize the 3rd partition on my harddrive with cfdisk and get the following.
Code:

                             cfdisk (util-linux-ng 2.13.1.1)

                    Disk Drive: /dev/disk/by-id/ata-ST380021A_3HV1LVAZ
                             Size: 80026361856 bytes, 80.0 GB
                   Heads: 255   Sectors per Track: 63   Cylinders: 9729

    Name          Flags       Part Type   FS Type            [Label]          Size (MB)
 ----------------------------------------------------------------------------------------
    ata-ST380021A_BootLVAZ1    Primary    Linux ext3                              98.71
    ata-ST380021A_3HV1LVAZ2    Primary    Linux swap / Solaris                   896.56
    ata-ST380021A_3HV1LVAZ3    Primary    Linux ReiserFS                       38996.06   
                               Pri/Log    Free Space                           40032.44

     [Bootable]  [ Delete ]  [  Help  ]  [Maximize]  [ Print  ]  [  Quit  ]
     [  Type  ]  [ Units  ]  [ Write  ]
                              Cannot maximize this partition
                      Toggle bootable flag of the current partition
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2977
Location: Germany

PostPosted: Tue May 20, 2008 7:09 am    Post subject: Reply with quote

You're probably doing it wrong.

man cfdisk wrote:
DOS, OS/2 and possibly other operating systems require the first sector of the first partition on the disk and all logical partitions to begin on the second head. This wastes the second through the last sector of the first track of the first head (the first sector is taken by the partition table itself). cfdisk allows you to recover these "lost" sectors with the maximize command (m).


If you can't maximize it then that's that. If you want to stretch the ReiserFS partition to also take in the remaining free space, you have to delete the partition and create a new, bigger one. However this will change the partition only, not the data on it, so the ReiserFS file system will not know about the change of the partition size. If you want to resize the file system along with it, you could try to do it using gparted (the Live CD of the project), as it can both rescale and move partitions alongside with the filesystems.
Back to top
View user's profile Send private message
KevinLarson
Tux's lil' helper
Tux's lil' helper


Joined: 23 Sep 2005
Posts: 126
Location: Chaimpaign, IL

PostPosted: Tue May 20, 2008 4:06 pm    Post subject: Reply with quote

Thanks, I'll look up gparted.
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5956

PostPosted: Tue May 20, 2008 5:10 pm    Post subject: Reply with quote

be careful with gparted, it messed up one of my harddrives... first problem was partitions being numbered out order, then it was an overlapping problem. i still can't use fdisk/cfdisk on that drive anymore... (i could blank the drive and start over, but that's too time consuming)

cheers
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
KevinLarson
Tux's lil' helper
Tux's lil' helper


Joined: 23 Sep 2005
Posts: 126
Location: Chaimpaign, IL

PostPosted: Tue May 20, 2008 5:56 pm    Post subject: Reply with quote

This is my / partition. I would prefer not to mess anything up. Do you have any suggestions?
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2977
Location: Germany

PostPosted: Tue May 20, 2008 6:07 pm    Post subject: Reply with quote

Of course, when shuffling data around, there is always a risk of it going wrong. However, it is also true that your hard disk can die at any time. So I'm just assuming that you got a backup of your data somewhere, which you could easily restore if need be. (So far I never needed it though, as gparted worked just fine for me, but I have daily backups nevertheless).
Back to top
View user's profile Send private message
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1746

PostPosted: Tue May 20, 2008 6:20 pm    Post subject: Reply with quote

Back it up, then try it :)
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