Как добавить 232,83 ГБ нераспределенного пространства в смонтированный раздел с помощью GParted?

1740
Lazy

У меня есть следующая структура разделов:

раздел

Я хочу переместить эти 232,86 ГБ нераспределенного пространства в уже смонтированный раздел (/ dev / sda1) с помощью GParted.

Это возможно?

1

2 ответа на вопрос

1
David Foerster

Это абсолютно возможно с живым дистрибутивом и GParted!

  1. Измените размер раздела 2, чтобы включить незанятое пространство перед ним.
  2. Измените размер раздела 6, чтобы включить незанятое пространство перед ним.
  3. Примените изменения! Это, вероятно, займет много времени.
  4. Перезагружать!

К сожалению, программный, аппаратный или сбой питания во время шага 3 может привести файловую систему в несогласованное состояние. Было бы целесообразно создать резервную копию заранее!

0
jerm

It's already on /dev/sda, but I assume you mean add it to /dev/sda6 to be with the rest of your space.

Though partitions can often be extended w/o reformatting, AFAIK they can't be prepended w/o reformatting. If you were using LVM you could add that space to your volume, but unfortunately that's not the case here.

The short answer is you can't do this with gparted.

The next shortest answer is that the cleanest way to do this is to copy your data off and reformat the whole drive together.

You might be able to format the empty space with LVM, copy your current setup over to the new drive, rerun grub to load things from your new drive, boot from there, reformat your old space to LVM and attach it to your shiny new space and everything would look like one big contiguous disk... assuming you can fit your current setup into the smaller partition.

It's not exactly what you want, but the simplest solution you have is to format the empty space and them mount it where you need space. Say, for example, you have 200gigs of music and it's eating up your free space:

Format empty space into sda1. mount /dev/sda1 into /mnt/newmusic. move /home/lazy/music/* to /mnt/newmusic. unmount /mnt/newmusic. mount /dev/sda1 to /home/lazy/music.

add line for this mount to /etc/fstab to it's there when you reboot.

It won't be contiguous space, but it may be able to save you a lot of headache.

Похожие вопросы