• How to add another /home partition?


    Hi all!

    I need to add another /home partition, since i can’t expand the space from the one i’m using. So is it possible to add another partition and make all /home appear as 1?
    How can i do that? (i already have the partition waiting for this)
    Thanks!

  • @fernandomaroto

    Either
    A:, create a new user, or
    B:, create your new partition. Call it say, “/data” as an example. Create documents, movies, pictures, etc. subdirectories in it. Then create symlinks (symbolic links) to those directories to the corresponding dirs under your original /home.

    Regards

  • @fernandomaroto said in How to add another /home partition?:

    since i can’t expand the space from the one i’m using

    why can`t you expand the one you are using?
    I have expanded my partitions many times using gparted from a live disk.
    ALWAYS after making a BACKUP of my system and having equivalent to partition size time to spend.

  • What is your partition layout ? sudo fdisk -l (this way we can give advice with more knowledge).

    Are you using LVM?

  • @linuxited it’s because i create a small extended partition and i don’t want to delete it to reinstall debian and Antergos.

    @karasu here it is:

    Disco /dev/sda: 931,5 GiB, 1000204886016 bytes, 1953525168 setores
    Unidades: setor de 1 * 512 = 512 bytes
    Tamanho de setor (lógico/físico): 512 bytes / 4096 bytes
    Tamanho E/S (mínimo/ótimo): 4096 bytes / 4096 bytes
    Tipo de rótulo do disco: dos
    Identificador do disco: 0x89f251ef
    
    Dispositivo Inicializar     Início        Fim   Setores Tamanho Id Tipo
    /dev/sda1                     2048    1026047   1024000    500M  7 HPFS/NTFS/exFAT
    /dev/sda2                  1026048  820226047 819200000  390,6G  7 HPFS/NTFS/exFAT
    /dev/sda3                820228094 1498207100 677979007  323,3G  5 Estendida
    /dev/sda4               1498208256 1953523711 455315456  217,1G 83 Linux
    /dev/sda5                820228096  832516095  12288000    5,9G 82 Linux swap / Solaris
    /dev/sda6   *            832518144  955398143 122880000   58,6G 83 Linux
    /dev/sda7                955400192 1262600191 307200000  146,5G 83 Linux
    /dev/sda8               1262602240 1293322239  30720000   14,7G 83 Linux
    /dev/sda9               1293324288 1498207100 204882813   97,7G 83 Linux
    

    PS: i want to add sda4 as /home
    i use:
    sda5 as swap
    sda6 Antergos /
    sda7 Antergos /home

  • To be honest, I’d backup what I need and repartition again…
    If that’s not an option, after doing a backup, you can:
    Install LVM and make a volume with both partitions
    Or use btrfs to make a Raid0 with both partitions

    Cheers!

  • In this case, just use sda4 for additional data would be the easiest. Create a data directory there and symlink to it. https://bbs.archlinux.org/viewtopic.php?id=42284

    No need to do anything drastic.

    Regards

  • Thanks @karasu and @Ken-Miller127.
    I’ll try to symlink (i need to first learn about it) if don’t work i can try to delete Debian in extended partitions and install it at sda4 and then expand the Antergos partition.
    If none work i can adjust the partitions and reinstall as @karasu suggested.
    Cheers!

  • Just to add a “solution”:
    i made a backup with clonezila and deleted the partitions i wanted and create a bigger extended partition; then restored the backup and expanded the partion from /home.
    I just noticed some problem with clonezilla, it detected my external hd as sda and the real hd as sdb, and back up like sdb. I had to edit fstab and Antergos is not detected when using sudo grub-mkconfig -o /boot/grub/grub.cfg just my win 10 (sda).
    Anyway Antergos is booting.
    Any idea how to make Antergos become sda again?
    Cheers.

    [sudo] senha para fernando: Generating grub configuration file ... Tema encontrado: /boot/grub/themes/Antergos-Default/theme.txt Imagem Linux encontrada: /boot/vmlinuz-linux Imagem initrd encontrada: /boot/initramfs-linux.img Found fallback initramfs image: /boot/initramfs-linux-fallback.img Imagem Linux encontrada: /boot/vmlinuz-linux-lts Imagem initrd encontrada: /boot/initramfs-linux-lts.img Found fallback initramfs image: /boot/initramfs-linux-lts-fallback.img Encontrado Windows 10 (loader) em /dev/sda1 concluído

partition41 Posts 9Views 1632
Log in to reply
Bloom Email Optin Plugin

Looks like your connection to Antergos Community Forum was lost, please wait while we try to reconnect.