Tag: Mount Mount
The correct Mount disc
After you attach the disc to the Linux system, you need to mount it correctly by first using the Df-h command to view the file system name of the CD-ROM drive, generally by default is/dev/sr0, and then create the file directory you want to mount, Mkdir-p/mnt/cdrom
Then use the command Mount/dev/sr0/mnt/cdrom to mount the disc to the CDROM directory.
2. Mount the newly added storage correctly
Use Fdisk-l to view all disk information (both mounted and not mounted) directly after the disk has been added
Use Fdisk/dev/sdb directly after you see an unpartitioned disk (disk starts with SDA, SDB,SDC,SDD, and so on)
1.N is to add a new partition, note that extended is an extended partition, cannot be formatted and mounted, here directly select P
2. Then select the partition number (1,2,3,4) according to the actual demand
3. Select the disk header and follow the prompts to select the default starting column
4. Select the partition size according to the actual demand
5.W Save the partition
If you want to delete a new partition, you can use Fdisk/dev/sdb
Press D directly to follow up the delete operation.
Formatting mkfs.ext3/dev/sdb1
If formatting is not possible, enter the command partprobe/dev/sdb before entering the above command
Mount operation after formatting
Create the required folders first Mkdir/test1
Mount/dev/sdb1/test1 can be mounted successfully
Use the df-h command to view the newly added disk after it has been mounted successfully
Cancel Mount umount/dev/sdb1 or cancel mount point Umount/test1
This article is from the "Drunken Cold wind" blog, please be sure to keep this source http://zydw415.blog.51cto.com/10608909/1761509
Mount Storage in Linux systems