Загрузка...

How To Move Home Directory To New Partition Or Disk In Linux

If you are new to Linux or someone who plans to ditch windows and switch to Linux, then this video will be of great use to you. This step by step video will walk you through the procedure to move home directory to new partition or drive in Linux.
Commands:
lsblk
sudo fdisk -l
df -h /home
sudo fdisk /dev/sdb
lsblk /dev/sdb
sudo mkfs.ext4 /dev/sdb1
sudo mkdir /mnt/home_move/
sudo mount /dev/sdb1 /mnt/home_move/
rsync -av /home/* /mnt/home_move/
sudo mv /home /home_old
ls -l /home
sudo mkdir /home
sudo umount /dev/sdb1
sudo mount /dev/sdb1 /home
sudo cp /etc/fstab /etc/fstab_old
/dev/sdb1 /home ext4 defaults 0 0
Chapters:
0:00 Intro
0:19 Get Partition Information
1:03 Create New Partition
2:08 Format and mount the Partition
2:54 Move Home Directory To New Partition In Linux
4:44 Persistent Mount Using Fstab
5:45 End screen
What you'll learn:
1. Get Partition Information
a. How to list disk partition details
b. How to use lsblk and fdisk command
c. How To get the block device information using the lsblk command
d. How to use the fdisk command to get the block device information
e. How To check under which partition the home directory is mounted
f. How to use the df command
2. Create New Partition
a. How to create a new partition from the new drive where the home partition will be mounted
b. How to use fdisk utility to create a partition
c. How to create a new partition
d. How to write the changes to the partition table
e. How to Now verify if the new partition is created by listing the block device information with the lsblk command
3. Format and mount the Partition
a. How to format the newly created partition with the ext4 file system using mkfs command
b. How to mount new directory
4. Move Home Directory To New Partition In Linux
a. How to copy all the directory and files from the home directory to the newly created partition mounted under /mnt/home_move
b. How to use rsync command to copy the data to the new partition
c. How to move the home directory
d. How to Create a new /home directory to mount /dev/sda1
e. How to unmount a directory
f. How to successfully mount a new partition
5. Persistent Mount Using Fstab
a. How to Add entry to the fstab file so the newly created partitions will automount during system startup
b. How to backup the fstab file
---

🔥 Download Opera GX (Gamer’s Browser): https://offergate-software12.com/2-ctv4r-b1eq-cv5u-e541
🌍 Try Opera One (Multigeo): https://nefabop.com/6-11g1fd-c1hm-gv5u-j5ma
💸 Every install supports COMPUTER EVERYWHERE — thank you!

---

Song: Vexento - Now
Music provided by Vlog No Copyright Music.
Creative Commons - Attribution 3.0 Unported
Video Link: https://www.youtube.com/watch?v=kUGnWqLRa0M&t=0s

#computereverywhere #howto #home #directory #new #partition #disk #linux

Видео How To Move Home Directory To New Partition Or Disk In Linux канала Computer Everywhere
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять