How to format a disk in busybox

Written by dave wilson
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to format a disk in busybox
Partition and format a hard disk in Linux with BusyBox. (computer hard disk drive studio isolated image by dinostock from Fotolia.com)

Linux embedded systems and appliances usually do not have much physical data storage space or memory available, as such systems are designed for high availability with very few moving parts. The BusyBox application was designed to save space on embedded systems while still providing the essential command shell functionality needed for system administration. Adding an external hard disk drive to an embedded Linux appliance requires that the drive be formatted prior to use. Format an external hard disk drive using the functionality provided by BusyBox.

Skill level:
Moderate

Other People Are Reading

Things you need

  • Embedded Linux device with BusyBox installed and running
  • Credentials for administrator or root account on the embedded Linux device
  • Unformatted hard drive installed on embedded Linux device
  • Terminal access to the embedded Linux device

Show MoreHide

Instructions

  1. 1

    Log in to the embedded Linux device using the user name and password of the root account or an account with administrator permissions.

  2. 2

    Type "df -h" on the command line, and press "Enter." Note the name of the new hard drive listed under the "Filesystem" column. The new hard drive can be identified based upon the size of the drive listed in the output.

  3. 3

    Type "fdisk name_of_drive" on the command line, but replace "name_of_drive " with the name of the new hard drive noted earlier. Press "Enter." Type "mkfs.vfat --v name_of_drive size_of_drive," but replace "name_of_drive" with the name of the new hard drive noted earlier appended with the number "1," and replace "size_of_drive" with the size of the drive in "K" or kilobytes as displayed in the "df" command output. Press "Enter" to format the drive. The single partition on the drive will be formatted with the FAT32 file system.

Don't Miss

Filter:
  • All types
  • Articles
  • Slideshows
  • Videos
Sort:
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the eHow.co.uk site, you consent to the use of cookies. For more information, please see our Cookie policy.