Search
Search titles only
By:
Search titles only
By:
Forums
New posts
Search forums
What's new
New posts
Latest activity
Feedback
View Statistics
Members
Current visitors
Buy Sell Trade
WTB
Log in
Register
Search
Search titles only
By:
Search titles only
By:
New posts
Search forums
Menu
Install the app
Install
Reply to thread
Forums
Technology
Computer Software
can't dual boot ubuntu and window 7
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="phuchungbhutia" data-source="post: 1198028" data-attributes="member: 21119"><p><a href="https://help.ubuntu.com/community/Grub2#Reinstalling%20GRUB%202" target="_blank">https://help.ubuntu.com/community/Grub2#Reinstalling GRUB 2</a></p><p></p><p>CHROOT GRUB UPDATING AFTER WINDOWS & INSTALLED</p><p></p><p>This method of installation uses the chroot command to gain access to the broken system’s files. Once the chroot command is issued, the LiveCD treats the broken system’s / as its own. Commands run in a chroot environment will affect the broken systems filesystems and not those of the LiveCD.</p><p></p><p>Boot to the LiveCD Desktop (Ubuntu 9.10 or later). Please note that the Live CD must be the same as the system you are fixing – either 32-bit or 64-bit (if not then the chroot will fail).</p><p></p><p>Open a terminal – Applications, Accessories, Terminal.</p><p></p><p>Determine your normal system partition – (the switch is a lowercase “Lâ€)</p><p></p><p>sudo fdisk -l</p><p></p><p>If you aren’t sure, run</p><p></p><p>df -Th. Look for the correct disk size and ext3 or ext4 format.</p><p></p><p>Mount your normal system partition:</p><p></p><p>Substitute the correct partition: sda1, sdb5, etc.</p><p></p><p>sudo mount /dev/sdXX /mnt # Example: sudo mount /dev/sda1 /mnt</p><p></p><p>Only if you have a separate boot partition:</p><p></p><p>sdYY is the /boot partition designation (for example sdb3)</p><p></p><p>sudo mount /dev/sdYY /mnt/boot</p><p></p><p>Mount the critical virtual filesystems:</p><p></p><p>sudo mount –bind /dev /mnt/dev</p><p></p><p>sudo mount –bind /dev/pts /mnt/dev/pts</p><p></p><p>sudo mount –bind /proc /mnt/proc</p><p></p><p>sudo mount –bind /sys /mnt/sys</p><p></p><p>Chroot into your normal system device:</p><p></p><p>sudo chroot /mnt</p><p></p><p>If there is no /boot/grub/grub.cfg or it’s not correct, create one using</p><p></p><p>update-grub</p><p></p><p>Reinstall GRUB 2:</p><p></p><p>Substitute the correct device – sda, sdb, etc. Do not specify a partition number.</p><p></p><p>grub-install /dev/sdX</p><p></p><p>Verify the install (use the correct device, for example sda. Do not specify a partition): sudo grub-install –recheck /dev/sdX</p><p></p><p>Exit chroot: CTRL-D on keyboard</p><p></p><p>Unmount virtual filesystems:</p><p></p><p>sudo umount /mnt/dev/pts</p><p></p><p>sudo umount /mnt/dev</p><p></p><p>sudo umount /mnt/proc</p><p></p><p>sudo umount /mnt/sys</p><p></p><p>If you mounted a separate /boot partition:</p><p></p><p>sudo umount /mnt/boot</p><p></p><p>Unmount the LiveCD’s /usr directory:</p><p></p><p>sudo umount /mnt/usr</p><p></p><p>Unmount last device:</p><p></p><p>sudo umount /mnt</p><p></p><p>Reboot.</p><p></p><p>sudo reboot</p><p></p><p>Post-Restoration Commands</p><p></p><p>Once the user can boot to a working system, try to determine why the system failed to boot. The following commands may prove useful in locating and/or fixing the problem.</p><p></p><p>To refresh the available devices and settings in /boot/grub/grub.cfg</p><p></p><p>sudo update-grub</p><p></p><p>To look for the bootloader location.</p><p></p><p>grub-probe -t device /boot/grub</p><p></p><p>To install GRUB 2 to the sdX partition’s MBR (sda, sdb, etc.)</p><p></p><p>sudo grub-install /dev/sdX</p><p></p><p>To recheck the installation. (sda, sdb, etc.)</p><p></p><p>sudo grub-install –recheck /dev/sdX</p></blockquote><p></p>
[QUOTE="phuchungbhutia, post: 1198028, member: 21119"] [url]https://help.ubuntu.com/community/Grub2#Reinstalling%20GRUB%202[/url] CHROOT GRUB UPDATING AFTER WINDOWS & INSTALLED This method of installation uses the chroot command to gain access to the broken system’s files. Once the chroot command is issued, the LiveCD treats the broken system’s / as its own. Commands run in a chroot environment will affect the broken systems filesystems and not those of the LiveCD. Boot to the LiveCD Desktop (Ubuntu 9.10 or later). Please note that the Live CD must be the same as the system you are fixing – either 32-bit or 64-bit (if not then the chroot will fail). Open a terminal – Applications, Accessories, Terminal. Determine your normal system partition – (the switch is a lowercase “Lâ€) sudo fdisk -l If you aren’t sure, run df -Th. Look for the correct disk size and ext3 or ext4 format. Mount your normal system partition: Substitute the correct partition: sda1, sdb5, etc. sudo mount /dev/sdXX /mnt # Example: sudo mount /dev/sda1 /mnt Only if you have a separate boot partition: sdYY is the /boot partition designation (for example sdb3) sudo mount /dev/sdYY /mnt/boot Mount the critical virtual filesystems: 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 Chroot into your normal system device: sudo chroot /mnt If there is no /boot/grub/grub.cfg or it’s not correct, create one using update-grub Reinstall GRUB 2: Substitute the correct device – sda, sdb, etc. Do not specify a partition number. grub-install /dev/sdX Verify the install (use the correct device, for example sda. Do not specify a partition): sudo grub-install –recheck /dev/sdX Exit chroot: CTRL-D on keyboard Unmount virtual filesystems: sudo umount /mnt/dev/pts sudo umount /mnt/dev sudo umount /mnt/proc sudo umount /mnt/sys If you mounted a separate /boot partition: sudo umount /mnt/boot Unmount the LiveCD’s /usr directory: sudo umount /mnt/usr Unmount last device: sudo umount /mnt Reboot. sudo reboot Post-Restoration Commands Once the user can boot to a working system, try to determine why the system failed to boot. The following commands may prove useful in locating and/or fixing the problem. To refresh the available devices and settings in /boot/grub/grub.cfg sudo update-grub To look for the bootloader location. grub-probe -t device /boot/grub To install GRUB 2 to the sdX partition’s MBR (sda, sdb, etc.) sudo grub-install /dev/sdX To recheck the installation. (sda, sdb, etc.) sudo grub-install –recheck /dev/sdX [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Technology
Computer Software
can't dual boot ubuntu and window 7
Top
Bottom