A maneira mais simples é usar o gparted. Fdisk não é a ferramenta preferida, parted (ou gparted) é melhor porque eles suportam os mais novos layouts de disco gpt / efi.
Em um terminal
sudo apt-get install gparted
Minha paródia de disco se parece com:
df -h
dá:
Filesystem Size Used Avail Use% Mounted on
/dev/md1 19G 18G 0 100% /
none 4,0K 0 4,0K 0% /sys/fs/cgroup
udev 16G 4,0K 16G 1% /dev
tmpfs 3,2G 636K 3,2G 1% /run
none 5,0M 0 5,0M 0% /run/lock
none 16G 156K 16G 1% /run/shm
none 100M 0 100M 0% /run/user
/dev/md0 268M 36M 214M 15% /boot
/dev/md2 1,7T 68M 1,7T 1% /data
E fdisk -l
dá
Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 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: 0x000e19c3
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 585727 291840 fd Linux raid autodetect
/dev/sda2 585728 39647231 19530752 fd Linux raid autodetect
/dev/sda3 39647232 3725023231 1842688000 fd Linux raid autodetect
/dev/sda4 3725023232 3907028991 91002880 82 Linux swap /Solaris
Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 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: 0x00026078
Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 585727 291840 fd Linux raid autodetect
/dev/sdb2 585728 39647231 19530752 fd Linux raid autodetect
/dev/sdb3 39647232 3725023231 1842688000 fd Linux raid autodetect
/dev/sdb4 3725023232 3907028991 91002880 82 Linux swap / Solaris
Disk /dev/md0: 298 MB, 298516480 bytes
2 heads, 4 sectors/track, 72880 cylinders, total 583040 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: 0x00000000
Disk /dev/md0 doesn't contain a valid partition table
Disk /dev/md2: 1886.8 GB, 1886778097664 bytes
2 heads, 4 sectors/track, 460639184 cylinders, total 3685113472 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: 0x00000000
Disk /dev/md2 doesn't contain a valid partition table
Disk /dev/md1: 20.0 GB, 19982581760 bytes
2 heads, 4 sectors/track, 4878560 cylinders, total 39028480 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: 0x00000000
Disk /dev/md1 doesn't contain a valid partition table
Estou procurando a maneira mais simples de mover 100 GB de /dev/md2
para /dev/md1
, que é totalmente usado.
A maneira mais simples é usar o gparted. Fdisk não é a ferramenta preferida, parted (ou gparted) é melhor porque eles suportam os mais novos layouts de disco gpt / efi.
Em um terminal
sudo apt-get install gparted