You are not logged in.

#1 2014-01-19 20:44:31

smsware
Member
From: Szczecin, Poland
Registered: 2012-08-14
Posts: 149
Website

My tty stopped to work, how to bring it back? GRUB2 configuration.

I was trying to set up plymouth as boot process of my system is pretty slow (after the fsck step and because of nilfs2 I'm using) so I wanted to make it more eye-candy than black screen. It's not working now and my tty (ctrl+alt+F2) is not working either (I can see only black screen w/o login prompt there)... I believe I mess sth up with my /etc/default/grub but I can't really remember how it looked like before my changes:

GRUB_DEFAULT=0
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="resume=/dev/disk/by-label/swap init=/usr/lib/systemd/systemd quiet splash elevator=bfq"
GRUB_CMDLINE_LINUX=""

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable Hidden Menu, and optionally hide the timeout count
GRUB_HIDDEN_TIMEOUT=2
GRUB_HIDDEN_TIMEOUT_QUIET=true

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
GRUB_TERMINAL_OUTPUT=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=auto

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter 
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx" 
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY=true

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper 
# modes only.  Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
#GRUB_THEME="/usr/share/grub/themes/starfiels/theme.txt"

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

#GRUB_SAVEDEFAULT="true"
GRUB_DISABLE_SUBMENU=y

My mkinitcpio (relevant part):

MODULES="i915"
HOOKS="base udev plymouth autodetect modconf block filesystems keyboard fsck"

Even copy of default /etc/default/grub would save me but understanding of what I did wrong would also be good... :-)

Edit: PS. is there any way to tell Pacman that I don't want to keep my configuration files while reinstalling the package?

Last edited by smsware (2014-01-19 20:46:58)

Offline

#2 2014-01-19 20:57:13

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: My tty stopped to work, how to bring it back? GRUB2 configuration.

I don't think that the bootloader configuration has anything to do with your inability to reach the getty.  You are probably going to have to just boot from a live media then disable those things that you think you might have done to cause these issues.  I would suspect that the addition of plymouth is probably the cause of the issue, but that is just a guess.

Since you are a nilfs2 user, why not just use its persistent snapshot functionality to roll the system back to some time before you made these changes?  I have never actually used nilfs2 before, but from reading about it, I think you can actually mount it from a previous timepoint.

Offline

#3 2014-01-19 20:59:59

smsware
Member
From: Szczecin, Poland
Registered: 2012-08-14
Posts: 149
Website

Re: My tty stopped to work, how to bring it back? GRUB2 configuration.

WonderWoofy wrote:

Since you are a nilfs2 user, why not just use its persistent snapshot functionality to roll the system back to some time before you made these changes?  I have never actually used nilfs2 before, but from reading about it, I think you can actually mount it from a previous timepoint.

I was using it to bring back so many things and... didn't think about it. I just went fully... thanks. ;-)

Offline

#4 2014-01-19 21:28:51

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: My tty stopped to work, how to bring it back? GRUB2 configuration.

Ha, thats great to hear that nilfs2 saved the day!

I have been thinking about trying it.  But development on it has slowed to a crawl and it still doesn't have all the features that a modern filesystem should like POSIX ACLs and extended attributes.  So that kind of scares me.  I am even a happy btrfs user, and am still scared.  Though btrfs is still in extremely active development and has gotten quite stable in the past year or so.

Offline

#5 2014-01-19 22:02:56

smsware
Member
From: Szczecin, Poland
Registered: 2012-08-14
Posts: 149
Website

Re: My tty stopped to work, how to bring it back? GRUB2 configuration.

Well, it didn't (but it could!)... it must have been happened earlier (the lack of getty, I mean) and I just didn't notice it. When I deleted plymouth hook, the plymouth started to work (what was starting it? there is no systemd service for that) and when I brought back my /etc/default/grub - it stopped to work again (so the changes I made were actually needed, just the hook wasn't...); still, with or without old grub file or hook - my getty is still missing. I really don't know what's going on but as I don't even know when my getty dissapeared - we probably won't find any solution. Still, it puzzles me, this plymouth.

After some time with nilfs2 (we talked about it 6 months ago - I had some troubles with understanding why CoW fs doesn't need fsck) I can tell you that it can save you but has it's issues:
1) Booting is really slow,
2) While rebooting or closing your system, it sometimes fails to do so (you can only see a bunch of nilfs2-related errors and need to reboot by hand),
3) Pacman and VirtualBox work much slower (it's not like the OS is slower - all the other tasks are done with the same speed as while using ext4).

I will get rid of it after Arch reinstallation, I'll just create two partitions: for /etc and /home/sms/documents. ;-)

Offline

#6 2014-01-19 22:45:40

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: My tty stopped to work, how to bring it back? GRUB2 configuration.

When a non-CoW filesystem writes a file, it doesn't just stick to the changed blocks.  So when the system boots up and does the fsck consistency check, it is simply ensuring that the journal matches what is actually on the filesystem.  With a CoW filesystem it knows that it is at least consistent to the last transaction, since any potentially interrupted transaction would have actually only been attempting to write new, changed blocks.  Everything else should be consistent since it wasn't actually touched.  This is particularly true for nilfs2 since it doesn't even remove the old changed blocks, but instead just keeps writing and moving b-tree pointers as necessary.

Plymouth has always puzzled me.  I have tried to implement it a couple of times.  Both times I decided that seeing it for ~1 second was not worth it. It was particularly not worth it since I was never able to make it work without trouble either.  I am not entirely sure how Fedora and other distributions are able to make it work right... though the last time I tried Fedora, plymouth just failed.

Offline

Board footer

Powered by FluxBB