I've got free unpartitioned space which I'd like to use to expand my root partition. The server runs under Debian Squeeze and I'm administrating it with no GUI. How can I do that?
Do I need the free unpartitioned space to be right after /dev/sda1 ?
Here is my list of partitions (as you can see the total disk space is bigger than the total size of my partitions, so I have unpartitioned space):
admin@ks387290:/etc/mysql$ sudo fdisk -l
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 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: 0x0001cee1
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1306 10485760+ 83 Linux
/dev/sda2 1306 53523 419435689 83 Linux
/dev/sda3 121536 121601 525536 82 Linux swap / Solaris
/dev/sda4 53524 121535 546306390 5 Extended
/dev/sda5 53524 121406 545270166 83 Linux
Partition table entries are not in disk order
admin@ks387290:/etc/mysql$ df -h
Sys. de fichiers Taille Uti. Disp. Uti% Monté sur
/dev/sda1 10G 3,8G 5,7G 40% /
tmpfs 994M 0 994M 0% /lib/init/rw
udev 10M 152K 9,9M 2% /dev
tmpfs 994M 0 994M 0% /dev/shm
/dev/sda2 397G 233M 377G 1% /home
/dev/sda5 512G 3,0G 483G 1% /var
answers
if you actually ask aquestion
.