Page 1 of 1
the data in /home can not be preserved
Posted: Wed Jul 17, 2019 7:15 am
by ychaouche
Hello !
Mx linux 18.3. When running the live CD, run the installer, choose preserve data in /home, click next, eat this error :
https://i.imgur.com/CaAB5AL.png
my /home is not encrypted.
Help ?
mod note: image changed to link, please mind remote image sizes: viewtopic.php?f=133&t=48374
Re: the data in /home can not be preserved
Posted: Wed Jul 17, 2019 8:06 am
by dolphin_oracle
please post the /var/log/minstall.log.
Re: the data in /home can not be preserved
Posted: Wed Jul 17, 2019 8:26 am
by asqwerth
Is your pre-existing /home under another user name?
I've no idea if that makes a difference but I'm asking.
Re: the data in /home can not be preserved
Posted: Wed Jul 17, 2019 8:27 am
by dolphin_oracle
asqwerth wrote: Wed Jul 17, 2019 8:26 am
Is your pre-existing /home under another user name?
I've no idea if that makes a difference but I'm asking.
It shouldn't make a difference. at this stage in the installer we are only looking for the partition. the user hasn't even been defined yet.
Re: the data in /home can not be preserved
Posted: Thu Jul 18, 2019 9:43 am
by ychaouche
Thanks @dolphine_oracle ! So I think the problem is that I chose to install MX Linux over a partition that has already been hosting another distribution with a
btrfs filesystem. This means that at the top of the partition there is a
"@" folder before the slash
"/" folder :
Code: Select all
$ sudo mount /dev/sda9 /mnt/antiX/ -o ro
demo@mx1:~
$ ls /mnt/antiX/@/
bin/ home/ lib64/ proc/ sys/ vmlinuz.old
boot/ initrd.img libx32/ root/ tmp/
dev/ initrd.img.old media/ run/ usr/
etc/ lib/ mnt/ sbin/ var/
fstab lib32/ opt/ srv/ vmlinuz
demo@mx1:~
When the installer wants to mount the
/home partition it tries to put it in
/mnt/antiX/home, but that directory doesn't exist, it should be mounted in
/mnt/antiX/@/home/, so the mount exits with error code 32, as shown in the logs :
Code: Select all
2019-07-18 09:16:25.383 DBG default: "/bin/mount /dev/sda9 /mnt/antiX -o ro"
2019-07-18 09:16:26.075 DBG default: exit code: 0
2019-07-18 09:16:26.075 DBG default: +++ bool MInstall::mountPartition(QString, QString, QString) +++
2019-07-18 09:16:26.079 DBG default: "/bin/mount /dev/sda6 /mnt/antiX/home -o ro"
2019-07-18 09:16:26.087 DBG default: exit code: 32
I don't really know if this can be fixed ?
Re: the data in /home can not be preserved
Posted: Thu Jul 18, 2019 9:53 am
by dolphin_oracle
probably not right away.
Here's the work around for you. You could just install with /home to the root directory, then add your home folder afterwards via fstab.
Re: the data in /home can not be preserved
Posted: Thu Jul 18, 2019 9:55 am
by ychaouche
dolphin_oracle wrote: Thu Jul 18, 2019 9:53 am
probably not right away.
Here's the work around for you. You could just install with /home to the root directory, then add your home folder afterwards via fstab.
As always, thanks for the tip :) (and quick follow up)