Linux under single mode with Linux mounted USB drive

Source: Internet
Author: User
Tags pack

Boss LG arranges a task to pack and copy the recording files for a certain day of the month in the HZC server. After colleague YH learned: This machine has a problem, only through Safe mode to enter ... Gossip less, get to the point.

First, Linux into the single mode

1, after the boot, hit the number 1 keys, after grub boot, mobile keyboard to Linux Startup Items (Grub page Select the following option);

2, press the E key, and then move the keyboard to a line similar to the following, that is, the kernel line:

KERNEL/BOOT/VMLINUZ-2.6.11-1.1369_FC4 ro ROOT=LABEL=/1

RHGB quiet

3, move the cursor after the line, and then click the E key, enter the editing line; Tap a space at the end, and then enter single, which is similar to the following:

KERNEL/BOOT/VMLINUZ-2.6.11-1.1369_FC4 ro ROOT=LABEL=/1

RHGB Quiet Single

4, the end of editing, press ENTER to return;

5, then we want to start the system, click the B key to start;

6, after the launch when the "sh-3.2#" can type a variety of commands, here I will pack the files compressed.

Second, Linux mounted USB drive

1, first you have to ensure that the format of your U disk is FAT32 format (U disk plug to the computer, right-click "Properties" to know)

First enter the/mnt/directory, see if there is no USB directory, if not, create a new USB directory;

cd/mnt/

MKIDR USB

2, first fdisk-l, then plug in the U disk, fdisk-l

Check to see if a new hard drive has been added? (you will be that device details line has fat words, that is your USB stick, the device name down)

3. Then perform the Mount

Mount-t Vfat/dev/sdb/mnt/usb (/dev/sdb is the name of the device you want to pay attention to in the 2nd step)

Here-T vfat refers to the fat format,/DEV/SDB refers to the USB stick,/mnt/usb is the place to mount

4, Cd/mnt/usb

Enter here to see if you can find the contents of the U-disk?

If you can see it at this point and then umount/dev/sdb if the file disappears and then mounts and displays, it means that the mount was successful.

Using the CP command, you can copy the files on the server to the USB stick.

Finally thanks to ZZZ's reminders, will be the solution to record the steps, more thinking and more summary, but also convenient for later use.

Linux under single mode with Linux mounted USB drive

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.