1830504 Members
2448 Online
110006 Solutions
New Discussion

Mount new HD

 
ivychung2
Frequent Advisor

Mount new HD

I have a Linux server running RH8 , there is a SCSI harddisk sda is running , now I want to plug a new harddisk to the server and mount to to sdb , could advise how can I mount the new harddisk ? thx
5 REPLIES 5
Ivan Ferreira
Honored Contributor

Re: Mount new HD

- Install your new disk.
- Partition your disk

# fdisk /dev/sdb
n
p
Enter
Enter
w

- Create the file system
# mkfs -t ext2 /dev/sdb1

- Create the mount point
mkdir /disk1

- Mount the disk
mount /dev/sdb1 /disk1

- Edit /etc/fstab so the disk can be mounted at boot time.

Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
ivychung2
Frequent Advisor

Re: Mount new HD

thx reply ,

The new HD have the partition already , so it didn't need to be partition , if so , do i still need to create the file system by " Create the file system
# mkfs -t ext2 /dev/sdb1 "

will this command erase the data in the HD , actually the new HD have partition and data inside , it is not brand new HD .

thx



Steven E. Protter
Exalted Contributor

Re: Mount new HD

Shalom

Most server class boxes need to be booted into a disk utility application to modify storage.

HP servers come with a CD to boot with that will take you to a menu that permits you to add the new disk to the disk array.

The IBM euivalent is built into the ROM-Bios.

After configuring the disk, it will be available.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ivan Ferreira
Honored Contributor

Re: Mount new HD

If the disk already has data, you don't have to do the steps above. This is only for new disks.

Just install the new disk, check the file system type with fdisk -l, then just mount the partition:

mount -t /dev/sdb1 /

Example:

mount -t ext2 /dev/sdb1 /datadisk

Edit /etc/fstab and add an entry for this file system.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?

Re: Mount new HD

I guess system will automatically recognize it as sdb because you already have a disk configured as sda.

if you want to format it use fdisk command else you can use mount command to mount it and edit /etc/fstab file if you want to be mounted every time machine reboots.

-chakri