Scenario: There is a SCSI disk with NTFS partition and this disk is to be added to a Linux box.
Step 1: Connect the SCSI disk to the Linux box.
Step 2: Type the command
#fdisk –l
It will display partitions on all available disks, note the device name for the SCSI disk. Suppose the device name is /dev/sdb
Step 3: Start fdisk with /dev/sdb as argument
#fdisk /dev/sdb
Step 4 : To print the partition table for this disk
Command (m for help):
Step 5: Delete the partitions
Command (m for help): d
partition number (1-5): 1
Command (m for help): d
partition number (1-5): 2
Step 6: Create the required partitions (I will create one logical partition and will add that into my existing Linux file system)
Command (m for help): n
Command action
e extended
p primary partition
e
partition number (1-4): 1
Command (m for help): n
Command action
l logical (5 or above)
p primary partition
l
Step 7: Now I have created the required partition table for the disk, now I have to write the partition table to the disk.
Command (m for help): w
Step 8: View the new disk partition
Command (m for help): p
Quit fdisk program
Step 9: Format that partition and make file system
#mkfs.ext3 /dev/sdb2
Step 10: Create a directory to mount the partition
# mkdir /new_partition
Step 11: Mount the partition
#mount –t ext3 /dev/sdb2 /new_partition
Step 12: Add an entry in the /etc/fstab file so that the partition automatically gets mounted
/dev/sdb5 /new_partition ext3 defaults 1 2
Step 1: Connect the SCSI disk to the Linux box.
Step 2: Type the command
#fdisk –l
Step 3: Start fdisk with /dev/sdb as argument
#fdisk /dev/sdb
Step 4 : To print the partition table for this disk
Command (m for help):
Device | Boot | Start | End | Blocks | Id | System |
/dev/sdb1 | * | 1 | 4462 | 7 | HPFS/NTFS | |
/dev/sdb2 | 4463 | 8924 | F | Win 95 Extended | ||
/dev/sdb5 | 4463 | 8924 | 7 | HPFS/NTFS |
Step 5: Delete the partitions
Command (m for help): d
partition number (1-5): 1
Command (m for help): d
partition number (1-5): 2
Step 6: Create the required partitions (I will create one logical partition and will add that into my existing Linux file system)
Command (m for help): n
Command action
e extended
p primary partition
e
partition number (1-4): 1
Command (m for help): n
Command action
l logical (5 or above)
p primary partition
l
Step 7: Now I have created the required partition table for the disk, now I have to write the partition table to the disk.
Command (m for help): w
Step 8: View the new disk partition
Command (m for help): p
Device | Boot | Start | End | Blocks | Id | System |
/dev/sdb1 | 1 | 8924 | 5 | Extended | ||
/dev/sdb2 | 1 | 8924 | 83 | Linux |
Step 9: Format that partition and make file system
#mkfs.ext3 /dev/sdb2
Step 10: Create a directory to mount the partition
# mkdir /new_partition
Step 11: Mount the partition
#mount –t ext3 /dev/sdb2 /new_partition
Step 12: Add an entry in the /etc/fstab file so that the partition automatically gets mounted
/dev/sdb5 /new_partition ext3 defaults 1 2
জয় আই অসম,
প্রণব শর্মা
No comments:
Post a Comment