You are not logged in.
Hey everyone,
I am a bit stuck here.
My Laptop ran a dual-boot system (Win7 + Arch Linux).
The partition table looked something like this:
/dev/sda1 - 100MB - NTFS - win7 system reserved
/dev/sda2 - 263GB - NTFS - win7 c-drive
/dev/sda3 - 32GB - ext4 - arch linux /
/dev/sda4 - 3GB - swap (wich will be eliminated too - but thats another story)
I realized I never use Windows so I decided to remove it and copy the linux partition to the bigger partition /dev/sda2
Now the partition table looks like this:
/dev/sda1 - 100MB - ext4 - /boot (copied from /dev/sda3 - previous grub installation)
/dev/sda2 - 263GB - ext4 - arch linux / (copied from /dev/sda3 - previous grub installation)
/dev/sda3 - 32GB - ext4 - arch linux /
/dev/sda4 - 3GB - swap (wich wills still be eliminated)
/etc/fstab looks like this:
/dev/sda2 / ext4 rw,relatime,data=ordered 0 1
/dev/sda1 /boot ext4 rw,relatime,data=ordered 0 1
And it boots fine - but it still mounts /dev/sda3 instead of /dev/sda2
lsblk:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 298,1G 0 disk
├─sda1 8:1 0 100M 0 part /boot
├─sda2 8:2 0 263G 0 part
├─sda3 8:3 0 32G 0 part /
└─sda4 8:4 0 3G 0 part
So, what should I do to get this dam Laptop to boot from /dev/sda2 instead of /dev/sda3 ?
Thanks in Advance, and if any additional Information is needed, let me know!
PS: I tried UUID in /etc/fstab - that does not change anything.
Offline
Did you regenerate your grub configuration after you copied the partitions?
Offline
I just ran another
sudo grub-mkconfig -o /boot/grub/grub.cfg
(just to be sure)
The above command even statet something like: "arch found on /dev/sda2"
Still mounted /dev/sda3 after reboot.
EDIT: I was confused since /boot/grub/grub.cfg (on /dev/sda1) does not have a entry for Windows 7 anymore, but I still get it as an option when I boot.
So I unmounted it and checked in /boot/grub/grub.cfg (on /dev/sda3 - where it was installed before) and it still has the Windows 7 entry.
So, what now, delete the /boot folder from /dev/sda3 ?
Or how do I get rid of this installation of grub and my system to use the one installed in /dev/sda1 ?
Last edited by GosuSan (2016-06-27 18:17:52)
Offline
Take a look at /boot/grub/grub.cfg. Make sure there is an entry in there with sda2 as root. If there is not, you can edit that file.
(edit) cross-posted.
Last edited by 2ManyDogs (2016-06-27 18:22:20)
Offline