You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



How do I reinstall LL safely in a win7/zorin/lubuntu/LL multiboot?

Author (Read 7103 times)

0 Members and 2 Guests are viewing this topic.

Re: How do I reinstall LL safely in a win7/zorin/lubuntu/LL multiboot?
« Reply #16 on: October 07, 2016, 09:23:36 PM »
 

m654321

  • Gold Level Poster
  • *******
  • 893
    Posts
  • Reputation: 86
  • Linux Lite Member, 'Advocate' & Donator
    • View Profile

  • CPU: Intel Pentium [email protected] (2cores) on an Asus X71Q

  • MEMORY: 4Gb

  • VIDEO CARD: Intel GM45 Express Chipset

  • Kernel: 4.x
I apologize ahead of time if I missed the answer, but how might I change the boot order so that Windows is the default?
TIA, Alan
Hi Alan,
The 'answer' is in the link given by gold_finger in Reply #14, but this addressed a different question to the one you're asking. It looked at creating a 'user account' in Lubuntu.  I suggest you start a separate thread to address the specific question you want answered.  I'm sorry I'm unable to help further but I'm sure you'll find others here who're more than competent enough to help

Regards
Mike.
« Last Edit: October 07, 2016, 09:30:35 PM by m654321 »
64bit OS (32-bit on Samsung netbook) installed in Legacy mode on MBR-formatted SSDs (except pi which uses a micro SDHC card):
2017 - Raspberry pi 3B (4cores) ~ [email protected] - LibreElec, used for upgrading our Samsung TV (excellent for the task)  
2012 - Lenovo G580 2689 (2cores; 4threads] ~ [email protected] - LL3.8/Win8.1 dual-boot (LL working smoothly)
2011 - Samsung NP-N145 Plus (1core; 2threads) ~ Intel Atom [email protected] - LL 3.8 32-bit (64-bit too 'laggy')
2008 - Asus X71Q (2cores) ~ Intel [email protected] - LL4.6/Win8.1 dual-boot, LL works fine with kernel 4.15
2007 - Dell Latitude D630 (2cores) ~ Intel [email protected] - LL4.6, works well with kernel 4.4; 4.15 doesn't work
 

Re: How do I reinstall LL safely in a win7/zorin/lubuntu/LL multiboot?
« Reply #15 on: October 02, 2016, 06:07:07 PM »
 

gold_finger

  • Documentation Writer
  • Platinum Level Poster
  • *****
  • 1094
    Posts
  • Reputation: 325
  • Linux Lite Member
    • View Profile

  • CPU: Intel Core2 Duo E7500 3.0GHz

  • MEMORY: 4Gb

  • VIDEO CARD: Intel 4 Series Integrated Graphics
Try Linux Beginner Search Engine for answers to Linux questions.
 

Re: How do I reinstall LL safely in a win7/zorin/lubuntu/LL multiboot?
« Reply #14 on: September 30, 2016, 04:19:14 AM »
 

m654321

  • Gold Level Poster
  • *******
  • 893
    Posts
  • Reputation: 86
  • Linux Lite Member, 'Advocate' & Donator
    • View Profile

  • CPU: Intel Pentium [email protected] (2cores) on an Asus X71Q

  • MEMORY: 4Gb

  • VIDEO CARD: Intel GM45 Express Chipset

  • Kernel: 4.x
@gold_finger - my apologies for the delay in getting back to you. In reply to your previous post

Quote
Code: [Select]
[quote author=gold_finger link=topic=3428.msg26357#msg26357 date=1474551628]
I forgot you had Zorin on there as well, but see that you went ahead and changed that too.  Good job.

As I understand it, when you run [i]id[/i] command in both Zorin and LL it shows UID and GID = 1001.  Correct?

Yes, that's correct...

Quote
If so, run these two commands in Lubuntu terminal and let's see who shows up as GID=1001.



List users (and their respective UID, GID) with a UID equal to or greater than 1000 as listed in /etc/passwd file:
Code:
awk -F: '($3 >= 1000) {printf "%s:%s:%s\n",$1,$3,$4}' /etc/passwd

List groups with a GID equal to or greater than 1000 as listed in /etc/group file:
Code: awk -F: '($3 >= 1000) {printf "%s:%s\n",$1,$3}' /etc/group

Copy/Paste results back here.
The output from Lubuntu's terminal is as follows:
Code: [Select]
happyfamily@happyfamily-X71Q:~$ awk -F: '($3 >= 1000) {printf "%s:%s:%s\n",$1,$3,$4}' /etc/passwd
nobody:65534:65534
happyfamily:1000:1000
sam-the-editor:1001:1002
happyfamily@happyfamily-X71Q:~$ awk -F: '($3 >= 1000) {printf "%s:%s\n",$1,$3}' /etc/group
nogroup:65534
happyfamily:1000
sam:1001
sam-the-editor:1002
happyfamily@happyfamily-X71Q:~$
« Last Edit: September 30, 2016, 04:31:23 AM by m654321 »
64bit OS (32-bit on Samsung netbook) installed in Legacy mode on MBR-formatted SSDs (except pi which uses a micro SDHC card):
2017 - Raspberry pi 3B (4cores) ~ [email protected] - LibreElec, used for upgrading our Samsung TV (excellent for the task)  
2012 - Lenovo G580 2689 (2cores; 4threads] ~ [email protected] - LL3.8/Win8.1 dual-boot (LL working smoothly)
2011 - Samsung NP-N145 Plus (1core; 2threads) ~ Intel Atom [email protected] - LL 3.8 32-bit (64-bit too 'laggy')
2008 - Asus X71Q (2cores) ~ Intel [email protected] - LL4.6/Win8.1 dual-boot, LL works fine with kernel 4.15
2007 - Dell Latitude D630 (2cores) ~ Intel [email protected] - LL4.6, works well with kernel 4.4; 4.15 doesn't work
 

Re: How do I reinstall LL safely in a win7/zorin/lubuntu/LL multiboot?
« Reply #13 on: September 22, 2016, 09:40:28 AM »
 

gold_finger

  • Documentation Writer
  • Platinum Level Poster
  • *****
  • 1094
    Posts
  • Reputation: 325
  • Linux Lite Member
    • View Profile

  • CPU: Intel Core2 Duo E7500 3.0GHz

  • MEMORY: 4Gb

  • VIDEO CARD: Intel 4 Series Integrated Graphics
I forgot you had Zorin on there as well, but see that you went ahead and changed that too.  Good job.


As I understand it, when you run id command in both Zorin and LL it shows UID and GID = 1001.  Correct?  However, Lubuntu is showing UID=1001 and GID=1002 -- correct?  If so, run these two commands in Lubuntu terminal and let's see who shows up as GID=1001.



List users (and their respective UID, GID) with a UID equal to or greater than 1000 as listed in /etc/passwd file:
Code: [Select]

awk -F: '($3 >= 1000) {printf "%s:%s:%s\n",$1,$3,$4}' /etc/passwd

List groups with a GID equal to or greater than 1000 as listed in /etc/group file:
Code: [Select]
awk -F: '($3 >= 1000) {printf "%s:%s\n",$1,$3}' /etc/group

Copy/Paste results back here.
Try Linux Beginner Search Engine for answers to Linux questions.
 

Re: How do I reinstall LL safely in a win7/zorin/lubuntu/LL multiboot?
« Reply #12 on: September 22, 2016, 05:06:18 AM »
 

m654321

  • Gold Level Poster
  • *******
  • 893
    Posts
  • Reputation: 86
  • Linux Lite Member, 'Advocate' & Donator
    • View Profile

  • CPU: Intel Pentium [email protected] (2cores) on an Asus X71Q

  • MEMORY: 4Gb

  • VIDEO CARD: Intel GM45 Express Chipset

  • Kernel: 4.x
At this point, run following command to make sure his user(SamTheEditor) and group(SamTheEditor) show the UID and GID = 1001.  (It should if you were the only user account setup on that system.  Having same username, UID and GID as he's using on LL will ensure easier sharing of files between the two systems, especially if you've got a shared data partition to be used by both.)
Code: [Select]
id SamTheEditor
Gold_finger, according to your advice I've deleted the old SamTheEditor accounts in LL & Zorin, replacing them with sam-the-editor to avoid potential problems developing later, as you & Trinidad outlined.  I've set up a sam-the-editor account for him in Lubuntu, using the terminal. However, when I enter 'id sam-the-editor', the UID & GID output are not the same - what does this mean?...
Code: [Select]
happyfamily@happyfamily-X71Q:~$ id sam-the-editor
uid=1001(sam-the-editor) gid=1002(sam-the-editor) groups=1002(sam-the-editor)
happyfamily@happyfamily-X71Q:~$

mike
« Last Edit: September 22, 2016, 05:08:24 AM by m654321 »
64bit OS (32-bit on Samsung netbook) installed in Legacy mode on MBR-formatted SSDs (except pi which uses a micro SDHC card):
2017 - Raspberry pi 3B (4cores) ~ [email protected] - LibreElec, used for upgrading our Samsung TV (excellent for the task)  
2012 - Lenovo G580 2689 (2cores; 4threads] ~ [email protected] - LL3.8/Win8.1 dual-boot (LL working smoothly)
2011 - Samsung NP-N145 Plus (1core; 2threads) ~ Intel Atom [email protected] - LL 3.8 32-bit (64-bit too 'laggy')
2008 - Asus X71Q (2cores) ~ Intel [email protected] - LL4.6/Win8.1 dual-boot, LL works fine with kernel 4.15
2007 - Dell Latitude D630 (2cores) ~ Intel [email protected] - LL4.6, works well with kernel 4.4; 4.15 doesn't work
 

Re: How do I reinstall LL safely in a win7/zorin/lubuntu/LL multiboot?
« Reply #11 on: September 21, 2016, 05:07:34 PM »
 

trinidad

  • Platinum Level Poster
  • **********
  • 1472
    Posts
  • Reputation: 214
  • Linux Lite Member
    • View Profile
    • dbts-analytics.com

  • CPU: i7 4 cores 8 threads

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD graphics

  • Kernel: 5.x
On the few office servers that I attend to I usually assign user names by my own code like 0deb1 being root, 1deb1 sudo, 1deb2 2nd sudo, and 2deb1 first general user. Can always alias them to freaky stuff for ordinary users without issues.

TC
All opinions expressed and all advice given by Trinidad Cruz on this forum are his responsibility alone and do not necessarily reflect the views or methods of the developers of Linux Lite. He is a citizen of the United States where it is acceptable to occasionally be uninformed and inept as long as you pay your taxes.
 

Re: How do I reinstall LL safely in a win7/zorin/lubuntu/LL multiboot?
« Reply #10 on: September 21, 2016, 12:39:29 PM »
 

gold_finger

  • Documentation Writer
  • Platinum Level Poster
  • *****
  • 1094
    Posts
  • Reputation: 325
  • Linux Lite Member
    • View Profile

  • CPU: Intel Core2 Duo E7500 3.0GHz

  • MEMORY: 4Gb

  • VIDEO CARD: Intel 4 Series Integrated Graphics
Yes user names with capital letters will cause problems with certain packages. Spotify comes to mind at the moment. Some applications simply won't recognize the user name at all. Better not to, even though they will work and show up at login. Generally one capital letter at the beginning of name does not cause as many problems, but it's best (and more code efficient) to stay with lower case. Case sensitivity varies with some packages, especially cross platform things like Wine or Cygwin. Lower case is certainly best.

TC
Thanks for above.


Incidentally,  I tested adding "SamTheEditor" user to a VBox of Mint as per method outlined above.  That worked fine, but when I tried to use Mint's gui "Users and Groups" program to delete that user it would not work.  It would have no problem deleting "sam-the-editor", but would not delete "SamTheEditor".  So, yes -- using caps will likely cause problems somewhere along the line.
Try Linux Beginner Search Engine for answers to Linux questions.
 

Re: How do I reinstall LL safely in a win7/zorin/lubuntu/LL multiboot?
« Reply #9 on: September 21, 2016, 12:01:40 PM »
 

trinidad

  • Platinum Level Poster
  • **********
  • 1472
    Posts
  • Reputation: 214
  • Linux Lite Member
    • View Profile
    • dbts-analytics.com

  • CPU: i7 4 cores 8 threads

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD graphics

  • Kernel: 5.x
Yes user names with capital letters will cause problems with certain packages. Spotify comes to mind at the moment. Some applications simply won't recognize the user name at all. Better not to, even though they will work and show up at login. Generally one capital letter at the beginning of name does not cause as many problems, but it's best (and more code efficient) to stay with lower case. Case sensitivity varies with some packages, especially cross platform things like Wine or Cygwin. Lower case is certainly best.

TC
All opinions expressed and all advice given by Trinidad Cruz on this forum are his responsibility alone and do not necessarily reflect the views or methods of the developers of Linux Lite. He is a citizen of the United States where it is acceptable to occasionally be uninformed and inept as long as you pay your taxes.
 

Re: How do I reinstall LL safely in a win7/zorin/lubuntu/LL multiboot?
« Reply #8 on: September 21, 2016, 11:41:35 AM »
 

gold_finger

  • Documentation Writer
  • Platinum Level Poster
  • *****
  • 1094
    Posts
  • Reputation: 325
  • Linux Lite Member
    • View Profile

  • CPU: Intel Core2 Duo E7500 3.0GHz

  • MEMORY: 4Gb

  • VIDEO CARD: Intel 4 Series Integrated Graphics
It's generally frowned upon to create usernames with capital letters -- they're supposed to be composed of lowercase letters, numbers, and I believe you can also have "-" and "_" characters also.  Honestly, I don't know if using capital letters in the username will eventually cause some kind of problem.  If someone else knows the answer to that please chime in here.


If your son hasn't already done a lot of customizing of the LL system, you may want to consider deleting the "SamTheEditor" user and creating a new one with "sam-the-editor" instead.  (Or "samtheeditor", "sam_the_editor", etc.)  (EDIT:  Please see trinidad's post below warning about potential problems with using caps in the username.  It would definitely be best to re-create your son's LL username to one with no caps.  Copy off anything he wants saved in his home folder, delete the "SamTheEditor" account and it's home folder/files, make new one with no caps, copy back saved data into new home.)



