Quote:
Originally Posted by ubume2
I did that and got:
#grub-install /dev/sda ## command not found or,
#grub-mkconfig -o /boot/grub/grub.cfg ## command not found
|
This is probably because you are using bash.
Also because you are not actually specifying a mount point.
Code:
mkdir /mnt/ManjaroNet
mount /dev/sdc5 /mnt/ManjaroNet/
mount -o bind /proc /mnt/ManjaroNet/proc
mount -o bind /dev /mnt/ManjaroNet/dev
mount -o bind /dev/pts /mnt/ManjaroNet/dev/pts
mount -o bind /sys /mnt/ManjaroNet/sys
cp /etc/resolv.conf /mnt/ManjaroNet/etc/resolv.conf
chroot /mnt/ManjaroNet /bin/bash
This is the list of commands I use to chroot to Manjaro from Debian. Manjaro is Arch based. It could be, I am embarrassed to say I haven't checked, that Manjaro and Arch actually do use dash.
But, as you can see I create a mount point.
Then mount the / partition at that mount point.
To activate the chroot environment you must invoke the application "chroot" at the mount point "/mnt/ManjaroNet" using /bin/bash as my shell.
You should not need more than that for a simple grub fix.
2 exceptions.
I never use a /boot. Could be you need to mount it instead of /.
You may be using dash as shell. In which case you would need to invoke "/bin/dash" instead of "/bin/bash".
Chroot is short for CHangeROOT. You are issuing commands from a / system other than the one you are operating from. You have to tell the shell where that root is and that is your "mount point" within your current system.
I have 2 internal drives (5 installs) and 4 externals that are connected sometimes for varying periods of time (20 more installs). Chroot is the only way to run the package upgrades and other maintenance chores. I visit them occasionally to make sure they actually work on their own but not that often.
The Manjaro installs are getting quite a bit of actual boot time because I am curious about them. Looks like I may need an Arch install one of these days. Pretty interesting package management system. Don't know what installer Arch uses but if it is the same as Manjaro the text installer is very very nice. Graphic installer not so much.