Dual-system Ubuntu expansion

When I installed the system before, I only allocated 90G to Ubuntu, and found that it was not enough, so I expanded it today and recorded it. The specific operations are as follows:

1. Window creates a new simple volume

First, compress the size of the volume that needs to be mounted in Windows, here I named it expand (whatever you want), then reboot into the Ubuntu system, in Terminator , enter df -h, you can get

write picture description here

Among them, /dev/sda7 is my new volume, with a total of 199 G, but it is mounted in /media/hansry/expand, and the file system format is still the format file of windows, it should be NTFS, and needs to be converted to ext4 to be used by Ubuntu.

2. Mount expand##

  1. Unmount : First you need sudo umout /dev/sda6to unmount /dev/sda7 with
  2. Format the disk as ext4:sudo mkfs -t ext4 dev/sda7
  3. Mount it to the desktop directory:sudo mount -t ext4 /dev/sda7 /home/master/data
  4. Finally, in order not to have to remount every reboot, the file can be written. enter:ls -l /dev/disk/by-uuid

write picture description here

Query to uuid as47bff1fb-6769-4b6f-b3d8-8319d0d7b94a

5. Open /etc/fstab: sudo vim /etc/fstab, add the last line as follows

write picture description here

Then restart it.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325728883&siteId=291194637