Results 1 to 4 of 4

Thread: Formatting Pendrives

  1. #1
    Join Date
    May 2013
    Beans
    1

    Formatting Pendrives

    Please how do I use Ubuntu terminal to format a pendrive

  2. #2
    Join Date
    Jul 2012
    Location
    Moscow
    Beans
    70
    Distro
    Ubuntu

    Re: Formatting Pendrives

    http://linux.die.net/man/8/fdisk
    http://linux.die.net/man/8/mkfs

    whith fdisk you must create new partition if there is no, with mkfs.(ntfs) create new file system. Then use mount command.

  3. #3
    Join Date
    Jan 2007
    Beans
    6,542
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Formatting Pendrives

    Does it have to be through the terminal? If not you can use the preinstalled tool called Disk Utility. Just click on the drive and hit the "format" button.

  4. #4
    Join Date
    Nov 2012
    Location
    Halloween Town
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Formatting Pendrives

    Quote Originally Posted by Paqman View Post
    Does it have to be through the terminal? If not you can use the preinstalled tool called Disk Utility. Just click on the drive and hit the "format" button.
    +1

    But if you really want to do it through the terminal, first of all you need to know the name of your pen drive or memory cardtype. For that use the following command:
    Code:
    dmesg | tail
    It will show something like this (this is my output, yours could be diferent):
    Code:
    ~$ dmesg | tail
    [ 7271.588923] sd 3:0:0:0: [sdb] Mode Sense: 43 00 00 00
    [ 7271.598479] sd 3:0:0:0: [sdb] No Caching mode page present
    [ 7271.598490] sd 3:0:0:0: [sdb] Assuming drive cache: write through
    [ 7271.657575] sd 3:0:0:0: [sdb] No Caching mode page present
    [ 7271.657592] sd 3:0:0:0: [sdb] Assuming drive cache: write through
    [ 7271.665830]  sdb: sdb1
    [ 7271.712364] sd 3:0:0:0: [sdb] No Caching mode page present
    [ 7271.712378] sd 3:0:0:0: [sdb] Assuming drive cache: write through
    [ 7271.712387] sd 3:0:0:0: [sdb] Attached SCSI removable disk
    Then unmount your pen drive using the following command:
    Code:
    sudo umount /dev/sdb1
    After that enter the following command to format your pen drive with FAT32 partition:
    Code:
    sudo mkfs.vfat -n 'label_name' -I /dev/sdb1
    If you want to format it to ext4, then the command to run has to be:
    Code:
    sudo mkfs.ext4 -n 'label_name' -I /dev/sdb1

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •