N
N
noremorse_ru2022-02-16 19:04:52
linux
noremorse_ru, 2022-02-16 19:04:52

How to partition ext4 under windows from under Ubuntu 20.04?

I want to put Windows next to Linux without reinstalling Linux itself and losing data. There is a 1 TB disk and 2 partitions, under efi and the main one. what to do?)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Cheremisin, 2022-02-16
@noremorse_ru

I use the graphical gparted .
It is convenient to trim the partition with ext4fs in it. All the necessary actions are done well and automatically.
You can, of course, cut the section with pens.
0) Convert the partition to read-only
mount -o remount,ro /
1) Check the e2fsck partition
e2fsck /dev/sda1
2) Screen the file system
resize2fs /dev/sda1 300G
3) Reduce the partition

parted /dev/sda
....

4) Remount back or reboot
5) Create another partition from scratch (you can put Windows on it for example)
6) Restore the bootloader.

V
Vladimir Korotenko, 2022-02-16
@firedragon

i would download gpartedit

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question