You are not logged in.

#1 2010-06-28 18:45:41

shadyabhi
Member
From: Bangalore
Registered: 2010-05-23
Posts: 262
Website

[SOLVED] Reinstall Arch due to shortage of disk space

I am falling short of disk space on my Arch Installed partition..

[shadyabhi@ArchLinux ~]$ sudo fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x30bf30be

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        3039    24410736   83  Linux
/dev/sda2            3040        3163      996030   82  Linux swap / Solaris
/dev/sda3            3164       60801   462977235    5  Extended
/dev/sda5            3164       23567   163895098+   7  HPFS/NTFS
/dev/sda6           23568       43971   163895098+   7  HPFS/NTFS
/dev/sda7           43972       60801   135186943+   7  HPFS/NTFS
[shadyabhi@ArchLinux ~]$

I want to increase my disk space but the problem is that there is no unallocated disk space after sda2 and rest all is extended partition.
Also, is there a way, I can backup my full OS and restore it as it is?

Whats the smart way of doing it?

Last edited by shadyabhi (2010-06-29 12:52:16)

Offline

#2 2010-06-28 19:10:23

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED] Reinstall Arch due to shortage of disk space

It will be tedious, bu you can move all your partitions around and get some space. Use GParted Live. Better a graphical one than CLI, so you can see what you are doing.

First shrink the size of sda7, that will give you some unallocated space at the very end. Then move sda7 to the end, then move sda6 to the end, same with sda5.   -- OR you can simply shrink sda5 from the front.

Then reduce the sda3 partition (Extended one) -- This iis something that I don't rbr 100%, but I think you can reduce an extended partition as well. as long as you have used ext3/4 for all partitions. JFS and XFS, AFAIK, cannot be decreased (or increased -- one or the other) smile

Again move the swap partition to the end. Now you will have sda1 | unallocated | sda2 | sda3.

Merge sda1 and the unallocated, by extending sda1. And there you have it

Last edited by Inxsible (2010-06-28 19:11:20)


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2010-06-29 07:40:22

shadyabhi
Member
From: Bangalore
Registered: 2010-05-23
Posts: 262
Website

Re: [SOLVED] Reinstall Arch due to shortage of disk space

@Inxsible

Thanks. That went without any data loss. Used Gparted...

Offline

#4 2010-06-29 12:46:00

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED] Reinstall Arch due to shortage of disk space

shadyabhi wrote:

@Inxsible

Thanks. That went without any data loss. Used Gparted...

Congrats ! Please mark the thread solved, by editing your first post in the thread and adding [SOLVED] in your subject line.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB