Questions tagged [cmdline.txt]

cmdline.txt is a file for passing arguments to the Linux kernel during the boot process.

Filter by
Sorted by
Tagged with
0 votes
1 answer
275 views

Forcing HDMI output on Bookworm

I want to force both Raspberry 4 HDMI output's to 1920x1080@60Hz in desktop mode where either one output doesn't necessarily have a HDMI connected but usually will but often not at the same time. When ...
kleurbleur's user avatar
0 votes
2 answers
221 views

Connect a RPi with static IP (cmdline.txt: ip=169.254.0.xx i.e. APIPA range), but without 120 seconds waiting time if no ethernet cable

I connect a headless RPi to a laptop. Putting ip=169.254.0.55 at the end of cmdline.txt has this major advantage: since this address is in APIPA "Automatic Private Internet Protocol Addressing&...
Basj's user avatar
  • 772
0 votes
0 answers
49 views

Cannot set MAC address for Pi Zero W USB ethernet gadget

I am trying to create a portable debian system that runs on pi zero w using the 0W image from debian-downloads, I downloaded the image and flashed it to an sd card using etcher.io, next I edited ...
misha's user avatar
  • 1
0 votes
1 answer
182 views

how to prevent rpi4 s to overwrite the cmdline.txt

I added to the cmdline.txt instructions usb-storage.quirks=152d:0578:u force_mac_address=dc:a6:32:e6:58:51 to correct issues with a sata-usb interface and to change the mac address. The quirks are ...
user855443's user avatar
1 vote
1 answer
398 views

How to update wifi and static ip settings on existing Raspberry Pi via the SD card?

I'm trying to add an additional network to a Raspberry Pi 4 running Buster that I use on my home network that I am travelling with. The location I am staying in appears to have Wifi delivered via a ...
nizz0k's user avatar
  • 119
0 votes
0 answers
73 views

Can a RPi be network booted with an NFS other than NFSv3?

Please excuse me if I am asking this question in the wrong place: I'm trying to network boot Ubuntu 22.04 on a Raspberry Pi 4B, and I'm not entirely clear where Raspberry ends and Ubuntu begins :-) ...
Stephen Winnall's user avatar
3 votes
2 answers
4k views

How do I reset the lost password of a Pi 4 running Ubuntu server?

I would like to reset the password of my raspberry pi 4 4gb running Ubuntu server 20.04, most tutorials involve adding init=/bin/sh to cmdline.txt, however when I do this I get a kernel panic. Roughly ...
OskarZyg's user avatar
1 vote
0 answers
358 views

How to edit coherent_pool setting via cmdline.txt

I have a problem with connecting multiple USB devices to a RPI3B+. I found this solution which suggests that setting coherent_pool=2M in cmdline.txt resolves the issue: https://github.com/raspberrypi/...
Iain Dooley's user avatar
0 votes
2 answers
263 views

How do I regain access to either the filesystem or terminal on a raspberry pi that has all networking services disabled and no terminal?

Due to some unfortunate configuration settings, I kludged my raspberry pi into not having a terminal (it normally boots into an app, which still works fine) nor having network access. I can no longer ...
Mdev's user avatar
  • 103
0 votes
0 answers
793 views

Disable boot-time messages

I'm on Rpi-4 and the OS is DietPi. I have modified /boot/cmdline.txt using the following parameters to disable all and every boot-time logs: console=tty3 root=PARTUUID=907af7d0-02 rootfstype=ext4 ...
A_Kz's user avatar
  • 31
0 votes
2 answers
335 views

OSMC - Mount / from a USB

i'm having troubles in a RaspberryPi2 mounting a USB as the / partition. I modified /boot/config.txt adding (also tried with original cmdline.txt, but I think that's the cleaneast way): cmdline=my-...
Juan Dun's user avatar
6 votes
1 answer
10k views

What is the default cmdline.txt for Raspberry Pi 4

I need to know the default contents of the cmdline.txt file for a Raspberry Pi 4. I was following an old tutorial about setting up a gps module. The tutorial had me change the contents cmdline.txt. ...
Mike C.'s user avatar
  • 193
3 votes
2 answers
1k views

What is the difference between adding 'ro' to /boot/cmdline.txt vs /etc/fstab?

I'm setting up a read-only filesystem and some of the guides I have read say to add fastboot noswap ro to /boot/cmdline.txt, others don't. All of them mention adding ro to /etc/fstab though. Is ...
Pathead's user avatar
  • 283
0 votes
0 answers
1k views

Modify cmdline.txt

I have raspberry-pi cm3 image using yocto poky warrior branch. I was trying to communicate using ttyAMA0 serial port. I was able to do that by first manually modifying cmdline.txt from console=...
thesillywhat's user avatar
0 votes
1 answer
4k views

Why does /dev/mmcblk0p2 work when PARTUUID doesn't?

Goal Hi my PI keeps rebooting after I added two lines to the rc.local file. Now i am trying to log into the boot shell and edit those two lines out. Problem I added init=/bin/bash to the cmdline....
Yihan Hu's user avatar
2 votes
0 answers
603 views

fswebcam /boot/cmdline.txt interaction

Occasionally fswebcam -r 640x480 -S10 image.jpg would produce an Error selecting input 0 VIDIOC_S_INPUT: Device or resource busy error on my RPi 3. I googled around a bit. I got some hits suggesting ...
Kris Mclean's user avatar
0 votes
1 answer
1k views

fsck.mode=force is not fixing unable to mount root fs on unknown-block(179,2)

I have 2 SD cards with Raspbian Stretch that are throwing the following error on boot: Kernel panic-not syncing: VFS: unable to mount root fs on unknown-block(179,2) I fixed one card by running ...
Dushyant Bangal's user avatar
-1 votes
1 answer
2k views

As of the current date, what is the default /boot/config.txt

Could someone post the default cmdline.txt file as of the current version?
patrick's user avatar
  • 29
1 vote
1 answer
2k views

cmdline.txt appears to be empty after editing it

I've edited cmdline.txt on my Raspberry 3b + model to not show the logo during the start up. I've added logo.nologo at the end of a line. After that, I restarted the device, but I was still seeing ...
Dino's user avatar
  • 353
2 votes
2 answers
910 views

raspbian stretch overrides cmdline.txt kernel.hostname parameter

i'm building an embedded prototyp with a raspberry pi 3b+ and its booting via pxe from the network read only. Multiple devices share the same root file system and just the boot folders are customized ...
Artur's user avatar
  • 23
0 votes
1 answer
377 views

raspbian: unable to mount root fs on uknown block

I downloaded "raspbian stretch with desktop" .img file from the official raspbery pi website (kernel version 4.14), changed it to a .bin file so the recovery utility would recognize it, and mounted it ...
ju430121ed's user avatar
2 votes
1 answer
8k views

Set a static IP address for wlan0 from /boot partition of Raspberry Pi on Raspbian Stretch Lite

I am using Raspbian Stretch Lite 2018-04-18. I currently have static IP working over wifi. I setup /etc/wpa_supplicant/wpa_supplicant.conf to connect to my wifi and setup /etc/dhcpcd.conf to use a ...
Andrew Ringler's user avatar
1 vote
1 answer
131 views

Where is the cmdline.txt on Windows IOT Dashboard installation?

I can't find the cmdline.txt file for my device. I used the Windows IOT Dashboard to install the image on the SD-card of my Raspberry Pi 3 I want to switch GPIO14 (pin 08) and GPIO15 (pin 10) to ...
Heenne's user avatar
  • 11
1 vote
0 answers
463 views

Debian Jessie with NFS root stalls on startup

I am running Debian Jessie (Raspbian Jessie Lite) on my RPi model B. Previously with Wheezy I had great success booting with root filesystem mounted over NFS, but now it stalls on startup. I am ...
Tiksi's user avatar
  • 133
2 votes
0 answers
387 views

Playmouth ignores the current theme

On startup Plymouth 0.9.2, on Raspbian Stretch, always shows the "text" theme (three square dots) regardless the current theme settings. In fact I have: $ plymouth-set-default-theme mark1 $ cat /...
Mark's user avatar
  • 517
1 vote
0 answers
497 views

Raspberry Pi 3 does not boot if not connected to ethernet cable

I'm new here, so I'm sorry if I started an already existing thread. I have a Raspberry Pi 3 with Raspbian Jessie (2017-06-21). It has SSH enabled. I just modified my cmdline.txt to set static IP. ...
Akshay Taneja's user avatar
-1 votes
1 answer
34 views

Terminal Command to suspend a package download on XLTerminal

Hi the Wolfphram package im trying to install has been installing for over an hour. It is at 5%. I want to stop it. All the searches come up with ways to clear the terminal when you finish. Is there ...
Pismurf's user avatar
  • 313
1 vote
1 answer
252 views

cmdline.txt changes are discarded when ejecting sd card

I am trying to change the password on a Pi sd card. However, each time I edit the cmdline.txt with init=/bin/sh, I eject, put it into my pi and it loads up right to the normal user sign in. So, I ...
rutheferd's user avatar
2 votes
1 answer
991 views

How do I set the Dvorak keyboard layout in cmdline.txt?

How do I set the Dvorak keyboard layout in cmdline.txt? What would I put for the kbd=us flag? Dvorak is a variant of the US layout.
Geremia's user avatar
  • 153
0 votes
2 answers
6k views

First Boot expand filesystem does not take effect

I have a raspbian lite SD Card Image. I have expanded the cmdline.txt file by the following line init=/usr/lib/raspi-config/init_resize.sh. cmdline.txt dwc_otg.lpm_enable=0 console=serial0,115200 ...
Dominic Jonas's user avatar
-1 votes
1 answer
4k views

Dots Splash Screen RPI 3 version "PIXEL"

I'm interested in changing boot splash with dots on new Jessie PIXEL. Achieving the dots boot screen is available by changing the /boot/cmdline.txt file by removing serial console and its speed and ...
Avoid's user avatar
  • 99
0 votes
2 answers
1k views

Where delete the parameter that references the UART serial port (ttyAMA0)?

I have to use a sensor and one of the steps asked me to delete the parameter that references the UART serial port (ttyAMA0) in cmdline.txt, does it mean that I have to delete this part console=serial0,...
RM SH's user avatar
  • 17
0 votes
2 answers
3k views

Mount the FAT32 partition of the SDCard of which RPi is booting to edit cmdline.txt

I read some instructions for modifying the RPi that would require the cmdline.txt to be modified. Unfortunately I have nothing but the Raspberry itself to mount the SD card, so I wonder whether I can ...
Thomas Weller's user avatar
0 votes
1 answer
86 views

Can anyone tell me what your Pi says? [closed]

If you go to the terminal on your Pi and write down sudo nano /boot/codling.txt and write what it says exactly or take a picture because on my Pi it doesn't say the device rotation nor the fps etc ...
user128854's user avatar
1 vote
1 answer
2k views

Is 'dwc2' limited to USB direct connections?

The instructions for setting up a direct-connect RPi Zero over USB have me add dtoverlay=dwc2 on a new line to `config.txt', and insert modules-load=dwc2,... in cmdline.txt. Are these settings ...
orome's user avatar
  • 219
2 votes
3 answers
15k views

RPi3 is not booting after editing /boot/cmdline.txt -- also unplugged the power after rebooting

Tonight, I was adding a GPS module to my RPi3 by following a tutorial from Adafruit, and now my RPi3 is not booting up. This is the last change I did before doing a reboot via sudo shutdown -r: I ...
Lyda Tep's user avatar
1 vote
1 answer
171 views

Raspberry Pi 2 and Adafruit Thermal Printer 597

I have been encountering problems regarding my raspberry pi 2. I've been following the instructions given @ https://learn.adafruit.com/pi-thermal-printer/overview when I change parameters in my /...
littlewil's user avatar
0 votes
2 answers
6k views

Kernel log ONLY on serial console (UART)

How to configure kernel, config.txt and cmdline.txt to get all kernel logs (starting from boot) in serial console (UART) only? To clarify: I don't want to see any kernel log on HDMI monitor I don't ...
10robinho's user avatar
  • 706
1 vote
0 answers
291 views

NFS booted Pi hangs if booting while the server is not ready

I'm NFS booting a Pi and using DHCP IP assignment wonderfully well. I've noticed that in the event of a power outage or other situation that interrupts the connection to the server, the Pi freezes ...
user300457's user avatar
13 votes
1 answer
49k views

What is the default cmdline.txt?

My Raspbian Pi crashes to a Kernel panic when I start it up, and it suggested somewhere that an invalid cmdline.txt can cause this. What is in the cmdline.txt by default?
Matthew's user avatar
  • 959
1 vote
2 answers
298 views

Boot from usb if available

I have my raspbian OS located on a 3TB external harddrive only some bootmanager stuff left on the SD Card. (if i remember right i followed this guide) I want it to boot from the sd card ONLY if there ...
philx_x's user avatar
  • 143
6 votes
7 answers
33k views

Where is cmdline.txt located on the NOOBS SD card?

I need to reset a forgotten RPI OS password. In order to do that I need to insert the SD card to the computer and edit the cmdline.txt file. It is not anywhere on the SD card root folder or any of the ...
PrashanD's user avatar
  • 163
14 votes
4 answers
43k views

Change/reset password WITHOUT monitor/keyboard

I forgot the password to my Pi, but don't have access to a compatible monitor/keyboard. I've seen methods like these but they all involve editing cmdline.txt and then booting with a monitor and ...
Luke Moll's user avatar
  • 747
7 votes
5 answers
18k views

Disabling rainbow splash screen does not work

According to elinux, I should be able to disable the rainbow splash screen by setting this option in the /boot/cmdline.txt file: disable_splash if set to 1, avoids the rainbow splash screen on boot ...
PhilBot's user avatar
  • 371
6 votes
1 answer
10k views

How to change the kernel commandline for ArchLinuxARM on Raspberry Pi effectly?

I'm using the raspberry pi with the latest ArchLinuxARM image. I'm having issues with the linux kernel and it randomly panics with 'kernel paging request' errors. I've found a solution to enable ...
q9f's user avatar
  • 221
1 vote
1 answer
2k views

Custom MOTD without changing prompt colors

I happened to stumble on this forum thread (and every other page I find on RPi MOTD links here), and found a nice description on how to change the MOTD. However, after creating a /home/pi/....
calccrypto's user avatar
6 votes
3 answers
18k views

Why are my changes to cmdline.txt ignored?

I'm using a SD-card with raspian (with /boot-partition + the rootfs). I compiled my own kernel and now I would like to boot with nfsroot. I've added the following line into the cmdline.txt: dwc_otg....
Patrick B.'s user avatar