LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-12-2013, 02:21 AM   #1
knottulf
LQ Newbie
 
Registered: Oct 2012
Posts: 22

Rep: Reputation: Disabled
How to format flashdisk which has unused capacity


I have a terabyte flashdisk, which I used as a target when rescuing a crashed disk. So it is now formatted to only 40GB.
How do I reformat it to 1 terabyte, and partition it to ext3?
Im using a headless ubuntu server 10.04
 
Old 08-12-2013, 04:54 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
At first, Ubuntu 10.04 has reached its end-of-life and is unsupported, which means that you won't get bugfixes and, worse, security updates anymore. It is recommended to upgrade to 12.04, which is supported until 2017.

Regarding your problem, just use fdisk or the easier cfdisk (you may probably have to install it first) to delete the old partition (assuming that you have no need anymore for the data or already have a backup copy), create a new one in the size you want to use and then format it using the mkfs command, for example like this if you want to use ext3 (I personally always use ext4, it is faster, especially when a fsck is needed):
Code:
sudo mkfs -t ext3 /dev/sdb1
Make sure that you have chosen the correct partition name (sdb1 is the first partition on the second disk in your system, you most likely will have to adapt that for your needs) before launching the command.
 
  


Reply

Tags
capacity, formatting, usb


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
format hard drive and add to existing hard drive to extend the capacity in linux boby.kumar Linux - Newbie 1 04-10-2013 07:18 AM
can't see my flashdisk in the virtualbox kiruja Linux - Newbie 2 10-06-2009 01:08 AM
flashdisk questions libertine Linux - Software 6 06-24-2005 11:00 AM
USB flashdisk Shifty02 Mandriva 1 05-21-2005 04:15 PM
mounting a different flashdisk whited Linux - Hardware 1 04-28-2005 12:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration