My first blog!!
A new learning that I received today. It is about the command fdisk.
This is a Linux command, that can be used for creating/deleting partitions.
It is abbreviation of "Fixed disk"
fdisk has command line options.
The list of all available partitions can be obtained by fdisk -l
Add an hard disk in your vm, reboot the machine and do the following,
fdisk -l
fdisk
=> n
Select primary partition. Give partition number, size.
Same way create extended partition if necessary.
=>wq
save and quit
To delete a partition, You can use
=> d
and give appropriate partition number to delete
To make the created partition usable, a file system is to be created in this partition. This can be done by mke2fs command.
you can also create ext3 file system using mkfs.ext3 command. Same way can use corresponding binaries for creating ext2, ext4 etc.
Then this partition can be mounted on a folder structure.
Eg :
mount -t ext3 <your partition> <folder where it has to be mounted>
Thanks,
Gomathi
A new learning that I received today. It is about the command fdisk.
This is a Linux command, that can be used for creating/deleting partitions.
It is abbreviation of "Fixed disk"
fdisk has command line options.
The list of all available partitions can be obtained by fdisk -l
Add an hard disk in your vm, reboot the machine and do the following,
fdisk -l
fdisk
=> n
Select primary partition. Give partition number, size.
Same way create extended partition if necessary.
=>wq
save and quit
To delete a partition, You can use
=> d
and give appropriate partition number to delete
To make the created partition usable, a file system is to be created in this partition. This can be done by mke2fs command.
you can also create ext3 file system using mkfs.ext3 command. Same way can use corresponding binaries for creating ext2, ext4 etc.
Then this partition can be mounted on a folder structure.
Eg :
mount -t ext3 <your partition> <folder where it has to be mounted>
Thanks,
Gomathi
No comments:
Post a Comment