• two identical partitions...


    Hi

    [[email protected] ~]$ lsblk -f
    NAME        FSTYPE LABEL      UUID                                 MOUNTPOINT
    sda                                                                
    ├─sda1      ext4   essai      60853fdb-7d89-4a04-9e5d-8851634e603c /home
    ├─sda2      ntfs              4A670D952AB81E37                     
    ├─sda3      ext4   linux save b7cf7bdf-8f7f-437c-8455-440a57639e05 
    └─sda4      ext4              c3b02e3c-28f0-4944-99d3-48eef3b3b347 /virtuel2
    nvme0n1                                                            
    ├─nvme0n1p1 vfat   SYSTEM_DRV 9C98-D061                            /boot/efi
    ├─nvme0n1p2 swap   swap       c2360e3e-b47a-4870-b995-72cbeae423dd [SWAP]
    ├─nvme0n1p3 ext4   root       43d30761-6bf4-4ec5-8c18-75ee98ccc30e /
    ├─nvme0n1p4 ext4   essai      60853fdb-7d89-4a04-9e5d-8851634e603c 
    └─nvme0n1p5 ext4   virtuel    581224dc-984b-4c7c-8a13-f6f753cb655d /virtuel
    [[email protected] ~]$ 
    
    

    As you can see, I have a small SSD (lower part) and a big HDD. After using gparted to copy a partition, I have now two partitions with the same uuid… Happily only one of these two is mounted as /home.

    For the time being, everything is working well, except that I use /dev/sda1 for /home instead of /dev/nvme01p4.

    I would like to revert to the initial state, that is using nvme01p4 as /home. I tried to change the uuid using tune2fs -U but it failed. Any advice appreciated.

  • How did you run tune2fs, and what was the error you got?

  • sudo tune2fs /dev/sdxN -U 0acafbe2-e168-44e1-b0a6-8ea91c6fc578
    

    ?

  • [[email protected] ~]$ sudo tune2fs /dev/nvme01p4 -U random
    [sudo] Mot de passe de roger : 
    tune2fs 1.44.2 (14-May-2018)
    tune2fs: Aucun fichier ou dossier de ce type lors de la tentative d'ouverture de /dev/nvme01p4
    Impossible de trouver un superbloc de système de fichiers valide.
    [[email protected] ~]$ 
    
    

    I used this command or another one with an uuid generated by uuidgen

  • If google translated that french correctly it looks like tune2fs complains about not finding a valid superblock? I’ve never seen this error myself before.

    If you have a graphical desktop available, you could always try to change the UUID in GParted and see if that works.

  • @roger64 said in two identical partitions...:

    Aucun fichier ou dossier de ce type lors de la tentative d’ouverture de /dev/nvme01p4
    Impossible de trouver un superbloc de système de fichiers valide.

    No such file or folder when attempting to open /dev/nvme01p4 Could not find a valid file system superblock.

  • @roger64 said in two identical partitions...:

    After using gparted to copy a partition

    i was not aware that gparted can do that…

  • @searedvandal said in two identical partitions...:

    If you have a graphical desktop available, you could always try to change the UUID in GParted and see if that works.

    [[email protected] ~]$ lsblk -f
    NAME        FSTYPE LABEL      UUID                                 MOUNTPOINT
    sda                                                                
    ├─sda1      ext4   essai      60853fdb-7d89-4a04-9e5d-8851634e603c /home
    ├─sda2      ntfs              4A670D952AB81E37                     
    ├─sda3      ext4   linux save b7cf7bdf-8f7f-437c-8455-440a57639e05 
    └─sda4      ext4              c3b02e3c-28f0-4944-99d3-48eef3b3b347 /virtuel2
    nvme0n1                                                            
    ├─nvme0n1p1 vfat   SYSTEM_DRV 9C98-D061                            /boot/efi
    ├─nvme0n1p2 swap   swap       c2360e3e-b47a-4870-b995-72cbeae423dd [SWAP]
    ├─nvme0n1p3 ext4   root       43d30761-6bf4-4ec5-8c18-75ee98ccc30e /
    ├─nvme0n1p4 ext4   essai      1b3828d7-6c1d-4924-9fa9-3f4d92b1d591 
    └─nvme0n1p5 ext4   virtuel    581224dc-984b-4c7c-8a13-f6f753cb655d /virtuel
    [[email protected] ~]$ 
    
    

    Yes. The uuid has been changed very easily with gparted. Thank you

    Now I would like to swich the mount point for /home from sda1 (mounted) to nvma0n1p4 (unmounted). I will also probably have to update grub.

  • Glad you got it sorted!

  • @roger64 Change the entry to correct uuid inside /etc/fstab like this

    UUID=1b3828d7-6c1d-4924-9fa9-3f4d92b1d591 /home ext4 defaults,noatime 0 0
    
  • and no need to regenerate grub.cfg in this case as it only needs / (rootdevice) and if you have it resume device (swap)

  • I just changed the /etc/fstab file as recommended and rebooted. All is fine, and now /home is mounted on the SSD partition.

    Thank you for your help which gives the needed confidence. ☺

    I mark this solved.

partitions11 identical1 Posts 12Views 354
Bloom Email Optin Plugin

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