LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-29-2020, 03:51 PM   #1
littlebigman
Member
 
Registered: Aug 2008
Location: France
Posts: 658

Rep: Reputation: 35
Question Why would a faulty(?) SD card prevent Debian from booting?


Hello,

After cleanly rebooting an appliance that runs Debian off a USB key drive, I proceeded to move the drive to a Linux workstation, and image it for the day when it dies and I need to build a new one fast.

This appliance also has an FAT32-formatted SD card that I use as an easy way to copy files to/from Windows. The whole Debian system lives on the USB key drive.

But when I slid the USB drive back into the appliance, the /boot partition loaded OK, but / didn't:

Code:
…
[  OK  ] Reached target Swap.
[  OK  ] Started File System Check on /dev/d…106d8-83af-47ab-bd56-bdfd2d4711f3.
         Mounting /boot...
[   13.925920] EXT4-fs (sda1): mounting ext2 file system using the ext4 subsystem
[   13.942175] EXT4-fs (sda1): mounted filesystem without journal. Opts: (null)
[  OK  ] Mounted /boot.
[ TIME ] Timed out waiting for device dev-disk-by\x2duuid-BF90\x2dFE5B.device.
[DEPEND] Dependency failed for /mnt/sdcard.
[DEPEND] Dependency failed for Local File Systems.
[  OK  ] Started ifup for eth0.
         Starting Raise network interfaces...
[  OK  ] Reached target Timers.
[  OK  ] Closed Syslog Socket.
[  OK  ] Reached target Login Prompts.
         Starting Create Volatile Files and Directories...
[  OK  ] Started Emergency Shell.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Emergency Mode.
[  OK  ] Started Create Volatile Files and Directories.
[  OK  ] Reached target System Time Synchronized.
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Started Update UTMP about System Boot/Shutdown.
         Starting Update UTMP about System Runlevel Changes...
[  OK  ] Started Update UTMP about System Runlevel Changes.
[  OK  ] Started Raise network interfaces.
[  OK    102.699581] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
m] Reached target Network.
[  OK  ] Reached target Network is Online.

You are in emergGive root password for maintenance
(or press Control-D to continue): [  104.403462] mv643xx_eth_port mv643xx_eth_port.0 eth0: link u                  p, 
Give root password for maintenance
(or press Control-D to continue):
After a bit of head scratching, it appears the issue was not with the USB key drive's root filesystem, but with the SD card: After commenting it out in /etc/fstab and rebooting, Debian went up successfully.

Considering fsck says nothing and the whole Debian lives in the USB drive… why does the SD card prevent Debian from booting up?

Code:
~# cat /etc/fstab
UUID=2ef427a6-37b0-494a-9eda-5f627e2d633f /               ext4    errors=remount-ro 0       1
UUID=d71106d8-83af-47ab-bd56-bdfd2d4711f3 /boot           ext2    defaults        0       2
UUID=7d3971ad-2dca-4ae6-b67a-27b2190df289 none            swap    sw              0       0

#SD card
#UUID=BF90-FE5B /mnt/sdcard     vfat    dmask=000,fmask=0177,user       0       0
#Debian could start OK after I commented out the following line
#UUID=BF90-FE5B /mnt/sdcard     vfat    dmask=000,fmask=0111,user       0       0

~# fsck /dev/mmcblk0p1
fsck from util-linux 2.29.2
fsck.fat 4.1 (2017-01-24)
/dev/mmcblk0p1: 3 files, 18971/1952650 clusters
Thank you.

* dd if=/dev/sdc of=My.appliance.boot.image.dd conv=notrunc status=progress
 
Old 06-29-2020, 04:23 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
This is not about a corrupted filesystem. The error is "Timed out waiting for device". My guess: The card reader has intermittent problems or takes too long to get activated.

EDIT: You could use options nofail or x-systemd.device-timeout. See https://www.freedesktop.org/software...emd.mount.html.

Last edited by berndbausch; 06-29-2020 at 04:27 PM.
 
Old 06-30-2020, 01:01 AM   #3
littlebigman
Member
 
Registered: Aug 2008
Location: France
Posts: 658

Original Poster
Rep: Reputation: 35
Thank you.
 
Old 06-30-2020, 04:57 AM   #4
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,489

Rep: Reputation: Disabled
From (reading) your other threads, you have an ARM device, which uses a FAT partition to load the bootloader for the Arm processor, that then reads Debian from a Linux file system.

So, you should have /dev/mmcblk0p1 which will be FAT file system, & /dev/sda1 which is your ext2 Debian file system.
The FAT partition will be /boot, the ext2 partition is the rest of the Debian system (/).

EDIT: This is where your boot process is failing...
[ TIME ] Timed out waiting for device dev-disk-by\x2duuid-BF90\x2dFE5B.device.
[DEPEND] Dependency failed for /mnt/sdcard.
[DEPEND] Dependency failed for Local File Systems.

Not sure why it says /mnt/sdcard - likely this could be where you need to look.

Last edited by fatmac; 06-30-2020 at 05:05 AM.
 
  


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
SD card not mounted on Ubuntu Lite 3.6 - card reader not faulty rosyfairbottom Linux - Newbie 3 10-30-2017 11:58 AM
RAID1: can't replace faulty spare (marked again as 'faulty spare' within seconds) Thambry Linux - General 2 11-14-2013 07:31 AM
Faulty card or faulty config? svar Linux - Networking 4 09-02-2009 09:39 AM
Faulty CF card unev_21 Linux - Software 4 06-03-2009 07:00 AM
faulty pci card, has it happened to you? stabu Linux - Hardware 3 09-11-2004 04:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:16 AM.

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