hi
i have installed windows 7 then Ubuntu , all works find so far
after i installed windows xp , the grub2 got deleted ofc and windows xp was booting directly , so i repaired my grub
{
1 sudo mount /dev/sdXY /mnt
2 sudo mount --bind /dev /mnt/dev && sudo mount --bind /dev/pts /mnt/dev/pts && sudo mount --bind /proc /mnt/proc && sudo mount --bind /sys /mnt/sys
How to chroot from live session to #! on diskAssumption: #!
So I had the perfect Ubuntu 12 / Windows 7 dual boot set-up -- until I had to re-install Windows 7.
After the deed, GRUB2 was of course wiped out, thus my Ubuntu installation is rendered inaccessible.
I have tried these steps:
mount /dev/sda5 /mnt #This is where my Ubuntu installation resides.
mount /dev/sda1 /mnt/boot #Indicated by the `*` under `Boot` when doing `fdisk -l`
mount --bind /mnt
I upgraded from 10.04 to 12.04 LTS. Upgrade went fine, even restarted couple of times. Then the next day while booting into Ubuntu, after the grub, it gave the error 'Kernel panic : not syncing vfs unable to mount root fs on unknown block (0,0).
I have been dual booting Windows 7 Home Premium and Ubuntu 12.04 for several months now, and I recently ran into a problem where GRUB (or Burg) would fail to load. It gets stuck at the "GRUB Loading" screen and fails to boot. I also have Burg installed. I have reinstalled GRUB from a Live CD and the problem returned a week later.
I'm trying to set up a build environment using chroot, but instead of downloading ubuntu base files, I want to use my live / as base files for the chroot and use c-o-w to redirect any changes made in the chroot to other folder.
I use four partitions on my machine: first and second for different Linux systems, third for data and fourth for swap. On the first partition I installed Mint. By default it used GRUB installed on /dev/sda. Then I installed Slackware on the second partition. I decided to put LILO on /dev/sda. In result I lost access to GRUB and Mint.
I have a number of LVM partitions, each containing an Ubuntu installation. Occasionally, I want to do an apt-get dist-upgrade, to update an installation to the most recent packages.
I have 11.10 and Windows 7 in dual boot. Today I tried to update grub and I run the following command in terminal:
sudo fdisk -l
sudo mount /dev/sda6 /mnt
sudo grub-install --root-directory=/mnt /dev/sda
sudo grub-install
After installation and reboot, it does not show the grub menu (from which I can choose which OS to boot) and it directly boots Ubuntu.
Please help.