LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-23-2017, 02:37 PM   #1
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 9 Stable (Stretch) x64
Posts: 3,426

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Question Error at bootup: modprobe: bad line 1: 1 tokens found, 2 needed


Hi.

I get this error at bootup. I use LUKS.

Code:
modprobe: bad line 1: 1 tokens found, 2 needed
It does not seem to be causing any issue but I'd prefer it to be remedied.

Any tips?

Thanks.
 
Old 03-23-2017, 09:46 PM   #2
cyent
Member
 
Registered: Aug 2001
Location: ChristChurch New Zealand
Distribution: Ubuntu
Posts: 349

Rep: Reputation: 76
Any clues on which line?

Probably something in /etc/modprobe.d/

Some more context from dmesg or journalctl may help
 
Old 03-24-2017, 09:56 AM   #3
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 9 Stable (Stretch) x64
Posts: 3,426

Original Poster
Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Post

Quote:
Originally Posted by cyent View Post
Any clues on which line?

Probably something in /etc/modprobe.d/

Some more context from dmesg or journalctl may help
Hi cyent.

I ran dmesg & journalctl as root but they gave massive outputs.

In /etc/modprobe.d/dkms.conf I see 'modprobe' mentioned.

Contents:
Code:
# modprobe information used for DKMS modules
#
# This is a stub file, should be edited when needed,
# used by default by DKMS.

Last edited by linustalman; 03-24-2017 at 09:57 AM.
 
Old 03-24-2017, 10:00 AM   #4
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 9 Stable (Stretch) x64
Posts: 3,426

Original Poster
Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
I'm don't think the error has anything to do with LUKS but I see the error on the screen where I enter the LUKS passphrase.
 
Old 03-26-2017, 03:50 PM   #5
cyent
Member
 
Registered: Aug 2001
Location: ChristChurch New Zealand
Distribution: Ubuntu
Posts: 349

Rep: Reputation: 76
journalctl usually feeds to a pager like less, so you can search for the error line.

/bad line

And then paste the couple of lines around that here and we might have something to work on.
 
Old 03-28-2017, 08:26 AM   #6
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 9 Stable (Stretch) x64
Posts: 3,426

Original Poster
Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Post

Here's a screen grab of the error.
Attached Thumbnails
Click image for larger version

Name:	warning.jpg
Views:	37
Size:	225.8 KB
ID:	24626  
 
Old 03-28-2017, 08:29 AM   #7
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 9 Stable (Stretch) x64
Posts: 3,426

Original Poster
Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Post

Quote:
Originally Posted by cyent View Post
journalctl usually feeds to a pager like less, so you can search for the error line.

/bad line

And then paste the couple of lines around that here and we might have something to work on.
I ran sudo journalctl > 1.txt but found no "/bad line"
 
Old 03-28-2017, 03:00 PM   #8
cyent
Member
 
Registered: Aug 2001
Location: ChristChurch New Zealand
Distribution: Ubuntu
Posts: 349

Rep: Reputation: 76
Also search the output of dmesg and journalctl for anything to do with modprobe.
 
Old 03-29-2017, 02:39 PM   #9
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 9 Stable (Stretch) x64
Posts: 3,426

Original Poster
Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Quote:
Originally Posted by cyent View Post
Also search the output of dmesg and journalctl for anything to do with modprobe.
Tried both - no mentions.
 
Old 03-29-2017, 03:34 PM   #10
cyent
Member
 
Registered: Aug 2001
Location: ChristChurch New Zealand
Distribution: Ubuntu
Posts: 349

Rep: Reputation: 76
Ok.

lsmod

Then sudo modprobe XXXX

where XXXX is any module in the list.

Hopefully it will output that error message.

It it does give you the error message, but not a clue, try

sudo strace modprobe XXXX


Else let's hit it with a LARGE hammer.

lsmod | cut -d ' ' -f 1 | tail -n +2 | xargs -n 1 echo modprobe | sudo bash -x

That will hopefully force modprobe to try probe every module in your system

Hopefully something will trigger the error message.
 
Old 03-30-2017, 02:03 PM   #11
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 9 Stable (Stretch) x64
Posts: 3,426

Original Poster
Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Quote:
Originally Posted by cyent View Post
...

Else let's hit it with a LARGE hammer.

lsmod | cut -d ' ' -f 1 | tail -n +2 | xargs -n 1 echo modprobe | sudo bash -x

...
Could that line do harm?
 
Old 03-30-2017, 02:05 PM   #12
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 9 Stable (Stretch) x64
Posts: 3,426

Original Poster
Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Question

Quote:
Originally Posted by cyent View Post
Ok.

lsmod

Then sudo modprobe XXXX

where XXXX is any module in the list.

...
What module? I'm confused. *_*

I might just let this thread go as I will switch to Debian 9 soon anyway.
 
Old 03-30-2017, 02:11 PM   #13
cyent
Member
 
Registered: Aug 2001
Location: ChristChurch New Zealand
Distribution: Ubuntu
Posts: 349

Rep: Reputation: 76
The linux kernel has parts of it, called modules, that you can load and unload at runtime. (And this is true for whichever distro you use)


lsmod list the ones currently installed.

Loading a module you don't need is harmless, except in the sense it wastes ram.

Older versions of the kernel (and even current ones if you choose to configure it so) simply compiled in the modules at link time and left them there.

The module conf files just allow to set various parameters on the modules when you load them.

You can set those parameters explicitly when you use insmod to load a specific module.

modprobe will load a module AND EVERYTHING IT DEPENDS ON. ie. You can't put the parameters for all the modules it might load on the command line as you don't know what it will load.
 
Old 03-31-2017, 08:33 AM   #14
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 9 Stable (Stretch) x64
Posts: 3,426

Original Poster
Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Post

Thanks for sticking by Cyent.

Code:
lsmod | cut -d ' ' -f 1 | tail -n +2 | xargs -n 1 echo modprobe | sudo bash -x
Output:

Code:
+ modprobe rt73usb
+ modprobe rt2x00usb
+ modprobe rt2x00lib
+ modprobe crc_itu_t
+ modprobe ctr
+ modprobe ccm
+ modprobe cpufreq_userspace
+ modprobe cpufreq_powersave
+ modprobe cpufreq_conservative
+ modprobe binfmt_misc
+ modprobe ip6t_REJECT
+ modprobe nf_reject_ipv6
+ modprobe nf_log_ipv6
+ modprobe xt_hl
+ modprobe nfsd
+ modprobe auth_rpcgss
+ modprobe nfs_acl
+ modprobe ip6t_rt
+ modprobe nfs
+ modprobe lockd
+ modprobe grace
+ modprobe fscache
+ modprobe nf_conntrack_ipv6
+ modprobe nf_defrag_ipv6
+ modprobe sunrpc
+ modprobe ipt_REJECT
+ modprobe nf_reject_ipv4
+ modprobe nf_log_ipv4
+ modprobe nf_log_common
+ modprobe xt_LOG
+ modprobe xt_limit
+ modprobe xt_tcpudp
+ modprobe xt_addrtype
+ modprobe nf_conntrack_ipv4
+ modprobe nf_defrag_ipv4
+ modprobe xt_conntrack
+ modprobe ip6table_filter
+ modprobe ip6_tables
+ modprobe nf_conntrack_netbios_ns
+ modprobe nf_conntrack_broadcast
+ modprobe nf_nat_ftp
+ modprobe nf_nat
+ modprobe nf_conntrack_ftp
+ modprobe nf_conntrack
+ modprobe iptable_filter
+ modprobe ip_tables
+ modprobe x_tables
+ modprobe arc4
+ modprobe rtl8192cu
+ modprobe rtl_usb
+ modprobe rtl8192c_common
+ modprobe rtlwifi
+ modprobe mac80211
+ modprobe cfg80211
+ modprobe intel_rapl
+ modprobe snd_hda_codec_hdmi
+ modprobe x86_pkg_temp_thermal
+ modprobe intel_powerclamp
+ modprobe nouveau
+ modprobe coretemp
+ modprobe snd_hda_codec_realtek
+ modprobe snd_hda_codec_generic
+ modprobe kvm_intel
+ modprobe snd_hda_intel
+ modprobe snd_hda_codec
+ modprobe kvm
+ modprobe snd_hda_core
+ modprobe snd_hwdep
+ modprobe mxm_wmi
+ modprobe ttm
+ modprobe snd_pcm
+ modprobe snd_timer
+ modprobe drm_kms_helper
+ modprobe eeepc_wmi
+ modprobe asus_wmi
+ modprobe drm
+ modprobe snd
+ modprobe sparse_keymap
+ modprobe iTCO_wdt
+ modprobe irqbypass
+ modprobe intel_cstate
+ modprobe soundcore
+ modprobe i2c_algo_bit
+ modprobe rfkill
+ modprobe iTCO_vendor_support
+ modprobe intel_uncore
+ modprobe evdev
+ modprobe serio_raw
+ modprobe intel_rapl_perf
+ modprobe ie31200_edac
+ modprobe mei_me
+ modprobe pcspkr
+ modprobe edac_core
+ modprobe wmi
+ modprobe lpc_ich
+ modprobe mfd_core
+ modprobe battery
+ modprobe shpchp
+ modprobe video
+ modprobe mei
+ modprobe i2c_i801
+ modprobe i2c_smbus
+ modprobe button
+ modprobe tpm_tis
+ modprobe tpm_tis_core
+ modprobe tpm
+ modprobe fuse
+ modprobe parport_pc
+ modprobe ppdev
+ modprobe lp
+ modprobe parport
+ modprobe autofs4
+ modprobe ext4
+ modprobe crc16
+ modprobe jbd2
+ modprobe fscrypto
+ modprobe mbcache
+ modprobe algif_skcipher
+ modprobe af_alg
+ modprobe dm_crypt
+ modprobe dm_mod
+ modprobe sr_mod
+ modprobe cdrom
+ modprobe sg
+ modprobe sd_mod
+ modprobe hid_generic
+ modprobe usbhid
+ modprobe uas
+ modprobe ata_generic
+ modprobe hid
+ modprobe usb_storage
+ modprobe crct10dif_pclmul
+ modprobe crc32_pclmul
+ modprobe crc32c_intel
+ modprobe ghash_clmulni_intel
+ modprobe aesni_intel
+ modprobe aes_x86_64
+ modprobe lrw
+ modprobe gf128mul
+ modprobe glue_helper
+ modprobe ablk_helper
+ modprobe cryptd
+ modprobe ata_piix
+ modprobe libata
+ modprobe xhci_pci
+ modprobe ehci_pci
+ modprobe xhci_hcd
+ modprobe ehci_hcd
+ modprobe scsi_mod
+ modprobe usbcore
+ modprobe r8169
+ modprobe mii
+ modprobe usb_common
+ modprobe thermal
+ modprobe fan
+ modprobe fjes
 
Old 04-02-2017, 04:12 PM   #15
cyent
Member
 
Registered: Aug 2001
Location: ChristChurch New Zealand
Distribution: Ubuntu
Posts: 349

Rep: Reputation: 76
Weird. No error message.

Anything generated by that command in either dmesg or journalctl?
 
  


Reply

Tags
bootup, error, modprobe


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
modprobe says EVERY line in modules.conf is bad rkenneha Linux - Newbie 5 12-16-2011 11:15 AM
Where should modprobe go for bootup? Dan63043 Linux - General 2 07-21-2006 02:07 PM
SUSE: 'modprobe' on bootup. unreal128 Linux - Networking 6 03-29-2005 03:49 PM
Bad disk error on bootup spartanM19SSM Fedora - Installation 2 10-25-2004 04:17 AM
I need help bad! The good ole No Init Found Error! Please Help! Gage33 Linux - General 0 10-05-2002 10:48 AM

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

All times are GMT -5. The time now is 04:25 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration