In my notebook, I have a 16GB SSD and 1TB HDD. I have installed Windows 7 on the HDD, which consumes about ~250GB. Then I have installed Ubuntu 12.04.
I put /
on the SSD with ~12GB and also the swap space with the rest of ~4GB.
I put /home
on the HDD with the rest of ~750GB. Unfortunately, I have just recognized that when installing programs, they are put on the SSD and I might run out of space pretty quickly.
How can I reorganize the partitions properly?
Here the output for df -h
:
Filesystem Size Used Avail Use% Mounted on
/dev/sdb2 11G 5.8G 4.6G 56% /
udev 1.8G 12K 1.8G 1% /dev
tmpfs 724M 992K 723M 1% /run
none 5.0M 8.0K 5.0M 1% /run/lock
none 1.8G 260K 1.8G 1% /run/shm
/dev/sda3 686G 592M 650G 1% /home
fdisk -l
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00098003
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT
/dev/sda2 206848 493501558 246647355+ 7 HPFS/NTFS/exFAT
/dev/sda3 493502464 1953523711 730010624 83 Linux
Disk /dev/sdb: 16.0 GB, 16013942784 bytes
255 heads, 63 sectors/track, 1946 cylinders, total 31277232 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x38b890f8
Device Boot Start End Blocks Id System
/dev/sdb1 2048 7813119 3905536 82 Linux swap / Solaris
/dev/sdb2 7813120 31275007 11730944 83 Linux
Disk /dev/mapper/cryptswap1: 3999 MB, 3999268864 bytes
255 heads, 63 sectors/track, 486 cylinders, total 7811072 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x376be72b
Disk /dev/mapper/cryptswap1 doesn't contain a valid partition table
Please, don't do anything until someone else reviews it. I could miss something.
As
/home
is already configured, move/usr/share
Resize the partition you like to get space from, apply
If that partition is so big, try removing space from the end. So gparted will not shift the whole partition.
Copy share folder.
cp -a
to preserve all (permissions, ownership, links..)Replace
<ubuntu_part>
and<share_part>
with your partitions mounting pathsRename
/usr/share
as backupBackup
/etc/fstab
Same as
/home
add/usr/share
, (use UUID copied before) something similar to:Lines starts with # are just comments
Reboot
If it's OK, delete backups
Note:
du
on command line) can be used get size info. It is more practical to analyze an already used system so all tools needed installed. So space distribution depends on user behavior, some install much -doc's, -dev's, wine programs in/home/user/.wine
, ...