N
N
NixGuy2011-08-16 13:17:29
linux
NixGuy, 2011-08-16 13:17:29

Ubuntu » How to properly expand a hard drive partition?

Moved a complete system with user data from a 200 GB hard drive to a 2 TB hard drive using dd. After that, the system worked without problems. Output of fdisk -l: I.e. about 1.8 TB more is unallocated space. How can I extend the /dev/sda6 partition to all the free space on the disk without losing data?

Диск /dev/sda: 2000.4 ГБ, 2000398934016 байт
255 heads, 63 sectors/track, 243201 cylinders
Units = цилиндры of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000f3d6b

Устр-во Загр Начало Конец Блоки Id Система
/dev/sda1 1 3040 24413184 83 Linux
/dev/sda2 3040 24322 170945537 5 Расширенный
/dev/sda5 3040 3283 1951744 82 Linux своп / Solaris
/dev/sda6 3283 24322 168992768 83 Linux



Answer the question

In order to leave comments, you need to log in

4 answer(s)
G
Gribozavr, 2011-08-16
@NixGuy

Boot from gparted livecd and there you will understand the GUI, very simple.

C
ComputerPers, 2011-08-16
@ComputerPers

gparted is our everything

Z
zizop, 2011-08-16
@zizop

resize2fs /dev/sda6

[
[email protected]><e, 2011-08-16
@barmaley_exe

And why is it so important to expand an existing partition, and not create a new one and then mount it?
The standard system tools (palimpsest), as I understand it, do not help?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question