November 29, 2013 | Posted in:Technology
# Mount a second hard drive in Debian or Proxmox 3.1 -
# First we’ll have to find out what the device name is for this disk.
# DO NOT COMPLETE THIS IF YOU HAVE DATA ON DRIVE.
# New -> Primary -> Specify size in MB
# Format the new disk using the ext3 filesystem (Do not use for a hard drive larger then 2TB | use: mkfs.ext4 /dev/sdb1 |)
# Create the folder to mount the drive to. (I used /home/sdb1)
# Mounting the drive to a new folder:
# (You can name the folder whatever your want and place it in sub folders of another drive, for example /home/disk2 )
mount -t ext3 /dev/sdb1 /home/sdb1
# Add the following line to your fstab file so it will automatically mount when you reboot the machine.
# Then copy and paste this to the fstab you just opened:
/dev/sdb1 /sdb1 ext3 defaults,errors=remount-ro 0 1
# Now your new hard disk is mounted. #
Admin is the Founder and Administrator of Tech Blog. He love to explore the tech world. He is a part time dedicated blogger, coder and designer of Xinz.