LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-29-2015, 07:25 PM   #16
SCSIraidGURU
Member
 
Registered: Oct 2014
Posts: 69

Rep: Reputation: Disabled

dpkg --list | grep linux-image : This lists all your Linux-image and Linux-image-extra files



sudo apt-get purge linux-image-3.13.0.48-generic

: This will purge all files associated with the Linux-image, my one is 3.13.0.48-generic, you replace it with what is on your list above


sudo apt-get purge linux-image-extra-3.13.0.48-generic

: This will purge all files associated with the Linux-image-extra, my one is 3.13.0.48-generic, you replace it with what is on your list above

Do three of each earliest at a time. Reboot. Wait a few days to make sure its stable. Do three more of each.



sudo update-grub2 : updates grub

sudo apt-get update && sudo apt-get dist-upgrade : Upgrades Ubuntu

Last edited by SCSIraidGURU; 05-29-2015 at 07:35 PM.
 
Old 05-29-2015, 07:33 PM   #17
JeremyBoden
Senior Member
 
Registered: Nov 2011
Distribution: Debian
Posts: 1,026

Rep: Reputation: 203Reputation: 203Reputation: 203
Quote:
Originally Posted by Kuriibaa View Post
Sounds good. Is it likely I can get Ubuntu bootable again so I can at least back up the games, or should I just bite the bullet and reinstall? I have a huge 2TB partition the games are in, so even a copy of the Steam library folder wouldn't be that big a deal if I needed it for a day or two.

Debian sounds interesting, but I definitely should test it first. Luckily, I already have extra partitions for messing with distros. Why is Ubuntu by far so much more widely used?
A few years ago, Ubuntu was a simpler & slightly more friendly distro than Debian.
However, Ubuntu chose to try and be different, which is why it produced abortions such as unity.

Don't try to mix Ubuntu with Debian packages - even ones that appear to be superficially identical.
I'd suggest you try a live DVD of one of:-
Mint (Cinnamon or Mate desktop)
LMDE (Linux Mint Debian Edition)
or
If you try pure Debian, be aware that this comes in several levels of stability.
The very stable is unlikely to contain the latest software release;
The least stable will contain bleeding edge software.

In all cases, it is likely that you stand a very good chance of being able to use your /home (or a copy of it) with a non-Ubuntu distro.
But once you do this, it is likely that you won't be able to revert to Ubuntu.
 
Old 05-29-2015, 08:11 PM   #18
Kuriibaa
Member
 
Registered: Jul 2014
Posts: 53

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by SCSIraidGURU View Post
dpkg --list | grep linux-image : This lists all your Linux-image and Linux-image-extra files



sudo apt-get purge linux-image-3.13.0.48-generic

: This will purge all files associated with the Linux-image, my one is 3.13.0.48-generic, you replace it with what is on your list above


sudo apt-get purge linux-image-extra-3.13.0.48-generic

: This will purge all files associated with the Linux-image-extra, my one is 3.13.0.48-generic, you replace it with what is on your list above

Do three of each earliest at a time. Reboot. Wait a few days to make sure its stable. Do three more of each.



sudo update-grub2 : updates grub

sudo apt-get update && sudo apt-get dist-upgrade : Upgrades Ubuntu
Hi,

Is this to be done from Ubuntu by booting it with a live USB, or will I need to get it booting again first?
 
Old 05-29-2015, 08:21 PM   #19
Kuriibaa
Member
 
Registered: Jul 2014
Posts: 53

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by JeremyBoden View Post
A few years ago, Ubuntu was a simpler & slightly more friendly distro than Debian.
However, Ubuntu chose to try and be different, which is why it produced abortions such as unity.

Don't try to mix Ubuntu with Debian packages - even ones that appear to be superficially identical.
I'd suggest you try a live DVD of one of:-
Mint (Cinnamon or Mate desktop)
LMDE (Linux Mint Debian Edition)
or
If you try pure Debian, be aware that this comes in several levels of stability.
The very stable is unlikely to contain the latest software release;
The least stable will contain bleeding edge software.

In all cases, it is likely that you stand a very good chance of being able to use your /home (or a copy of it) with a non-Ubuntu distro.
But once you do this, it is likely that you won't be able to revert to Ubuntu.
I've yet to hate Unity as much as many do(it seems to mostly work like OSX's interface, though some argue it's too Windows 8ish and "tablet-centric, which could have truth to it) but am still not decided on my favorite desktop. If I messed with Unity enough, I might well find something infuriating. In any case, I can always install other desktops on Ubuntu(and have, which is what I was doing with xubuntu-desktop around the time I started having these problems yesterday, though they're likely caused by my impatient attempts to get my USB gamepad working, ultimately.)

