Monday, September 28, 2015

PARTED Q & A PAGE - 1

PARTED INTERVIEW QUESTIONS AND ANSWERS

PAGE - 1

1..How can you display  the information about disk drive?
# parted
Using  /dev/sda
Display the  hard disk drive that is available on your system
2..How to display all partition using parted command?
# parted
Using  dev/sda  ….
(parted) print    …. then ctrl + z.
3..How can you check free space on drive /dev/sda with parted command?
#parted /dev/sda
4..Why Parted?

 Parted is an advance, feature-rich and well-maintained partition editor
that can create, destroy, resize, rescue partitions and more.
Also, Parted can handle devices with more than 2T of memory unlike tools like fdisk.

5..Why would you want to change the format of a storage device?

 Storage devices are set to a file system called fat32 and while it has the advantage of being readable and writable from almost all operating systems, it is an old and inefficient format.
6..How to create a  partition using parted?
# parted 
mkpart 
Partition type?
File system type?
Start?
End?
7..How to delete the partition using parted?
# parted
print free
rm 1(partition number)
print free
8..How to create a boot partition using  parted?
# parted
Partition type?
File system type?
Start ?
End?
(parted) toggle 1 boot
(parted) print free
(parted) ctrl+z
9..What is  the use of parted command?
A.. Add  the partition
B..View and change the existing partition
10..How can we resize   the partition?
# parted  /dev/sda
Print

No comments: