Find the answer to your Linux question:
Results 1 to 7 of 7
my partions are this name dir strat end(blocks) size dev/sda1 /boot 10 121 100m dev/sda2 / 122 3211 3000m dev/sda3 /home 3211 5245 2000m dev/sda4 extended 5245 20345 15000m dev/sda5 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2010
    Posts
    9

    resize /home


    my partions are this

    name dir strat end(blocks) size

    dev/sda1 /boot 10 121 100m


    dev/sda2 / 122 3211 3000m

    dev/sda3 /home 3211 5245 2000m

    dev/sda4 extended 5245 20345 15000m

    dev/sda5 /var 5245 82435 3000m

    dev/sda6 /usr 8245 13567 5000m




    how to resize my /home partition to 3gb without no loss of content?

  2. #2
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Posts
    1,272
    Hello,

    Can you please post the outputs of

    Code:
    # fdisk -l
    # df -h
    here? Thanks
    nujinini
    Linux User #489667

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    It is not easy to resize /home partition because there isn't any free space before or after it.
    Is there any unpartitioned disk space in your Hard disk?
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. #4
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Quote Originally Posted by tgs728 View Post
    how to resize my /home partition to 3gb without no loss of content?
    You must have free (unallocated) space next to the partition that you want to expand, so you'll need to either shrink a partition that is currently residing next to /home, or move some partitions around so that you have unallocated space next to /home in order to expand it. The Parted Magic LiveCD can handle such tasks easily if you want to try it.

    There is always a chance for data loss when you manipulate partitions, so be sure to have any important data backed up.

    Hope it all goes well.
    oz

  5. #5
    Just Joined!
    Join Date
    Jul 2010
    Posts
    9
    yes i have it more 10 gb

  6. #6
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Quote Originally Posted by tgs728 View Post
    yes i have it more 10 gb
    If the 10 GB is not residing right next to the partition that you want to expand, you'll have to move your partitions around on the disk so that it is adjacent to the partition to be expanded. Again, Parted Magic can easily handle these chores, and having backups on hand is a great idea whenever you manipulate partitions, and is highly advised. I'd personally recommend using the latest version of Parted Magic because version 4.11 has a Gparted bug that could cause you some grief.
    oz

  7. #7
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Post the exact output of fdisk -l command here.
    Code:
    su -
    fdisk -l
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •