LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 02-08-2020, 12:22 PM   #46
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,392

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594

your should be able to skip the update-grub command, if you already run it before.
 
Old 02-08-2020, 12:27 PM   #47
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,392

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
This
Code:
sudo mount --bind /dev /mnt/dev
sudo mount --bind /dev/pts /mnt/dev/pts
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo mount --bind /run /mnt/run
and this
Code:
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i
basically does the same thing. For some reason it is easier for me to remember the mount --bind commands versus the single command.

Last edited by colorpurple21859; 02-08-2020 at 12:30 PM.
 
Old 02-08-2020, 12:27 PM   #48
Rotwang2
Member
 
Registered: Aug 2014
Distribution: Ubuntu, Centos, Fedora
Posts: 210

Original Poster
Rep: Reputation: Disabled
ok restarting now then
 
Old 02-08-2020, 12:48 PM   #49
Rotwang2
Member
 
Registered: Aug 2014
Distribution: Ubuntu, Centos, Fedora
Posts: 210

Original Poster
Rep: Reputation: Disabled
OK same results.

Btw if it matters- the grub menu is the same (for both "ubuntu" entries I pick in bios):

http://onehammer.com/IMG_20200208_133116.jpg

(If I reinstalled ubuntu from scratch and in the "Something else" I set the efi drive to mount at /boot/efi or would I still be screwed?) I'm will to keep going just for fun but I'd be nice to know I have a fall-back.
 
Old 02-08-2020, 04:27 PM   #50
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,392

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
boot the live iso mount your root partition to /mnt
edit the /mnt/etc/fstab change this
Code:
/swapfile                                 none            swap    sw              0       0
to this
Code:
#/swapfile                                 none            swap    sw              0       0
Then try to boot your system

Last edited by colorpurple21859; 02-08-2020 at 04:29 PM.
 
Old 02-08-2020, 04:39 PM   #51
Rotwang2
Member
 
Registered: Aug 2014
Distribution: Ubuntu, Centos, Fedora
Posts: 210

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
boot the live iso mount your root partition to /mnt
edit the /mnt/etc/fstab change this
Code:
/swapfile                                 none            swap    sw              0       0
to this
Code:
#/swapfile                                 none            swap    sw              0       0
Then try to boot your system
Oh it's good to see you back I was about to give up and try reinstalling by properly mouted at /boot/efi. (that won't work right?)

OK my fstab doesn't have a swapfile entry, all it has is:

ubuntu@ubuntu:/mnt$ more /etc/fstab
overlay / overlay rw 0 0
tmpfs /tmp tmpfs nosuid,nodev 0 0

So effectively its non-existence is the same a commenting out the line.

Btw there is a swapfile in /

(And yes this I'm doing that on the mounted / not the live disk) sudo mount /dev/sda3 /mnt
 
Old 02-08-2020, 04:46 PM   #52
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,392

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
Quote:
Btw there is a swapfile in /
run this command
Code:
mv /swapfile /swapfile.bak
see if that does anything
 
Old 02-08-2020, 04:51 PM   #53
Rotwang2
Member
 
Registered: Aug 2014
Distribution: Ubuntu, Centos, Fedora
Posts: 210

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
run this command
Code:
mv /swapfile /swapfile.bak
see if that does anything

OK here I go. (I think I know what you're trying here- I doubt it'll work but at this point we'll try anything ug)

Hey also have you heard of "swappiness"? Your method of changing the file name is much better but I figured I throw that at you.

ok brb.
 
Old 02-08-2020, 05:06 PM   #54
Rotwang2
Member
 
Registered: Aug 2014
Distribution: Ubuntu, Centos, Fedora
Posts: 210

Original Poster
Rep: Reputation: Disabled
Nope. Different results this time:

http://onehammer.com/IMG_20200208_175554.jpg

It's interesting that it didn't just create a new swap file.
 
Old 02-08-2020, 05:09 PM   #55
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,392

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
what happens if you type exit
 
Old 02-08-2020, 05:11 PM   #56
Rotwang2
Member
 
Registered: Aug 2014
Distribution: Ubuntu, Centos, Fedora
Posts: 210

Original Poster
Rep: Reputation: Disabled
haha I can't remember. ok I'll go back in sigh lol. brb
 
Old 02-08-2020, 05:20 PM   #57
Rotwang2
Member
 
Registered: Aug 2014
Distribution: Ubuntu, Centos, Fedora
Posts: 210

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Rotwang2 View Post
haha I can't remember. ok I'll go back in sigh lol. brb
Not surprisingly it goes to the purple screen again for like 1 second and then displays the emergency prmpt again.

I'm typing this on my cell i've still got it open
if you want me to try any commands
 
Old 02-08-2020, 05:32 PM   #58
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,392

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
boot the live iso mount /dev/sda3 /mnt
nano /mnt/etc/fstab
comment out the /swapfile line with # at the beginning of it
 
Old 02-08-2020, 05:37 PM   #59
Rotwang2
Member
 
Registered: Aug 2014
Distribution: Ubuntu, Centos, Fedora
Posts: 210

Original Poster
Rep: Reputation: Disabled
Oh you missed one of my responses- there is no swapfile line in the /etc/fstab
 
Old 02-08-2020, 05:41 PM   #60
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,392

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
according to your paste.bin
Quote:
=============================== sda3/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda3 during installation
UUID=2d3eceb0-bf74-4e81-932d-0cf3e2d6f8e4 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
#UUID=0D5E-2089 /boot/efi vfat umask=0077 0 1
# /home was on /dev/sda2 during installation
UUID=12179cca-865d-4412-a13d-58d818df282c /home ext4 defaults 0 2
/swapfile none swap sw 0 0
UUID=0D5E-2089 /boot/efi vfat defaults 0 1
so either your looking at the wrong /etc/fstab or it has changed for some reason.
 
  


Reply



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
How do I reinstall Grub and Efi (or Uefi) on my external HDD after I accidentally deleted the partition. Choklit Linux - Software 4 12-24-2019 03:42 PM
[SOLVED] Ooooy. EFI boot mmx64.efi.efi not found bulgin Linux - Newbie 12 12-20-2018 11:03 AM
[SOLVED] Can't find /boot/efi/EFI/Slackware/vmlinuz kernel configuration ironQiu Slackware 4 02-09-2015 06:21 AM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
Can I delete and reinstall Ubuntu 8.04 and keep a home partition? win_to_lin_migrant Ubuntu 4 01-18-2009 12:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 10:17 PM.

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
Open Source Consulting | Domain Registration