Linux
How to mount a new internal harddisk
- Check what is the new hard disk device name with "fdisk -l", it shoul be something like /dev/sdb
- Create a partition on it, supose the disk is /dev/sdb: "echo -ne "n\np\n1\n\n\nw\n" | fdisk /dev/sdb1"
- Make a filesystem on the partition: mkfs.ext3 /dev/sdb1
- Create a directory where to mount the partition: mkdir /newdirectory
- Edit fstab an add at the end of the file:
/dev/sdb1 /newdirectory ext3 defaults 0 0
- now mount:
mount -a
ps. echo -ne part? is
- n -> new partition
- p -> primary partition
- 1 -> number of the partition
- just enter, here you should enter the first block
- just enter, here you should enter the last block
- write the partition table to the disk.