Recently engaged in Linux, the lab a broken server, can connect the Internet, but input such a command: yum-y install GCC
Yum-y install gcc-c++, actually said there is no such image, or, just use a U disk to engage a Linux gcc,gcc-c++, and then the problem?
Which house is strong? There is no wood to find the mobile device at all. Whining's crying!
Decisive typing: fdisk-l---View the status of a partition
disk/dev/sdb:4051 MB, 4051697664 bytes
151 heads, Sectors/track, 1247 cylinders
Units = Cylinders of 6342 * 3247104 bytes
Sector size (logical/physical): bytes/512 bytes
I/O size (minimum/optimal): bytes/512 bytes
Disk Identifier:0xc3072e18
Device Boot Start End Blocks Id System
/DEV/SDB1 1 1248 3956708 C W95 FAT32 (LBA)
Found, the location of the U-disk, but it is not in!
So first set up a path: mkdir Mnt/usb
There are wood, sure enough to ask the Thunder work Seniors Wei seniors, said it was my mount command with the wrong!!
I read, my orders: Mount/dev/gdb1/mnt/usb
and mount-help a bit!
Well! Yes! The wrong use! One Less space!! Mount File1 file2
Mount/dev/gdb1/mnt/usb
Just hang it up!
Let's summarize the steps! :
Step One: fdisk-l--Check out the location of external devices such as this USB/DEV/SDB1
[Email protected] ~]# fdisk-l
disk/dev/sda:500.1 GB, 500107862016 bytes
255 heads, Sectors/track, 60801 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Sector size (logical/physical): bytes/4096 bytes
I/O size (minimum/optimal): 4096 bytes/4096 bytes
Disk IDENTIFIER:0X141CCCB4
Device Boot Start End Blocks Id System
/DEV/SDA1 * 1 512000 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 60802 487873536 8e Linux LVM
disk/dev/mapper/vg_tomato2-lv_root:53.7 GB, 53687091200 bytes
255 heads, Sectors/track, 6527 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Sector size (logical/physical): bytes/4096 bytes
I/O size (minimum/optimal): 4096 bytes/4096 bytes
Disk identifier:0x00000000
disk/dev/mapper/vg_tomato2-lv_swap:3388 MB, 3388997632 bytes
255 heads, Sectors/track, 412 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Sector size (logical/physical): bytes/4096 bytes
I/O size (minimum/optimal): 4096 bytes/4096 bytes
Disk identifier:0x00000000
disk/dev/mapper/vg_tomato2-lv_home:442.5 GB, 442503266304 bytes
255 heads, Sectors/track, 53797 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Sector size (logical/physical): bytes/4096 bytes
I/O size (minimum/optimal): 4096 bytes/4096 bytes
Disk identifier:0x00000000
disk/dev/sdb:4051 MB, 4051697664 bytes
151 heads, Sectors/track, 1247 cylinders
Units = Cylinders of 6342 * 3247104 bytes
Sector size (logical/physical): bytes/512 bytes
I/O size (minimum/optimal): bytes/512 bytes
Disk Identifier:0xc3072e18
Device Boot Start End Blocks Id System
/DEV/SDB1 1 1248 3956708 C W95 FAT32 (LBA)
Step two: Set a path mkdir MNT/USB----this USB or whatever it's called!
[Email protected] ~]# MKDIR/MNT/USB
The third step: Mount the USB stick to this path! Mount/dev/gdb1/mnt/usb
That's OK! But at the end of the last one is unloading this mount point Unmount/mnt/usb
[Email protected] ~]# UMOUNT/MNT/USB
Then delete the path: Rmkdir mnt/usb
[Email protected] ~]# RMDIR/MNT/USB
Then you can go gracefully to use the things on the USB stick!!!!
How to gracefully mount an external device (such as a USB flash drive) under Linux