Thanks for the heads up on packages. I don't know exactly how to avoid Debian ones, but I hadn't been given this warning before.

The Cinnamon edition of Mint is the first distro I ever tried and I use it a lot(I have another partition of it so I'll have at least one Ubuntu-like functional if one of them breaks.) Been curious about LMDE for a while now, but don't know what its advantages are. Honestly, Mint probably is the easiest for me so far, but I definitely want to explore Ubuntu a bit, given I didn't even try it until the past few months. I get (maybe overly) curious about distros every once in a while. Why specifically do you recommend Mint?

I learned the stable vs. bleeding edge thing the hard way recently when Ubuntu 14.10 couldn't even install simple dark themes. I'm probably way too green to mess with unstable releases for now.
 
Old 05-29-2015, 09:42 PM   #20
SCSIraidGURU
Member
 
Registered: Oct 2014
Posts: 69

Rep: Reputation: Disabled
If you are on 14.10, you could download 15.04 and go to it. It might get you working. Then, do those commands to clean up. You could use a live CD to get into the OS and manually delete some of the lower number Linux-images and try to reboot. Bleeding edge only really works with highend hardware. If you overclock your hardware, go for stable.
 
Old 05-29-2015, 10:41 PM   #21
Kuriibaa
Member
 
Registered: Jul 2014
Posts: 53

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by SCSIraidGURU View Post
If you are on 14.10, you could download 15.04 and go to it. It might get you working. Then, do those commands to clean up. You could use a live CD to get into the OS and manually delete some of the lower number Linux-images and try to reboot. Bleeding edge only really works with highend hardware. If you overclock your hardware, go for stable.
I'm on 14.04, but am curious about 15.04 now. How stable is it compared to 14.04? Will it be a few months before it's comparable? I ask because the site says it recommends 14.04 for most users. Would I need to install over it, or do some other process to upgrade? I think I read you could upgrade without wiping out your whole OS, but I forget where.
I just realized now that I have Mint and Fedora on separate partitions I could try cleaning out Ubuntu's /boot from there. Maybe I should try that first.

Edit: What exactly do I delete from it? I have files relating to both 3.16.0-38 generic and 3.16.0-30 -generic.

Last edited by Kuriibaa; 05-29-2015 at 10:51 PM.
 
Old 05-29-2015, 10:59 PM   #22
SCSIraidGURU
Member
 
Registered: Oct 2014
Posts: 69

Rep: Reputation: Disabled
I have been on 15.04 for 1-2 months. It has not caused any problems for me. Bacula works on it. You can upgrade from 14.10 to 15.04. I would use a live CD of the same OS to clean out the /boot. Just do be safe. List all the files in /boot and post them. I usually keep the last two latest revisions only. Since my Ubuntu web server is on 24x7, it upgrades constantly. So I can have 10 revisions in it. When you upgrade to 15.04, you get 3.19.xx I believe. My main workstation is Windows 7 x64. It has my CAD and Photoshop applications on it along with Visual Studio for programming. My two Ubuntu boxes are for Bacula tape backup software and Web site, www.michaelmckenney.com and www.scsiraidguru.com . My web site contain my vacation pictures, CSS, C# and 33 years of computer experience.

http://www.scsiraidguru.com/Computers/ contains the specs for my three rigs. Use Live CD to backup your data. Always backup first. That is why I have Bacula and three tape drives.
 
Old 05-31-2015, 05:43 PM   #23
Kuriibaa
Member
 
Registered: Jul 2014
Posts: 53

Original Poster
Rep: Reputation: Disabled
OK, here are the files in /boot:

abi-3.16.0-30-generic
abi-3.16.0-38-generic
config-3.16.0-30-generic
config-3.16.0-38-generic
initrd.img-3.16.0-30-generic
initrd.img-3.16.0-38-generic
memtest86+.bin
memtest86+.elf
memtest86+_multiboot.bin
System.map-3.16.0-30-generic
System.map-3.16.0-38-generic
vmlinuz-3.16.0-30-generic
vmlinuz-3.16.0-38-generic
vmlinuz-3.16.0-38-generic.efi.signed
 
Old 05-31-2015, 07:29 PM   #24
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Run df -h to check if / is full.
 
Old 05-31-2015, 07:51 PM   #25
Kuriibaa
Member
 
Registered: Jul 2014
Posts: 53

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by EDDY1 View Post
Run df -h to check if / is full.
I can't boot my Ubuntu partition. Is there a way to do that from the USB stick? I tried it and got results, but it's clearly for the stick itself(volume is 8 GB.)
 
Old 05-31-2015, 07:54 PM   #26
Kuriibaa
Member
 
Registered: Jul 2014
Posts: 53

Original Poster
Rep: Reputation: Disabled
Update: My Ubuntu partition no longer even does the Nvidia thing anymore. It just endlessly hangs at a black screen with a blinking white cursor near the upper left corner. Something must have caused this, but I know I didn't mess with any settings or files--not from the USB stick, either.
 
Old 05-31-2015, 08:32 PM   #27
JeremyBoden
Senior Member
 
Registered: Nov 2011
Distribution: Debian
Posts: 1,026

Rep: Reputation: 203Reputation: 203Reputation: 203
If you boot from USB or DVD you can gain access and possibly modify or at least look at your files.

When the USB boots up, create a few directories...
Code:
mkdir /mnt/boot
mkdir /mnt/root
mkdir /mnt/home
and possibly a few others (depending on how many partitions you've set up. Then
find out by guesswork or prior knowledge which partitions correspond to which mountpoints, then
Code:
mount /dev/sdx? /mnt/boot
mount /dev/sdx? /
...
Here 'x' is probably an 'a' and '?' some number (different for each partition).

Then you can type things like
Code:
df -h
which will reveal if any partitions are nearly full.
It might be useful if you could attach a copy of the command (if available) of
Code:
inxi -Fx
Don't forget to umount any file systems that you have mounted, before you shutdown.
 
Old 05-31-2015, 09:06 PM   #28
Kuriibaa
Member
 
Registered: Jul 2014
Posts: 53

Original Poster
Rep: Reputation: Disabled
JeremyBoden,

I tried this on USB and the commands seemed to mostly work(the one "sudo mount /sda /mnt/boot" returned a "mount" /dev/sda already mounted or /mnt/boot busy" reply, though.)

I then realized it was only doing this to Ubuntu on the USB. For safety's sake, what folder do I go into exactly before executing these commands?
 
Old 05-31-2015, 09:44 PM   #29
JeremyBoden
Senior Member
 
Registered: Nov 2011
Distribution: Debian
Posts: 1,026

Rep: Reputation: 203Reputation: 203Reputation: 203
The DVD doesn't know anything about your disk - except the partition numbers.
So if /boot is on sda2 (for example) you have to say
Code:
sudo mount /dev/sda2 /mnt/boot
This associates the partition with a mount point and /mnt/boot should reflect the disk partition.

I'm assuming that the Ubuntu DVD doesn't already have a have a /mnt/boot directory - if so change references to /mnt/boot to some other name.
 
Old 05-31-2015, 10:26 PM   #30
Kuriibaa
Member
 
Registered: Jul 2014
Posts: 53

Original Poster
Rep: Reputation: Disabled
I just tried the mount command previously posted, and it seemed to work, but(to summarize) I feel like I'm constantly getting lost regarding what to do and in what order. I'm still so green with Linux and there seem to be several components of whatever the remedy to this booting problem is--which my brain is having trouble juggling at the moment. I've almost given up and decided to reinstall Ubuntu and just deal with whatever games/etc. I have to reinstall, but of course part of me wants to learn how to solve problems like this in the future. I think the fact that I'm having to use a Live USB to try and figure this out is making it really hard to keep track of what's on what drive, combined with the fact that I'm mostly clueless about using the command line unless some tutorial just gives me everything I need to paste into it.

I wonder if I've somehow overlooked some crucial step here, and if so if I'd be able to go back and do that and still get this resolved, or if it's too late to take those necessary steps. Also, I didn't mean to ignore your "inxi" comment, but just tried installing it via terminal and the package wasn't found. Is there another way to install it? It's not in the software center but it seems like it could be the missing link here.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to modify my "PATH" in Ubuntu "bashrc" for a software? msbstar Linux - Newbie 3 01-25-2011 09:47 AM
Fedora "software sources" vs. Ubuntu "software repositories" taylorkh Fedora 2 01-23-2011 07:38 PM
[SOLVED] just installed Slackware....Lilo>Select "Ubuntu">>> "Ubuntu is in low graphics mode"? Ubunoob001 Slackware 14 09-16-2010 05:47 PM
"Installed" Plugins and other software apps don't run cbarnes Linux - Software 5 09-09-2008 06:36 PM


All times are GMT -5. The time now is 03:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration