Skip to content

XBian specific cmdline.txt options

Matus Kral edited this page Jul 15, 2013 · 6 revisions

The following shows all additional options the XBian command line offers:

  • noresizesd disable to automatic resize to full capacity of the SD card.
  • partswap creates a separate swap partition instead of using a swap file.
  • noswap disables the creation of a swap file with standard system scripts / tools. because swap is handled with zram-swap package on xbian, this option tells the system to skip all tasks around swaps (activating, waiting to appear, deactivating during reboot/shutdown etc.)
  • noconvertsd won't convert the EXT4 filesystem to BTRFS. convert will run only if rootfstype=btrfs is specified and actual filesystem is EXT4. actual location of the root partition is not relevant, so xbian will convert upon boot even usb-sticks it is booting from (and actual fs still EXT4 and btrfs is specified in cmdline.txt).
  • root= this parameter can not only hold device path's but also partition labels root=LABEL=xbian-root-btrfs or UUID's root=UUID=12345-0123-10234.
  • rootfsopt=noatime,compress=lzo additional mount options for the root.
  • rootwait=10 the maximum number of seconds the initramfs should wait until a root device has become available. Especially handy for booting from external USB or HDD devices.
  • splash show the XBian splash.
  • debug show as much debug information as possible (overrides the loglevel, console, and quiet parameter).
  • rescue will drop you to a rescue shell just before mounting rootfs to /rootfs (it's possible to continue with booting after "exit").
  • rescue_early will drop you to a rescue shell early in the initramfs process (it's possible to continue with booting after "exit").
  • rescue_late will drop you to a rescue shell at the end in the initramfs process (before switching to root) (it's possible to continue with booting after "exit").
  • ad-hoc rescue mode since version 1.0-0.7 there is possibility to trigger "rescue"-like drop to shell with attached usb keyboard and "press-hold-down" shift key. this is possible even with "splash" as default parameter in cmdline.txt. txt console is restored during drop to shell (mod_scsi.scan=sync is recommended as opposite to default =async - initramfs phase can end up faster then usb device-kbd will appear to the system).
  • init=/bin/bash instead of running /sbin/init to start loading services and mount filesystems, run /bin/bash. bash will get pid=1, rootfs is at /, /proc, /run, /sys and /dev mounted and populated. all programs should start normally (console applications only). "exit" to continue booting no longer works, but continue as normal is possible through "exec /sbin/init".
Clone this wiki locally