You are not logged in.
Pages: 1
Hello all, this is only me second post here so if I am doing anything wrong please let me know.
I recently got a new laptop so I have been trying to migrate my old arch install (which was a dualboot w/ windows) to my new machine which I plan to have only running arch. This is day 7 of me trying to do this, I have tried following the wiki guide for "Migrate installation to new hardware" and have attempted both the top to bottom and bottom to top approaches. When doing the bottom to top approach I manage to get arch installed but cannot get any of my old packages installed due to some "not found" error in pacman. I asked on the arch subreddit and was told to try the top to bottom approach. Now, while doing the top to bottom approach, I cannot manage to mount the partitions properly to create the fstab file because the back up of my root directory is in a folder on a usb flashdrive so if I mount /dev/sdc to /mnt I then have to mount the efi partition 3 folders deep into /dev/sdc at mnt/backup001/boot/efi (or am i supposed to make a directory at mnt/backup001/efi and mount it there?) at which point when i try to run the fstab command "genfstab -U /mnt/backup001 >> /mnt/backup001/etc/fstab" i get an error saying /mnt/backup001 is not a mount point, which makes sense but how else am I supposed to do this? It took me a combined 2+ days to backup my system (which is only 100GB) with rsync using the wiki's suggest options -aHAXSxv so if possible I'd rather not have to go through that again just to pull it out of a folder and onto the "main" section of the USB drive. I'm a very stupid person so I'm sure there is a simple fix or work around for this, if some kind soul here would be gracious enough to help or just point me in the right direction I would be very grateful.
Offline
Do you still have the output from pacman for the not found issue? If not were the packages listed from AUR or repositories listed in pacman.conf?
For the other approach if the ESP of original install is mounted to /boot/efi and you want the new installation to use the same mount point then it should be be mounted to /mnt/boot/efi then you would restore the backup to /mnt.
Offline
Thank you for your response,
I do not have the exact error message from pacman but I do not think they were AUR packages. I would prefer to use the top to bottom approach at this point, as that was also my original intention.
Honestly the only reason I think the ESP was mounted at /boot/efi is because an empty folder named efi folder exists in /boot, although I don't know if that is sufficient evidence. And do I want to use the same mount point? I'm really not sure what implications that could have so I really don't know. And what do you mean by "restore the backup to /mnt"? I'm confused because the backup is already mounted in /mnt (boot from live USB) so how would I go about "restoring" it there? I'm genuinely sorry if I'm coming off as an asshole or blatantly ignorant, I don't think my brain is really working properly at the moment
Offline
Please post the output
parted -l
mountI was using the layout of the new system being mounted under /mnt and the old system would be mounted somewhere else.
Does the fstab of the old system have a vfat type filesystem entry for /boot /boot/efi or /efi?
Offline
Again sorry for the stupid question but would you like the output from the old system or the new system booted to base arch?
The old system has no output for parted -l
and for mount:
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=8130676k,nr_inodes=2032669,mode=755,inode64)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755,inode64)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
/dev/sda6 on / type ext4 (rw,relatime)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=30,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=395)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,nr_inodes=409600,inode64)
/dev/sda2 on /boot/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1627912k,nr_inodes=406978,mode=700,uid=1000,gid=985,inode64)
/dev/sda8 on /run/media/ted/2911A2C16DA41ECB type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2)
But I think I see what you mean now, should I copy the root directory from the flashdrive to the ext4 partition on the new drive and then mount that partition to /mnt before executing the fstab command?
The old system does have an entry for a vfat type at /boot/efi
Offline
But I think I see what you mean now, should I copy the root directory from the flashdrive to the ext4 partition on the new drive and then mount that partition to /mnt before executing the fstab command?
If you are doing filesystem copying you would mount the target filesystems and either the source filesystems or the filesystem containing the backup before performing the data copy.
This is the same as during the original install up to the point where you would run pacstrap instead you would extract the backup to /mnt.
Yes then at the end use genfstab to update the fstab.
Offline
Pages: 1