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 ...
  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
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,144
    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.

  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
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,144
    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.

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

    Also, make sure you have dosfstools installed.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  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
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,144
    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.

Posting Permissions

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