Tag Archives: memory partition

Formatting Memory

Do you know how to format the memory on your hardware ? If you do not know, then you have come to the right place. The process is very easy.

  • Type the Linux command ‘df’.This Linux command shows you the free disk space in your computer.(To know more about the command you can always go to its manual page. Just type man followed  by the command. This goes for all the Linux commands.)
  • After this go to System at the top and choose Administration. Choose Disk Utility. From the side bar on the left, choose 250 GB Hard Disk.
  • Under the heading Volumes, it shown how the memory in the disk has been divided between the extensions.
  • Click on the part of the memory that you want to format and choose Format Volume from below. A box appears that gives the option of choosing from the different types of extensions. Some of the extensions are ntfs, ext1, ext2, ext3, ext4, etc.(ntfs partition is chosen if you can share the space between Windows as well as Linux.). Give it any name that you want.
  • Go back to the terminal and give the command ‘sudo blkid’. This command requires root privilege since you are trying to format the memory of the system. (You obviously need the permission of the owner or the head of the system to do that.) This command is to find out the uuid of the different memory space partitions present in your system.
  • Copy the UUID of the id of the system whose memory space you want to format and type the command vim /etc/fstab. This is a file sort of thing already present in the system and you are using vim editor to edit it. Once the file has been opened, you see that there is already something that is written inside the file.
  • You have to type the UUID, followed by the memory partition where you want to mount it. Then you type the type of partition that you have chosen(like ntfs or ext1, etc.). This is then followed by the mounting options. For that you give ‘errors=remount-ro      0       1’. This is done so that if there are any errors in while mounting the partition the system removes it and remounts it. The extension ro is given so that it is in the ‘read only’ mode.
  • Now you have to go back to disk utility and and choose the 250 GB Hard Disk. Choose mount memory. It will ask you the root password. Enter the password and click OK.

This is how you format a memory. I hope you find it useful.