Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i had win7 and ubuntu 13.04 in my laptop. but somehow window7 corroupted and ubuntu working. then i reinstall window and afetr that i am not able to see ubuntu in booting option.
i inserted live ubuntu-cd. i run some commands and mount the linux drive as sda6. now found grub in boot folder. but after that not able to update or configure Grub.
Windows 7 wrote its bootloader over your GRUB in MBR, assuming it is MBR and not UEFI; please correct me if I'm wrong.
Since you boot the live CD and mount your Linux filesystem, half the job is done already. Now you simply have to chroot into your filesystem and install GRUB back to the MBR.
Let us say you mount sda6 at /mnt/ubuntu (this is just an example mount point, you can replace this with your own mountpoint):
Then you exit the chroot environment and reboot. The grub-mkconfig line will generate a new grub.cfg which contains entries for both Unbuntu and Windows 7. That should do it.
sir,
i m using the following commands to start and mount the sda6. am i mounting the right partition? i am not sure. all the commands work as u mentioned in last post except the last one.grub-install /dev/sda.
ubuntu@ubuntu:~$ sudo su
root@ubuntu:/home/ubuntu# sudo fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xc3ffc3ff
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT
/dev/sda2 206848 204797951 102295552 7 HPFS/NTFS/exFAT
/dev/sda3 204799998 511997951 153598977 5 Extended
Partition 3 does not start on physical sector boundary.
/dev/sda4 511997952 976771071 232386560 7 HPFS/NTFS/exFAT
/dev/sda5 204800000 208797695 1998848 82 Linux swap / Solaris
/dev/sda6 208799744 511997951 151599104 83 Linux
Disk /dev/sdb: 4098 MB, 4098883584 bytes
2 heads, 63 sectors/track, 63536 cylinders, total 8005632 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x002aa5b9
Device Boot Start End Blocks Id System
/dev/sdb1 * 64 8005631 4002784 b W95 FAT32
root@ubuntu:/home/ubuntu#
root@ubuntu:/# grub-mkconfig -o /boot/grub/grub.cfg
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.8.0-19-generic
Found initrd image: /boot/initrd.img-3.8.0-19-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
don[/I][/I]e
the out put of grub-install is:
root@ubuntu:/# grub-install /dev/sda1
/usr/sbin/grub-bios-setup: warning: File system `ntfs' doesn't support embedding.
/usr/sbin/grub-bios-setup: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
/usr/sbin/grub-bios-setup: error: will not proceed with blocklists.
Ah, now we have all the relevant information to better address the problem.
Quote:
Originally Posted by amita_s12
the output of grub-mkconfig is:
root@ubuntu:/# grub-mkconfig -o /boot/grub/grub.cfg
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.8.0-19-generic
Found initrd image: /boot/initrd.img-3.8.0-19-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
don[/I][/I]e
grub-mkconfig sees all your installs and adds an entry for them in configuration file /boot/grub/grub.cfg. As you can see, it also detects Windows 7. So, we are not far from a working system. The final step would be to install the bootloader in the MBR of your hard disk, which is designated by /dev/sda.
Quote:
Originally Posted by amita_s12
the out put of grub-install is:
root@ubuntu:/# grub-install /dev/sda1
/usr/sbin/grub-bios-setup: warning: File system `ntfs' doesn't support embedding.
/usr/sbin/grub-bios-setup: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
/usr/sbin/grub-bios-setup: error: will not proceed with blocklists.
And, you can see that you are trying to install the bootloader in /dev/sda1, which does not work since its filesystem is NTFS. So, please correct that. You don't need to run grub-mkconfig again since the config file has been generated already. You just change /dev/sda1 in the above to /dev/sda and it should work.
root@ubuntu:/# grub-install /dev/sda
/usr/sbin/grub-bios-setup: warning: this LDM has no Embedding Partition; embedding won't be possible.
/usr/sbin/grub-bios-setup: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
/usr/sbin/grub-bios-setup: error: will not proceed with blocklists
Ah, now we learn something new again about your machine. Your disk uses Logical Disk Manager. I am not familiar with LDM, so I looked around a bit. I am sorry to say that it seems GRUB does not support it.
"Please use EasyBCD with care, it’s a powerful tool that you can either make your life a lot easier or make it rather miserable by letting you shoot yourself in the foot." this quote i found on the link. pl. suggest or is there any other solution?
"Please use EasyBCD with care, it’s a powerful tool that you can either make your life a lot easier or make it rather miserable by letting you shoot yourself in the foot."
Of course, powerful software gives you access to the deep roots of the system, so a small mistake can render your system unusable. I understand you don't want to take the risk. Ok, check this out: https://bugs.launchpad.net/ubuntu/+s...2/+bug/1061255. I think workaround 3 should be helpful to you.
Last edited by aragorn2101; 06-05-2017 at 03:20 AM.
ou installed Ubuntu on the former Drive D: in Windows. So, it is used by Ubuntu and now has a EXT4 filesystem. As Windows can't show ext4 partition, you can't see that drive.
You can still see that drive by going to the "Disk management" in Windows. That partition should have label "unknown".
To run Disk management, press Start menu and type diskmgmt.msc and Press and hold Shift key and then hit Enter.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.