There is a simple way of creating partitions on a Linux server if you have the option to turn the server off during the process.
GPartd can be booted to give you a simple GUI interface to manage all disks attached to the Linux server in either a physical or virtual capacity.

Download GPartd from here: http://gparted.sourceforge.net/download.php

For this example I am going to do this to a virtual machine (SLES 11 x64)

  1. Copy the gpartd live ISO to an accessible datastore
  2. Attach the ISO to the server
  3. Power on the virtual machine
  4. Open the console (if virtualised)
  5. Press enter
  6. Don’t change the keymap unless you need to so press enter past this
  7. Change your language to your preferred language or press enter for the default (33 English)
  8. Press enter to start X Server
  9. Select disk on top right of window
  10. Click on Device -> New Partition Table
  11. Click OK
  12. Drag the slider to the desired size or enter required amount in fields and press Add
  13. Click Apply
  14. Click Apply if you want to accept the pending operations
  15. Take a note of the location of the disk, in this case it is /dev/sdb1
  16. Reboot
  17. Remove ISO from virtual CD-ROM drive or eject media from physical server.
  18. Log in
  19. Create the mount point folder eg: mkdir /mnt/disk1
  20. Type “mount /dev/sdb1 /test”
  21. Type “df -h” to see the volume

Should you have any questions, comments or suggestions, please don’t hesitate to comment below. If you like what you have read, please share it on your favourite social media medium.

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.