You are not logged in.
Pages: 1
Hello,
I’m starting with Q4OS and my knowledge of linux commands are old.
In addition, I am French but with online translators this is no longer a real problem.
So, I installed Q4OS on an old HP and it works.
My computer contains a second disk and I would like to move my/home to that disk.
Here is my system :
nikopol@nikopol-O4OS:/home$ sudo fdisk -l
Disque /dev/sdb : 298,09 GiB, 320072933376 octets, 625142448 secteurs
Modèle de disque : ST3320820AS
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Type d'étiquette de disque : dos
Identifiant de disque : 0xa0361da4
Périphérique Amorçage Début Fin Secteurs Taille Id Type
/dev/sdb2 2048 625141759 625139712 298,1G 83 Linux
Disque /dev/sda : 232,89 GiB, 250059350016 octets, 488397168 secteurs
Modèle de disque : WDC WD2500JS-60N
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Type d'étiquette de disque : gpt
Identifiant de disque : 836643AB-A4B6-4FA7-B677-2DDE35860A73
Périphérique Début Fin Secteurs Taille Type
/dev/sda1 2048 2099199 2097152 1G Système EFI
/dev/sda2 2099200 245245632 243146433 115,9G Système EFI
/dev/sda3 245245634 488392064 243146431 115,9G Système EFI
the following command : sudo mkfs-t ext4/dev/sdb2
give me an error because mkfs is not available
What can y do ?
Offline
For formatting disks I use gnome-disks. Once formatted with an ext4 file system, you can copy your /home to the new drive.
After that, you should edit (as superuser) the file /etc/fstab, duplicate the line that mounts in /, and edit it to change '/' by '/home' and change the UUID to that of the new drive (gnome-disks gives your that information).
Rename the /home directory of the first drive to /home.old (just in case something goes wrong) and restart the computer.
When you are happy with the results, you can delete the /home.old directory.
Offline
Tanks jagp
here is my fstab I had mofify, I juste have to check how it works
#sda3
UUID=9fb279a9-4bbc-4223-8fe7-e56b50b99c28 / ext4 defaults,noatime 0 1
#Ajout GG
#sdb2
UUID=a17d7627-d4aa-46c6-9975-f6ec5f15f33d /home ext4 defaults,noatime 0 1
#sda2
UUID=7ff08deb-036a-4614-a12e-a9a3d50b5dd9 / ext4 defaults,noatime 0 1
Offline
oupsss ... somthing goes wrong I need to go back with the previous fstab
Offline
Hi zorgol, you cannot mount two partitions on /
Last edited by jagp (2024-09-13 17:16)
Offline
Pages: 1