I'll give instructions using "SamTheEditor" because that is what you've already got setup in LL.


In Lubuntu, this will create the new user and his home folders (on his first login):
Code: [Select]
sudo adduser --force-badname SamTheEditorYou'll be prompted to enter a password for the user.  Then it will ask if you want to set other user info (eg. full name, phone #, etc.).  You can just hit <ENTER> at each of the info prompts to leave blank if you don't want to fill them in.


At this point, run following command to make sure his user(SamTheEditor) and group(SamTheEditor) show the UID and GID = 1001.  (It should if you were the only user account setup on that system.  Having same username, UID and GID as he's using on LL will ensure easier sharing of files between the two systems, especially if you've got a shared data partition to be used by both.)
Code: [Select]
id SamTheEditor

Assuming correct UID and GID of 1001 shows above, use this command to add him to the other groups (matching what you did in LL):
Code: [Select]
sudo usermod -a -G adm,cdrom,dip,plugdev,users,lpadmin,sambashare SamTheEditor(NOTE:  there are no spaces in the comma-separated list of groups.)




P.s.  If you do decide to delete "SamTheEditor" from LL and replace with new username, use same commands listed above for Lubuntu but you can drop the "--force-badname" part of the first command.
« Last Edit: September 21, 2016, 12:46:22 PM by gold_finger »
Try Linux Beginner Search Engine for answers to Linux questions.
 

Re: How do I reinstall LL safely in a win7/zorin/lubuntu/LL multiboot?
« Reply #7 on: September 21, 2016, 05:05:19 AM »
 

m654321

  • Gold Level Poster
  • *******
  • 893
    Posts
  • Reputation: 86
  • Linux Lite Member, 'Advocate' & Donator
    • View Profile

  • CPU: Intel Pentium [email protected] (2cores) on an Asus X71Q

  • MEMORY: 4Gb

  • VIDEO CARD: Intel GM45 Express Chipset

  • Kernel: 4.x
Yes, if you decide to do away with Lubuntu, you can use Gparted to do that.  Can do that from either the LL install or live dvd/usb.  After it's deleted, just run sudo update-grub in a terminal in LL to eliminate its entry from grub menu.  No need to do anything in Windows.

I'm not familiar with Lubuntu so can't give gui instructions to add user; but can probably give terminal command if you post the output of following from terminals in both LL and Lubuntu.

Login to LL on son's computer under his username.

Open a terminal, enter these commands and copy/paste result back here:
Code: [Select]
id
groups

Shutdown, reboot into Lubuntu.  Login under your username if you haven't set anything at all for him yet.  Login with his username if you have set already, but don't have him added to all necessary groups.

If logged in as yourself, paste back result of this:
Code: [Select]
groups
If logged in as him, paste back:
Code: [Select]
id
groups

When you post back, don't forget to tell us which results go with LL vs. Lubuntu.  Basically, the plan is to setup his user account on Lubuntu with the same privileges you assigned to him on LL.
@gold_finger.
Output from terminal in LL, under son’s username:
Code: [Select]
SamTheEditor@happyfamily-X71Q:~$ id
uid=1001(SamTheEditor) gid=1001(SamTheEditor) groups=1001(SamTheEditor),4(adm),24(cdrom),30(dip),46(plugdev),100(users),109(lpadmin),110(sambashare)
SamTheEditor@happyfamily-X71Q:~$ groups
SamTheEditor adm cdrom dip plugdev users lpadmin sambashare
SamTheEditor@happyfamily-X71Q:~$

Output from terminal in Lubuntu, under my username (with nothing set up for him yet):
Code: [Select]
happyfamily@happyfamily-X71Q:~$ groups
happyfamily adm dialout fax cdrom floppy tape sudo dip video plugdev fuse lpadmin sambashare sam
happyfamily@happyfamily-X71Q:~$

Mike
64bit OS (32-bit on Samsung netbook) installed in Legacy mode on MBR-formatted SSDs (except pi which uses a micro SDHC card):
2017 - Raspberry pi 3B (4cores) ~ [email protected] - LibreElec, used for upgrading our Samsung TV (excellent for the task)  
2012 - Lenovo G580 2689 (2cores; 4threads] ~ [email protected] - LL3.8/Win8.1 dual-boot (LL working smoothly)
2011 - Samsung NP-N145 Plus (1core; 2threads) ~ Intel Atom [email protected] - LL 3.8 32-bit (64-bit too 'laggy')
2008 - Asus X71Q (2cores) ~ Intel [email protected] - LL4.6/Win8.1 dual-boot, LL works fine with kernel 4.15
2007 - Dell Latitude D630 (2cores) ~ Intel [email protected] - LL4.6, works well with kernel 4.4; 4.15 doesn't work
 

Re: How do I reinstall LL safely in a win7/zorin/lubuntu/LL multiboot?
« Reply #6 on: September 17, 2016, 05:56:59 AM »
 

gold_finger

  • Documentation Writer
  • Platinum Level Poster
  • *****
  • 1094
    Posts
  • Reputation: 325
  • Linux Lite Member
    • View Profile

  • CPU: Intel Core2 Duo E7500 3.0GHz

  • MEMORY: 4Gb

  • VIDEO CARD: Intel 4 Series Integrated Graphics
Yes, if you decide to do away with Lubuntu, you can use Gparted to do that.  Can do that from either the LL install or live dvd/usb.  After it's deleted, just run sudo update-grub in a terminal in LL to eliminate its entry from grub menu.  No need to do anything in Windows.


I'm not familiar with Lubuntu so can't give gui instructions to add user; but can probably give terminal command if you post the output of following from terminals in both LL and Lubuntu.


Login to LL on son's computer under his username.


Open a terminal, enter these commands and copy/paste result back here:
Code: [Select]
id
groups


Shutdown, reboot into Lubuntu.  Login under your username if you haven't set anything at all for him yet.  Login with his username if you have set already, but don't have him added to all necessary groups.


If logged in as yourself, paste back result of this:
Code: [Select]
groups

If logged in as him, paste back:
Code: [Select]
id
groups


