Find the answer to your Linux question:
Results 1 to 7 of 7
I need some assistance in trying to format a USB hard drive to vfat format but can't seem to do so. I am currently using RHEL 5.3. I have tried ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2010
    Posts
    8

    Formatting a Drive


    I need some assistance in trying to format a USB hard drive to vfat format but can't seem to do so. I am currently using RHEL 5.3.

    I have tried the following commands and they all come back as "command not found"

    mke2fs vfat /dev/sc1
    fdisk vfat /dev/sdc1
    mkfs.vfat /dev/sdc1

    What am I doing incorrectly?? Can someone please point me in the right direction??

    Thanks

  2. #2
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    Try using the "su" account.
    Code:
    gksu mke2fs vfat /dev/sc1
    (password)
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  3. #3
    Just Joined!
    Join Date
    Sep 2010
    Posts
    8
    Have already logged in using su so I should be having root priveleges.

    Don't know what else is wrong.

  4. #4
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    Try
    Code:
    /sbin/mke2fs vfat /dev/sc1
    Last edited by MikeTbob; 09-15-2010 at 03:14 AM. Reason: Added code tags
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  5. #5
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Welcome to the forums!

    Also, make sure you have dosfstools installed.
    oz

  6. #6
    Just Joined!
    Join Date
    Sep 2010
    Posts
    8
    Okay I just tried that and I get this error:

    mke2fs: invalid blocks count - /dev/sdc1

    That means mke2fs worked somehow??

    Invalid block count?? There were problems with the drive thats why I was trying to format it to begin with

  7. #7
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    You need to read up on the badblocks command.
    badblocks(8): search device for bad blocks - Linux man page
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

Posting Permissions

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