# list all disks
sud fdisk -l
# check disks that are already mounted
df -h
# make a dir for mounting
sudo mkdir /WD30EFRX
sudo chmod -R 777 /WD30EFRX
# format new disk
sudo mkfs.ext3 /dev/sdb
# mount at system start
sudo vi /etc/fstab
# add a new line
`/dev/sdb /WD30EFRX ext3 defaults 0 0`
## mount
sudo mount -a
参数和之前新买的一样:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Disk /dev/sda: 3000.6 GB, 3000592982016 bytes
255 heads, 63 sectors/track, 364801 cylinders, total 5860533168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/sda doesn't contain a valid partition table
Disk /dev/sdb: 3000.6 GB, 3000592982016 bytes
255 heads, 63 sectors/track, 364801 cylinders, total 5860533168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/sdb doesn't contain a valid partition table