When you post back, don't forget to tell us which results go with LL vs. Lubuntu.  Basically, the plan is to setup his user account on Lubuntu with the same privileges you assigned to him on LL.
Try Linux Beginner Search Engine for answers to Linux questions.
 

Re: How do I reinstall LL safely in a win7/zorin/lubuntu/LL multiboot?
« Reply #5 on: September 16, 2016, 11:53:37 PM »
 

m654321

  • Gold Level Poster
  • *******
  • 893
    Posts
  • Reputation: 86
  • Linux Lite Member, 'Advocate' & Donator
    • View Profile

  • CPU: Intel Pentium [email protected] (2cores) on an Asus X71Q

  • MEMORY: 4Gb

  • VIDEO CARD: Intel GM45 Express Chipset

  • Kernel: 4.x
I've installed a standard user account for my son, alongside my admin account, on LL2.8 & zorin9 in the win7/zorin/lubuntu/LL multiboot. Win7 already has the usual standard user & admin accounts setup.

Though setting up the standard user accounts was straightforward for LL & zorin, I'm unable to figure out how to do this for lubuntu.

Unless someone on the forum can advise on this, I would like to permanently delete lubuntu OS from the multiboot.  Should I do this is gparted and then run sudo update-grub (as I did when I reinstalled LL to the multiboot)?  As win7 has the bootloader, should I also run bootrec /fixboot and bootrec /fixmbr in the win7's command prompt (using the win7 repair disk), or do I risk inadvertently wiping LL & zorin from the PC along with lubuntu?

Many thanks again for any help on this.
Mike

PS. @gold_finger - yes, he seems to be really enjoying LL so far :)
« Last Edit: September 17, 2016, 12:00:01 AM by m654321 »
64bit OS (32-bit on Samsung netbook) installed in Legacy mode on MBR-formatted SSDs (except pi which uses a micro SDHC card):
2017 - Raspberry pi 3B (4cores) ~ [email protected] - LibreElec, used for upgrading our Samsung TV (excellent for the task)  
2012 - Lenovo G580 2689 (2cores; 4threads] ~ [email protected] - LL3.8/Win8.1 dual-boot (LL working smoothly)
2011 - Samsung NP-N145 Plus (1core; 2threads) ~ Intel Atom [email protected] - LL 3.8 32-bit (64-bit too 'laggy')
2008 - Asus X71Q (2cores) ~ Intel [email protected] - LL4.6/Win8.1 dual-boot, LL works fine with kernel 4.15
2007 - Dell Latitude D630 (2cores) ~ Intel [email protected] - LL4.6, works well with kernel 4.4; 4.15 doesn't work
 

Re: How do I reinstall LL safely in a win7/zorin/lubuntu/LL multiboot?
« Reply #4 on: September 11, 2016, 01:35:08 AM »
 

gold_finger

  • Documentation Writer
  • Platinum Level Poster
  • *****
  • 1094
    Posts
  • Reputation: 325
  • Linux Lite Member
    • View Profile

  • CPU: Intel Core2 Duo E7500 3.0GHz

  • MEMORY: 4Gb

  • VIDEO CARD: Intel 4 Series Integrated Graphics
Glad everything worked out.  Hope your son enjoys LL.
Try Linux Beginner Search Engine for answers to Linux questions.
 

Re: How do I reinstall LL safely in a win7/zorin/lubuntu/LL multiboot?
« Reply #3 on: September 10, 2016, 04:11:10 PM »
 

m654321

  • Gold Level Poster
  • *******
  • 893
    Posts
  • Reputation: 86
  • Linux Lite Member, 'Advocate' & Donator
    • View Profile

  • CPU: Intel Pentium [email protected] (2cores) on an Asus X71Q

  • MEMORY: 4Gb

  • VIDEO CARD: Intel GM45 Express Chipset

  • Kernel: 4.x
Many thanks goldfinger - I'm now marking this post as solved :)
The second scenario that you outlined was the one I had - I applied your solution & it worked.
You're a Champion!

