Диск /dev/sda: 500.1 Гб, 500107862016 байт 255 головок, 63 секторов/треков, 60801 цилиндров, всего 976773168 секторов Units = секторы of 1 * 512 = 512 bytes Размер сектора (логического/физического): 512 байт / 512 байт I/O size (minimum/optimal): 512 bytes / 512 bytes Идентификатор диска: 0x57423fe9 Устр-во Загр Начало Конец Блоки Id Система /dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT /dev/sda2 206848 84019199 41906176 7 HPFS/NTFS/exFAT /dev/sda3 84020011 976771071 446375530+ 5 Расширенный /dev/sda5 84020013 889326269 402653128+ 7 HPFS/NTFS/exFAT /dev/sda6 889326333 940343295 25508481+ 7 HPFS/NTFS/exFAT /dev/sda7 940345344 976771071 18212864 83 Linux 

Is it possible to delete sda6 to further merge it with sda7 (without losing data on sda7)?

When I “go in” to gparted , he writes that it is necessary to unmount all partitions that go after 6, and my sda7 is root.

  • partition numbering does not say anything about the order of their location on the disk. please attach sudo fdisk -l /dev/sda to the question. You can correct the issue by clicking edit . - aleksandr barakin
  • You can, from a flash drive, but it will be very long, because will move all data from the root to the beginning of the new section. In general, the scheme is not very good in speed when the main disk structure is created by Windows. By the way, when you try to change something with the standard means of windows, all linux partitions (!) Will be killed. - leks
  • > leks By the way, when you try to change something with the standard means of windows, all linux partitions (!) will be killed. that is, by standard means? even if I create a gpart flash drive and boot from it? at the expense of the structure, yes, it's just not always that we have a choice - warnabas
  • Regular- is "disk management" or whatever they have in the windows. Live flash drive is any convenient linux distra image. - leks
  • Yes, when restoring Windows from a pre-installed image, with reformatting the C drive, all of its partitions may also not ... (deprive the file system). - leks

1 answer 1

yes, this is gparted offers you: when moving a file system written inside a partition to another location, the file system must be unmounted.

boot from any live / rescue media that has the gparted program, and move the information as required.


recommendation for the future: use lvm features .

in this case, you could live, without rebooting and live / rescue media:

  1. change (only for your convenience) the “type” of the sda6 partition to 8e (linux lvm) - with the help of fdisk , *parted or any similar tool.
  2. initialize this partition as a physical volume using pvcreate .
  3. Add this section to your volume group ( volume group ) with vgextend .
  4. increase logical volume with lvextend .
  5. increase the size of the ext file system using resize2fs .