November 29, 2013 | Posted in:Technology

hd-for-mount

# 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.

fdisk -l

 

# DO NOT COMPLETE THIS IF YOU HAVE DATA ON DRIVE.

cfdisk /dev/sdb

# New -> Primary -> Specify size in MB
# Write
# Quit

# Format the new disk using the ext3 filesystem (Do not use for a hard drive larger then 2TB | use: mkfs.ext4 /dev/sdb1 |)

mkfs.ext3 /dev/sdb1

# Create the folder to mount the drive to. (I used /home/sdb1)

mkdir /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.

pico /etc/fstab

 

# 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.

Be the first to comment.

Leave a Reply

*



You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>