Hardware - Support > Start up and Shutdown

Unable to login to LL

(1/2) > >>

Kirkx:

--- Quote from: Valtam on July 30, 2014, 10:32:15 PM ---sudo apt-get dist-upgrade would be the culprit here. LL is a heavily modified distribution, very easy to break if folks don't stick to the tried and true, ie. Install Updates. We have mentioned not doing sudo apt-get dist-upgrade in the past, you may be looking at a fresh install Kirk :(

--- End quote ---
Thanks, Valtam. After doing the fresh LL install I have looked at the command and script behind Menu - Install Updates. Here is the script:

So for those of us who like to run everything from the terminal, Install Updates is nothing more than:

--- Code: ---sudo apt-get update && sudo apt-get upgrade
--- End code ---
And, as Valtam said, DO NOT run the command below (often mentioned on Ubuntu forums) because to do it in LL is asking for trouble:

--- Code: ---sudo apt-get update && sudo apt-get dist-upgrade
--- End code ---

gold_finger:
42 PARTITIONS!!!  WOW!  What, are you trying to set a world record?  (Just kidding.)

Have never used Clonezilla, but if I had to guess:  UUID probably remains as it was when cloned, and device name is whatever it is on partition you restore to.  (But that's just a guess.)

Kirkx:

--- Quote ---gold_finger:I'm pretty sure the device names won't change on re-installation as long as you don't delete, then recreate the partitions.
--- End quote ---
Thanks, that's correct, I have confused formatting with deleting/recreating. I've just tested this using Gparted Live CD and it works as follows:

a) formatting a partition - device number remains the same, UUID will change
b) resizing a partition - both device number and UUID remain the same
c) deleting and re-creating a partition in the same location on the hard disk - both device number and UUID will change

There is one more scenario that I'm not sure about:

d) restoring a partition from Clonezilla disk image - ?

I have created a thread on Ubuntu forums, so let's see what their experts have to say:

http://ubuntuforums.org/showthread.php?t=2237147


--- Quote ---I've never done what you propose before, but would imagine rm -rf /media/username/my_LL_folder/* would be the one to use.
--- End quote ---
Yes, that command seems to be working as expected. I ran it on both root and home partitions and then they were both showing "zero" bytes. But, of course, formatting seems to be a better choice in this case. I have decided to reinstall both root and home partitions, just in case.


--- Quote ---Holy Moly!  22 partitions!  I thought I was bad with 11 on one of my drives.
--- End quote ---
Well, actually, I have a bit more than 22:

http://i.imgur.com/qhDuoZY.png

gold_finger:
Holy Moly!  22 partitions!  I thought I was bad with 11 on one of my drives.

I've never done what you propose before, but would imagine rm -rf /media/username/my_LL_folder/* would be the one to use.


I'm pretty sure the device names won't change on re-installation as long as you don't delete, then recreate the partitions.  If you just install over them and format them, device name should stay as it is but I'm not sure about the UUID (that will probably change).  But, as I'm sure you know, you can easily find the new UUID by just running:

--- Code: ---sudo blkid
--- End code ---

Keep in mind, if you have /home on a separate partition right now there is no need to format and install over it.  Just assign the mount point during installation, but don't check format box.  Your data files will be there ready to go with the new install.  The only one you need to re-format is the root partition.

Kirkx:
After booting to another distro, what would be the best commands to delete all files and directories in the broken OS before fresh re-install. I don't want to format the root and home partitions when reinstalling so that the device numbers remain intact. Is this enough:


--- Code: ---rm -rf /media/username/my_LL_folder/*
rm -rf /media/username/my_LL_folder/

--- End code ---
or:

--- Code: ---rm -rdf /media/username/my_LL_folder/*
rm -rdf /media/username/my_LL_folder/

--- End code ---

In my case LL is installed to:

--- Code: ---/dev/sda21
/dev/sda22

--- End code ---
PS: This seems to be the only drawback of using Grub4Dos for booting. You need to manually edit the kernel version after each kernel update and edit device numbers and UUIDs in case some partitions have been realigned.

Navigation

[0] Message Index

[#] Next page

Go to full version