To solve this problem, you need to repartition fdisk/dev/SDB and then perform the file system mke2fs-J/dev/sdb,
Mount it to a directory and mount/dev/sdb/mnt/SDB
In the virtual machine environment, a hard disk is added to the Linux system.
1. Virtual Machine -- set -- add, select hard disk add
2. Create a file system for the disk: mkfs. ext3/dev/SDB
3. Create a mount point: mkdir/mnt/SDB
4. Mount: Mount/dev/sdb/mnt/SDB
5. fdisk-l
Problems found:
Disk/dev/SDB doesn' t contain a valid Partition Table
6. fdisk/dev/SDB
Follow the wizard step by step (if you do not know what to enter, enter "M" and press enter to print out the menu ):
Command (M for help ):M
Command action
A toggle a bootable flag
B edit BSD disklabel
C toggle the DOS compatibility flag
D delete a partition
L List known partition types
M print this menu
N Add a new partition
(The subsequent menu is omitted, too long)
Here we want to add a new partition, So enter "N ":
Command (M for help ):N
Command action
E extended
P primary partition (1-4)
P
Partition Number (1-4 ):1
First cylinder (1-14098, default 1): (Press enter here)
Using default value 1
Last cylinder or + size or + sizem or + sizek (1-14098, default 14098): (Press enter here)
Using default value 14098
Command (M for help ):P
Disk/dev/SDB: 115.9 GB, 115964116992 bytes
255 heads, 63 sectors/track, 14098 Cylinders
Units = cylinders of 16065*512 = 8225280 bytes
Device boot start end blocks ID system
/Dev/sdb1 1 14098 113242153 + 83 Linux
You can now write data to the partition table, so enter "W ":
Command (M for help ):W
The partition table has been altered!
Calling IOCTL () to re-read partition table.
Syncing disks.
Now, fdisk-L is used, and the result is normal.