Steps - Formating a hard disk and create partition
[ create partition first and format that partition ]
fdisk -l
fdisk /dev/sdb
p - partition list
n - new
p - primary
1
p - partition list
w - save
partprobe /dev/sdb
mkfs.ext3 /dev/sdb1
fdisk -l
mount /dev/sdb1 /u01
df -sh - to list disk file system
fsck.ext3 /dev/sdb1 - to check the file system
e2label /dev/sdb1 sdb1
mount LABEL=sdb1 /u01/
[ create partition first and format that partition ]
fdisk -l
fdisk /dev/sdb
p - partition list
n - new
p - primary
1
p - partition list
w - save
partprobe /dev/sdb
mkfs.ext3 /dev/sdb1
fdisk -l
mount /dev/sdb1 /u01
df -sh - to list disk file system
fsck.ext3 /dev/sdb1 - to check the file system
e2label /dev/sdb1 sdb1
mount LABEL=sdb1 /u01/
No comments:
Post a Comment