Home > HowTo, Linux > add new disk in linux

add new disk in linux

January 3rd, 2012 Leave a comment Go to comments

This is without using LVM.

try fdisk -l to find the new disk path (as in /dev/sdxx)
# fdisk -l
use fdisk /dev/sdxx to create partition.
# fdisk /dev/sdd1
n
p
1
,
t,83
w

use mkfs to create a filesystem
# mkfs.ext3 /dev/sdd1

create mount point
make entry in /etc/fstab to mount device, ex:
/dev/sda4 /usr/local ext3 defaults 1 2

To mount a CIFS (Windows) Share and allow writing from Unix.
# mount -t cifs -o domain=domain,verbose,credentials=/root/ab.mount,rw,uid=eab,,dir_mode=0775,file_mode=0664 ///share /mnt/

Categories: HowTo, Linux Tags: , , ,
  1. No comments yet.
  1. No trackbacks yet.

VAMOVE *

*