LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-14-2021, 09:12 AM   #1
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,711

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Question Tweaked my fstab, now I can't boot into my distro.


Hi.

I followed some steps here: https://wiki.debian.org/%20SSDOptimization

I rebooted and got to the LUKS password screen. I enter my password then get this: [see attached image].

I can access and unlock the SSD with my Debian install by running a Live USB (MX Linux 21).

I had previously restored my fstab from a working backup but that didn't fix the problem.

Has anyone any idea?

Thanks.
Attached Thumbnails
Click image for larger version

Name:	image20211214_144245519.jpg
Views:	35
Size:	259.9 KB
ID:	37854  

Last edited by linustalman; 12-14-2021 at 09:14 AM.
 
Old 12-14-2021, 09:17 AM   #2
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,345

Rep: Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588
Quote:
I enter my password then get this: [see attached image].
What attached image?
If you know what changes you made to the fstab you should be able to change it back from the live usb.
post the fstab and
Code:
df -h
lsblk -f
 
Old 12-14-2021, 09:37 AM   #3
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,711

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Post

Quote:
Originally Posted by colorpurple21859 View Post
What attached image?
If you know what changes you made to the fstab you should be able to change it back from the live usb.
post the fstab and
Code:
df -h
lsblk -f
Hi colorpurple21859.

Sorry, I forgot to add the image after posting the first comment. It was added later.

---

Old working fstab:
Code:
# /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).
#
# systemd generates mount units based on this file, see systemd.mount(5).
# Please run 'systemctl daemon-reload' after making changes here.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/mapper/DXXX21--vg-root /               ext4    errors=remount-ro 0       1
# /boot was on /dev/sda2 during installation
UUID=306XXXXX-XXXX-XXXX-XXXX-XXXXXXX550e1 /boot           ext2    defaults        0       2
# /boot/efi was on /dev/sda1 during installation
UUID=3XXX-XXXF  /boot/efi       vfat    umask=0077      0       1
/dev/mapper/DXXX21--vg-swap_1 none            swap    sw              0       0
/dev/disk/by-uuid/d4XXXXXb-2XX0-4XXc-bXX1-2XXXXXXXXX32 /mnt/d4XXXXab-2XX0-4XXXdc-bXX1-26XXXXXXX632 auto nosuid,nodev,nofail,x-gvfs-show,noauto 0 0
---

The other fstab seems to be changed when I try to boot into my Debian distro. It's:
Code:
# /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).
#
# systemd generates mount units based on this file, see systemd.mount(5).
# Please run 'systemctl daemon-reload' after making changes here.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
#/dev/mapper/DXXX21--vg-root /               ext4    errors=remount-ro 0       1
/dev/mapper/DXXX21--vg-root /               ext4    discard,noatime,commit=600,errors=remount-ro 0       1
# /boot was on /dev/sda2 during installation
##UUID=30XXXXX8c-0XXb-4XX3-b687-9022329550e1 /boot           ext2    defaults        0       2
UUID=30XXXXX-0XXb-4XX3-bXX7-90XXXXXXXXe1 /boot           ext2    discard,noatime,commit=600,defaults        0       2

# /boot/efi was on /dev/sda1 during installation
#UUID=3XX3-8XXF  /boot/efi       vfat    umask=0077      0       1
#/dev/mapper/DXXX21--vg-swap_1 none            swap    sw              0       0
#/dev/disk/by-uuid/dXXXXXXb-2XX90-4XXc-bXX1-26XXXXXXX32 /mnt/d4XXXXab-2XX0-4XXc-bXX1-2XXXXXXX632 auto nosuid,nodev,nofail,x-gvfs-show,noauto 0 0
---

demo@mx1:~
$ df -h
Code:
Filesystem                   Size  Used Avail Use% Mounted on
/dev/sdc1                    1.8G  1.8G     0 100% /live/boot-dev
/dev/loop0                   1.8G  1.8G     0 100% /live/linux
tmpfs                         25G  583M   25G   3% /live/aufs-ram
overlay                       25G  583M   25G   3% /
tmpfs                         10M     0   10M   0% /media
tmpfs                        3.2G  2.9M  3.2G   1% /run
tmpfs                        100M  7.9M   93M   8% /live
tmpfs                         16G  6.0M   16G   1% /tmp
devtmpfs                      16G  4.0K   16G   1% /dev
tmpfs                        5.0M  8.0K  5.0M   1% /run/lock
tmpfs                        6.3G     0  6.3G   0% /dev/shm
cgroup                        12K     0   12K   0% /sys/fs/cgroup
tmpfs                        3.2G   20K  3.2G   1% /run/user/1000
/dev/sdd1                     59G  721M   58G   2% /media/demo/P6XXXXXgs14
/dev/mapper/DXXX21--vg-root  1.8T  694G  1.1T  40% /media/demo/f93XXXXc-1XXf-4XX6-9XX3-78XXXXXX6d6
demo@mx1:~
$ lsblk -f
Code:
NAME      FSTYPE FSVER LABEL        UUID                                   FSAVAIL FSUSE% MOUNTPOINT
loop0     squash 4.0                                                             0   100% /live/linu
sda                                                                                       
├─sda1    ext2   1.0                d4XXXXab-2XX0-4XXc-bXX1-2XXXXX49632                  
├─sda2                                                                                    
└─sda5    crypto 2                  6XXXXX59-7XXd-4XX5-aXXf-f9XXXXXX6d87                  
sdb                                                                                       
├─sdb1    vfat   FAT32              3XX3-8XXF                                             
├─sdb2    ext2   1.0                30XXXX8c-0XXb-4XX3-bXX7-90XXXXX550e1                  
└─sdb3    crypto 2                  f1XXXXX5-4XXf-4XX9-aXXd-bXXXXXX1cae                  
  └─luks-f1dXXXXX5-4XXf-4XX9-aXXd-bXXXXXXXae
          LVM2_m LVM2               gXXX8C-1XXz-HXXr-eXXb-3XXXd-hXX9-TXXXwc                
    ├─DXXX21--vg-root
    │     ext4   1.0                fXXXXfc-1XXf-4XX6-9X3-7XXXXXXXX6        1T    38% /media/dem
    └─DXXXX21--vg-swap_1
          swap   1                  5XXXXX5-5XX0-4XX7-aXXa-5XXXXXXbb                  
sdc       iso966 Jolie MX-Live      2021-10-19-23-10-23-00                                
├─sdc1    iso966 Jolie MX-Live      2021-10-19-23-10-23-00                       0   100% /live/boot
└─sdc2    vfat   FAT12 EFI-LIVE     7249-CF0E                                             
sdd                                                                                       
└─sdd1    vfat   FAT32 P6XXXXX14  9XX4-AXX1                                57.9G     1% /media/dem
nvme0n1                                                                                   
└─nvme0n1p1
          ext4   1.0   PCS_128GB_SSD
                                    1XXXXXab-cXXd-4XX1-8XX6-3XXXXXXX59
---

I redacted some parts (with Xs) as I'm unsure if it's sensitive info or not.

Last edited by linustalman; 12-14-2021 at 09:38 AM.
 
Old 12-14-2021, 09:42 AM   #4
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,711

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Post

It looks like my SSD is sdb -- I think I may have ran commands from https://wiki.debian.org/%20SSDOptimization with sda.

Edit: I recall running these on my Debian instance:
Code:
# echo "block/sdX/queue/scheduler = deadline" >> /etc/sysfs.conf
then later after realising the above was an example drive letter:
Code:
# echo "block/sda/queue/scheduler = deadline" >> /etc/sysfs.conf
Could these be the issue?

Last edited by linustalman; 12-14-2021 at 10:05 AM.
 
Old 12-14-2021, 11:10 AM   #5
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,711

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
I also ran these after tweaking my fstab on my SSD Debian.
Code:
sudo systemctl daemon-reload
Code:
sudo update-grub
 
Old 12-14-2021, 12:19 PM   #6
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,711

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Lightbulb

Removing the "commit=600" from the /boot line solved it! Thanks go to petn-randall in #debian.
 
  


Reply

Tags
boot error, debian, fstab, ssd



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
LXer: Oracle revs home-tweaked Linux kernel to 2.0 LXer Syndicated Linux News 0 03-14-2012 04:50 AM
How to make an image (back-up) for easily restoring tweaked operating system CharlieBucket Linux - Software 2 09-23-2007 04:32 PM
Adding lxm3200-tweaked to CUPS xode Mandriva 0 07-06-2005 02:19 PM
X-Windows Resolution Tweaked - ThinkPad 755CD mlsw Linux - Laptop and Netbook 14 10-07-2003 03:35 AM
this needs to be tweaked for SCO // IBM SuseBoy General 2 07-25-2003 01:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12: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