Mike
« Last Edit: September 11, 2016, 01:14:55 AM by m654321 »
64bit OS (32-bit on Samsung netbook) installed in Legacy mode on MBR-formatted SSDs (except pi which uses a micro SDHC card):
2017 - Raspberry pi 3B (4cores) ~ [email protected] - LibreElec, used for upgrading our Samsung TV (excellent for the task)  
2012 - Lenovo G580 2689 (2cores; 4threads] ~ [email protected] - LL3.8/Win8.1 dual-boot (LL working smoothly)
2011 - Samsung NP-N145 Plus (1core; 2threads) ~ Intel Atom [email protected] - LL 3.8 32-bit (64-bit too 'laggy')
2008 - Asus X71Q (2cores) ~ Intel [email protected] - LL4.6/Win8.1 dual-boot, LL works fine with kernel 4.15
2007 - Dell Latitude D630 (2cores) ~ Intel [email protected] - LL4.6, works well with kernel 4.4; 4.15 doesn't work
 

Re: How do I reinstall LL safely in a win7/zorin/lubuntu/LL multiboot?
« Reply #2 on: September 10, 2016, 07:16:54 AM »
 

gold_finger

  • Documentation Writer
  • Platinum Level Poster
  • *****
  • 1094
    Posts
  • Reputation: 325
  • Linux Lite Member
    • View Profile

  • CPU: Intel Core2 Duo E7500 3.0GHz

  • MEMORY: 4Gb

  • VIDEO CARD: Intel 4 Series Integrated Graphics
Is the only reason you're re-installing LL 2.8 because you added that to the setup first, then added Lubuntu and now can't boot into LL 2.8 because grub menu item for it does not work?

If so, all you need to do is use live LL 2.8 dvd/usb to re-install grub from LL on disk to the MBR of the drive putting LL back in control of booting.  To do that follow these steps.  (NOTE:  I'm putting all instructions within code blocks -- just because I'm lazy.  Every line that begins with a "#" is just a comment line describing the command that follows it.  Only enter the commands into your terminal, not the comment lines.  Also, I'm assuming that you are not using a separate /boot partition on the drive.)

Code: [Select]
# Use the blkid command to list your partitions.  Make note of the LL 2.8 root partition device name.
sudo blkid -c /dev/null

# In examples below, X is the drive letter (a, b, c, etc.); Y is the partition number (1, 2, 3, etc.).
# Mount your LL 2.8 root partition to /mnt
sudo mount /dev/sdXY /mnt

# Run following command to install grub.
sudo grub-install --boot-directory=/mnt/boot /dev/sdX

# Unmount your LL 2.8 root partition.
sudo umount /dev/sdXY

# Close terminal and reboot computer.

# If all OS's don't show up in menu on reboot, boot into system then run this command to add them to menu:
sudo update-grub

# Done.


If fixing grub booting was not the problem and you really do need to re-install, you do not need to use GParted to delete the current LL partition first.  Just boot your live LL 2.8 dvd/usb, start the installer, pick the "Something else" install option.  That will bring you to the partition selection page where you can designate which partition to use for the install.  Just highlight the current LL root partition, click "Change" button.  In pop-up box:
  • Use as = Ext4 file system
  • Size = leave as is
  • Mount Point = /
  • Format = check box to format
  • Click "Done".  (If you get a message complaining that you changed the size of the partition -- even though you did not -- ignore it and click "Go Back" button.  All will be fine.)
No need to do anything with Swap partition -- it will get used automatically.


Near bottom of window, "Device for boot loader installation" should be set to "/dev/sda", assuming the drive being booted from is sda.


Click "Finish" button to complete the installation.  It will now re-format the old LL root partition and re-install to same place.  LL's grub will be in charge of booting all of the OSes, which is what you want.  (Having any other distro's grub in charge will result in failure to boot LL.)


If computer boots straight into LL without showing grub menu with other OS choices, open a terminal in LL and enter this command:
Code: [Select]
sudo update-grub

On next reboot all choices should show-up.


P.s.  If you're not sure which partition the current install of LL is on, just boot into it then enter this command in a terminal:
Code: [Select]
lsblk

Look to see which partition has the "/" (root) mount point listed next to it -- that's the partition you want to re-install to.
Try Linux Beginner Search Engine for answers to Linux questions.
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section