Posts

Showing posts from July, 2015

Ubuntu does not start dual boot with windows 8 or 10 (GRUB) error solution

Image
 if you are having problem like windows is not getting started after dual booting with ubuntu then the same solution will work provide here You’ll need to boot from a live CD or USB drive, as in the graphical method  above. Ensure the version of Ubuntu on from a live CD or USB drive, as in the graphical method above. Ensure the version of Ubuntu on the CD is the same as the version of Ubuntu installed on your computer — for example, if you have Ubuntu 12.04 installed, ensure you use a Ubuntu 12.04 live CD. Open a terminal after booting into the live environment. Identify the partition Ubuntu is installed on using one of the following commands: sudo fdisk -l sudo blkid Here’s the output of both commands. In the fdisk -l command, the Ubuntu partition is identified by the word Linux in the System column. In the blkid command, the partition is identified by its ext4 file system.Run the following command to mount the Ubuntu partition at /mnt, replacing /dev/sdX#

How to compile c program in ubuntu or linux using gcc command method

First you need to open terminal then go to the folder through the terminal for example i have placed my source code to Downloads folder then i will type in terminal cd Downloads and press enter,after that use command like gcc -o sparse sparse.c here we are using gcc compiler to compile the source code -o sparse we are saying to provide output with the name sparse and we have used sparse.c the name of file which is being compiled here. now to run the program just drag the output file in terminal and press enter  Remember the source code name(the file name containng source code you must add .c at the end of the file name so that the compiler can understand that it is a c program source code

GPT partition error for windows installation Convert GPT to MBR with Diskpart

Update:2019  Do not convert GPT partition scheme to  MBR  as GPT is better instead when you make bootable Pendrive select the option GPT and the installation will be done without error. Use a bootable windows usb drive or disc chose Repair at the initial install screen, and opened the command prompt. and ran the following diskpart commands: Enter system installing interface by using Win 7 disc or USB hard drive boot. and then press “Shift”+”F10” to open the command prompt. Input “Diskpart” (do not input quotation mark, the following as well), and then press “Enter”to enter operating interface . Input “list disk”: to check hard disk properties. Pay more attention to capacity of hard disk to select. Usually, disk 0 is hard disk , and disk 1 is the usb dirve where wins 7 install. Input “select disk 0”: to select disk 0 as the disk that is operating. Input “clean”: to clean up current hard disk’s partition. Input “convert mbr ”: to convert GPT into