Ubuntu boot directly into command line mode

Source: Internet
Author: User
Tags uuid

Recently installed Ubuntu 12.04来, it is inconvenient to go to the Unity interface and enter the command line every time. If you do not need an interface, you can set it up to enter command line mode.


Today, we offer a better method in two. After I test both methods can be used.


"1"


Command:


sudo gedit/etc/default/grub


Find this line


grub_cmdline_linux_default= "Quiet Splash"


Change into


grub_cmdline_linux_default= "Quiet Splash Text"


In the input command:

sudo update-grub


The tty1 is automatically entered after the boot.


(The following method is recommended, because you can choose to enter the command line or interface mode when booting)


"2"


sudo chmod +w/boot/grub/grub.cfg #增加可写权限


sudo gedit/boot/grub/grub.cfg #编辑配置文件


Will find a facet of this text:



Menuentry ' Ubuntu,linux 3.2.0-24-generic-pae '--class Ubuntu--class gnu-linux--class GNU--class os {

Recordfail

Gfxmode $linux _gfx_mode

Insmod Gzio

Insmod Part_msdos

Insmod ext2

Set root= ' (Hd0,msdos8) '

Search--no-floppy--fs-uuid--set=root 689a61a1-06fd-4ffe-95d7-8671e97bbe81

Linux/boot/vmlinuz-3.2.0-24-generic-pae root=uuid=689a61a1-06fd-4ffe-95d7-8671e97bbe81 ro quiet Splash $vt _handoff

Initrd/boot/initrd.img-3.2.0-24-generic-pae

}


Copy the text above and paste it back in.


Modify some settings. Modified as follows


Menuentry ' ubuntu,linux 3.2.0-24-generic-pae (Command mode) '--class Ubuntu--class gnu-linux--class GNU--class os {

Recordfail

Gfxmode $linux _gfx_mode

Insmod Gzio

Insmod Part_msdos

Insmod ext2

Set root= ' (Hd0,msdos8) '

Search--no-floppy--fs-uuid--set=root 689a61a1-06fd-4ffe-95d7-8671e97bbe81

Linux/boot/vmlinuz-3.2.0-24-generic-pae root=uuid=689a61a1-06fd-4ffe-95d7-8671e97bbe81 ro Text

Initrd/boot/initrd.img-3.2.0-24-generic-pae


}


That's it. My physical machine is installed directly, when the boot has a menu, directly select Ubuntu,linux 3.2.0-24-generic-pae (Command mode) this option can be


If the virtual machine is installed, perhaps the boot is no option (I use the VM virtual machine installed by default there is no menu selected) The workaround is as follows:



When booting up, the Grub menu system is hidden by default, removing the hidden need to do the following


You need to modify/etc/default/grub one of the lines (find it yourself, right in front), command: sudo gedit/etc/default/grub


Grub_hidden_timeout=0 (default is 0, repair to be modified to a value greater than 0, such as 10)


Quit after saving!


To execute the command again:


sudo update-grub


OK, the settings are complete.


The last of the friendly tips.


(If you encounter a file such as open, or save, then the permissions are not enough Baidu chmod command to modify the permissions can be, vi in fact, the editor is very good ~ ~ ~ ~ because it has not yet played clear ~ ~ ~ ~ ~ with gedit)


This article from "Chen Blog" blog, reproduced please contact the author!

Ubuntu boot directly into command line mode

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.