Linux - Mount New Hard Drive

GUI: install ubuntu-desktop

working as “root” user

1
2
3
4
5
$ sudo su
$ sudo apt update && apt upgrade
$ sudo apt install ubuntu-desktop
$ sudo apt install slim
$ sudo service slim start

https://www.makeuseof.com/install-desktop-environment-gui-ubuntu-server/https://phoenixnap.com/kb/how-to-install-a-gui-on-ubuntu

Partition tool: install Gparted

1
$ sudo apt install gparted

https://linuxways.net/centos/how-to-install-gparted-on-ubuntu-20-04/

Access remote desktop: by Windows remote desktop

1
2
3
$ sudo apt install xrdp
$ sudo systemctl enable --now xrdp
$ sudo ufw allow from any to any port 3389 proto tcp

https://linuxconfig.org/ubuntu-20-04-remote-desktop-access-from-windows-10

Click Gparted and create partition table + new partition

https://linuxways.net/centos/how-to-install-gparted-on-ubuntu-20-04/

Mount new partitions

1
2
3
4
5
6
$ sudo fdisk -l
$ cd /home
$ sudo mkdir /disk1
$ sudo vim /etc/fstab
/dev/sda1 /home/disk1 ext4 defaults 0 0
$ mount /home/disk1

https://askubuntu.com/questions/125257/how-do-i-add-an-additional-hard-drive

After partition,REMOVE THE DISPLAY DEPENDENCIES, REMOTE DESKTOP AND DESKTOP


Linux - Mount New Hard Drive
http://arwenzhou.github.io/2022/11/15/Linux-mount-new-harddrive/
Author
Arwen
Posted on
November 15, 2022
Licensed under