![]() |
Remove old linux from bootable OS - Printable Version +- Linux Lite Forums (https://www.linuxliteos.com/forums) +-- Forum: Software - Support (https://www.linuxliteos.com/forums/forumdisplay.php?fid=5) +--- Forum: Installing Linux Lite (https://www.linuxliteos.com/forums/forumdisplay.php?fid=17) +--- Thread: Remove old linux from bootable OS (/showthread.php?tid=1670) |
Remove old linux from bootable OS - taratree - 03-24-2015 I noticed problem with linux lite i.e firefox cannot connect to internet, gray screen, cannot install/remove program I decided to reinstall the OS but instead of replacing the old linux it created new one. Basically now I have 3 OS my original window, faulty linux and new linux. Is there any way I can remove the old faulty linux? Re: Remove old linux from bootable OS - rokytnji - 03-24-2015 I and other members would reply. But not enough details really to give one. Your post assumes we are looking over your shoulder and know what you are talking about. I realize language barriers may be a issue in this thread. But if you can be more descriptive. Give lots more detail. Computer specs. Which distro installed grub to mbr. What distros are installed. Maybe we can help you then. Here are some commands to get you started. Code: sudo parted -l Code: sudo blkid Code: sudo fdisk -l a screenshot of gparted using http://imgur.com/ to post the screenshot on the forum' You need to tell us the /dev/sdx partition of the bad linux install. I hope I am clear on this. Good luck. Re: Remove old linux from bootable OS - gold_finger - 03-25-2015 Yes you can get rid of the bad installation and keep the good one, but like rokytnji said -- we need a bit more info. Sounds like you have 2 Linux Lites installed and one Windows; and that only one of the Linux Lites works. Is that correct? When the grub menu shows up, is the first choice shown now the good Linux Lite? If not, which choice is it? Boot into the working Linux Lite you have installed. Open a terminal and enter the commands posted by rokytnji and also enter this one: Code: lsblk With info from questions above and those commands we'll be able to tell you how to get rid of the bad installation. Re: Remove old linux from bootable OS - taratree - 03-25-2015 (03-25-2015, 05:48 PM)gold_finger link Wrote: Sounds like you have 2 Linux Lites installed and one Windows; and that only one of the Linux Lites works. Is that correct?Yes, only one works and the first choice is the good one Code: tara@tara-VERSAE6210-RNC81031647:~$ sudo parted -l Re: Remove old linux from bootable OS - gold_finger - 03-25-2015 Code: Partition table entries are not in disk order Okay, the "/" listed on line for "sda7" indicates that that is the root partition you are booted into while running the command -- so that is the root partition for your good Linux Lite installation. If you haven't spent a lot of time customizing that new installation and don't have a lot of data on it that needs to be saved, the easiest thing to do would be to delete all current Linux partitions, then install again. To do that:
Code: sudo parted -l The sudo parted -l command will list your partitions. The last partition listed should show as having "Ext4" under "File system" column. Make a note of the partition number for that partition. Using that, you'll now know that the root partition is called /dev/sdaX (where "X" is the partition number). Mount that partition with the following command (substitute partition number for "X"): Code: sudo mount /dev/sdaX /mnt Now enter this command so we can see what is in your fstab file (which directs booting to proper partitions): Code: cat /mnt/etc/fstab Copy entire output of terminal commands you just ran (all four commands) and paste that back here for us to see. When done, unmount the partition you mounted before shutting down. Code: sudo umount /dev/sdaX We'll need to see that output before we can give specifics on how to get booting up and running again. Re: Remove old linux from bootable OS - taratree - 03-29-2015 I decided to delete and install new linux and everything works well. Thank you very much. Re: Remove old linux from bootable OS - N4RPS - 03-29-2015 Hello! You're welcome. That's a pretty much 100% effective solution to nearly every Linux Lite issue. LL installs so quickly, it's often faster to re-install than trying to sort an issue out... 73 DE N4RPS Rob Re: Remove old linux from bootable OS - gold_finger - 03-30-2015 Glad you got it sorted out. Definitely easier to just re-install vs. trying to move everything around and then repair booting. |