<<

Creating and formatting partitions

Home Download Docs FAQ Forum

Creating and formatting partitions

SUNDAY, 14 NOVEMBER 2010 12:27 JAY Creating & formatting partitions in Porteus

There are two ways to do things in Porteus. Using a GUI (graphical User Interface) or from a console prompt. If you prefer using a GUI then you can download a module called 'gparted' which takes care of creating and modifying partitions. Double click the module from within Porteus to activate it or place the module in the modules folder if you want it to be available automatically when you boot Porteus. Click here to get gparted. Once activated it should appear in your menu system and you can start it and create your partitions. If it does not exist in the menu then open a console and : gparted Creating partitions from a console:

There is a built in application to modify your partition table in Porteus. It is called cfdisk and gives you a CUI (console user interface) to manage your partition through. Simply open your console and type: cfdisk

Another built in function for modifying partitions is called which also uses a CUI. The benefit of fdisk is that it can be called from a script. You should know the of your USB device before using this option which you can get from typing: fdisk -l console. Once you know the path of your USB device you would start fdisk by typing: fdisk /dev/sdb where sdb is the path of your usb. Don't include the number on the end (for example /dev/sdb1) as you will need to modify the entire devices partition table. After starting fdisk you can get a list of commands by typing: h [NEED CONFIRMING] Formatting partitions from a console:

The example here will use /dev/sdb as the USB device. You should change this to suit your setup.

Formatting partition to FAT32

# mkdosfs -F 32 /dev/sdb1

Formatting a partition to ext2

# mkfs.ext2 /dev/sdb1

< PREV

Login

Copyright © YouApps , All rights reserved. Custom Design by Youjoomla.com RSS | All Browsers | CSS Valid | XHTML Valid | Go to top

http://www.porteus.org/component/content/article/40-partitions/52-creating-and-formatting-partitions.html[14/01/2011 8:10:36 a.m.]