Unallocated space in empty flash drive
Hello, I am trying to recover unallocated space in my flash drive. I'm not quite sure how it got to this point. I have tried the following commands:
resize2fs
sudo resize2fs /dev/sdc1
resize2fs 1.42.13 (17-May-2015)
The filesystem is already 1011875 (4k) blocks long. Nothing to do!
badblock
sudo resize2fs /dev/sdc1
resize2fs 1.42.13 (17-May-2015)
The filesystem is already 1011875 (4k) blocks long. Nothing to do!
When I use Check in gparted, nothing happens.
How can I recover the space on my flashdrive? Sorry for the poor formatting, still learning...
ubuntu flash-memory
bumped to the homepage by Community♦ 27 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
Hello, I am trying to recover unallocated space in my flash drive. I'm not quite sure how it got to this point. I have tried the following commands:
resize2fs
sudo resize2fs /dev/sdc1
resize2fs 1.42.13 (17-May-2015)
The filesystem is already 1011875 (4k) blocks long. Nothing to do!
badblock
sudo resize2fs /dev/sdc1
resize2fs 1.42.13 (17-May-2015)
The filesystem is already 1011875 (4k) blocks long. Nothing to do!
When I use Check in gparted, nothing happens.
How can I recover the space on my flashdrive? Sorry for the poor formatting, still learning...
ubuntu flash-memory
bumped to the homepage by Community♦ 27 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
little late for the answer but this video might be helpful youtu.be/MShpImlWVFM
– guest123
Aug 16 '18 at 6:10
add a comment |
Hello, I am trying to recover unallocated space in my flash drive. I'm not quite sure how it got to this point. I have tried the following commands:
resize2fs
sudo resize2fs /dev/sdc1
resize2fs 1.42.13 (17-May-2015)
The filesystem is already 1011875 (4k) blocks long. Nothing to do!
badblock
sudo resize2fs /dev/sdc1
resize2fs 1.42.13 (17-May-2015)
The filesystem is already 1011875 (4k) blocks long. Nothing to do!
When I use Check in gparted, nothing happens.
How can I recover the space on my flashdrive? Sorry for the poor formatting, still learning...
ubuntu flash-memory
Hello, I am trying to recover unallocated space in my flash drive. I'm not quite sure how it got to this point. I have tried the following commands:
resize2fs
sudo resize2fs /dev/sdc1
resize2fs 1.42.13 (17-May-2015)
The filesystem is already 1011875 (4k) blocks long. Nothing to do!
badblock
sudo resize2fs /dev/sdc1
resize2fs 1.42.13 (17-May-2015)
The filesystem is already 1011875 (4k) blocks long. Nothing to do!
When I use Check in gparted, nothing happens.
How can I recover the space on my flashdrive? Sorry for the poor formatting, still learning...
ubuntu flash-memory
ubuntu flash-memory
asked Dec 18 '16 at 4:13
edwardedward
11
11
bumped to the homepage by Community♦ 27 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 27 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
little late for the answer but this video might be helpful youtu.be/MShpImlWVFM
– guest123
Aug 16 '18 at 6:10
add a comment |
little late for the answer but this video might be helpful youtu.be/MShpImlWVFM
– guest123
Aug 16 '18 at 6:10
little late for the answer but this video might be helpful youtu.be/MShpImlWVFM
– guest123
Aug 16 '18 at 6:10
little late for the answer but this video might be helpful youtu.be/MShpImlWVFM
– guest123
Aug 16 '18 at 6:10
add a comment |
1 Answer
1
active
oldest
votes
Before resizing your filesystem, you need to extend your partition.
One way to do that would be with fdisk. Say I have a 20G disk, with a 5G partition like this:
fdisk /dev/sda
> p
Disk /dev/sda: 20 GiB, 21474836480 bytes, 41943040 sectors
...
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 40957 43005 5G 83 Linux
First, I'll delete my partition, then create one starting at the same sector, finishing at the end of my disk, using the same partition type.
Command (m for help): d
Selected partition 1
Partition 1 has been deleted.
Command (m for help): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1):
First sector (2048-41943039, default 2048):
Last sector, +sectors or +size{K,M,G,T,P} (2048-41943039, default 41943039):
Created a new partition 1 of type 'Linux' and of size 20 GiB.
Command (m for help): p
...
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 41943039 41940992 20G 83 Linux
If you're sure the partition starts at the same offset, then you may write your changes:
Command (m for help): w
Your OS may not be able to reload the partition table, at which point you could have to reboot. Or, with a removable media, just unplug/plug back in.
Then, you'll be able to use resize2fs
.
Hello, and thank you for your comment.
– edward
Dec 18 '16 at 5:09
Hello, and thank you for your comment. When I try to delete the partition, it says the following: No partition is defined yet! Could not delete partition 1
– edward
Dec 18 '16 at 5:10
Are you sure you opened the right device (/dev/sdc
)? Listing partitions (withp
) should confirm something exists. Does it?
– SYN
Dec 19 '16 at 5:59
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f331165%2funallocated-space-in-empty-flash-drive%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Before resizing your filesystem, you need to extend your partition.
One way to do that would be with fdisk. Say I have a 20G disk, with a 5G partition like this:
fdisk /dev/sda
> p
Disk /dev/sda: 20 GiB, 21474836480 bytes, 41943040 sectors
...
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 40957 43005 5G 83 Linux
First, I'll delete my partition, then create one starting at the same sector, finishing at the end of my disk, using the same partition type.
Command (m for help): d
Selected partition 1
Partition 1 has been deleted.
Command (m for help): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1):
First sector (2048-41943039, default 2048):
Last sector, +sectors or +size{K,M,G,T,P} (2048-41943039, default 41943039):
Created a new partition 1 of type 'Linux' and of size 20 GiB.
Command (m for help): p
...
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 41943039 41940992 20G 83 Linux
If you're sure the partition starts at the same offset, then you may write your changes:
Command (m for help): w
Your OS may not be able to reload the partition table, at which point you could have to reboot. Or, with a removable media, just unplug/plug back in.
Then, you'll be able to use resize2fs
.
Hello, and thank you for your comment.
– edward
Dec 18 '16 at 5:09
Hello, and thank you for your comment. When I try to delete the partition, it says the following: No partition is defined yet! Could not delete partition 1
– edward
Dec 18 '16 at 5:10
Are you sure you opened the right device (/dev/sdc
)? Listing partitions (withp
) should confirm something exists. Does it?
– SYN
Dec 19 '16 at 5:59
add a comment |
Before resizing your filesystem, you need to extend your partition.
One way to do that would be with fdisk. Say I have a 20G disk, with a 5G partition like this:
fdisk /dev/sda
> p
Disk /dev/sda: 20 GiB, 21474836480 bytes, 41943040 sectors
...
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 40957 43005 5G 83 Linux
First, I'll delete my partition, then create one starting at the same sector, finishing at the end of my disk, using the same partition type.
Command (m for help): d
Selected partition 1
Partition 1 has been deleted.
Command (m for help): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1):
First sector (2048-41943039, default 2048):
Last sector, +sectors or +size{K,M,G,T,P} (2048-41943039, default 41943039):
Created a new partition 1 of type 'Linux' and of size 20 GiB.
Command (m for help): p
...
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 41943039 41940992 20G 83 Linux
If you're sure the partition starts at the same offset, then you may write your changes:
Command (m for help): w
Your OS may not be able to reload the partition table, at which point you could have to reboot. Or, with a removable media, just unplug/plug back in.
Then, you'll be able to use resize2fs
.
Hello, and thank you for your comment.
– edward
Dec 18 '16 at 5:09
Hello, and thank you for your comment. When I try to delete the partition, it says the following: No partition is defined yet! Could not delete partition 1
– edward
Dec 18 '16 at 5:10
Are you sure you opened the right device (/dev/sdc
)? Listing partitions (withp
) should confirm something exists. Does it?
– SYN
Dec 19 '16 at 5:59
add a comment |
Before resizing your filesystem, you need to extend your partition.
One way to do that would be with fdisk. Say I have a 20G disk, with a 5G partition like this:
fdisk /dev/sda
> p
Disk /dev/sda: 20 GiB, 21474836480 bytes, 41943040 sectors
...
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 40957 43005 5G 83 Linux
First, I'll delete my partition, then create one starting at the same sector, finishing at the end of my disk, using the same partition type.
Command (m for help): d
Selected partition 1
Partition 1 has been deleted.
Command (m for help): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1):
First sector (2048-41943039, default 2048):
Last sector, +sectors or +size{K,M,G,T,P} (2048-41943039, default 41943039):
Created a new partition 1 of type 'Linux' and of size 20 GiB.
Command (m for help): p
...
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 41943039 41940992 20G 83 Linux
If you're sure the partition starts at the same offset, then you may write your changes:
Command (m for help): w
Your OS may not be able to reload the partition table, at which point you could have to reboot. Or, with a removable media, just unplug/plug back in.
Then, you'll be able to use resize2fs
.
Before resizing your filesystem, you need to extend your partition.
One way to do that would be with fdisk. Say I have a 20G disk, with a 5G partition like this:
fdisk /dev/sda
> p
Disk /dev/sda: 20 GiB, 21474836480 bytes, 41943040 sectors
...
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 40957 43005 5G 83 Linux
First, I'll delete my partition, then create one starting at the same sector, finishing at the end of my disk, using the same partition type.
Command (m for help): d
Selected partition 1
Partition 1 has been deleted.
Command (m for help): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1):
First sector (2048-41943039, default 2048):
Last sector, +sectors or +size{K,M,G,T,P} (2048-41943039, default 41943039):
Created a new partition 1 of type 'Linux' and of size 20 GiB.
Command (m for help): p
...
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 41943039 41940992 20G 83 Linux
If you're sure the partition starts at the same offset, then you may write your changes:
Command (m for help): w
Your OS may not be able to reload the partition table, at which point you could have to reboot. Or, with a removable media, just unplug/plug back in.
Then, you'll be able to use resize2fs
.
answered Dec 18 '16 at 4:27
SYNSYN
1,854415
1,854415
Hello, and thank you for your comment.
– edward
Dec 18 '16 at 5:09
Hello, and thank you for your comment. When I try to delete the partition, it says the following: No partition is defined yet! Could not delete partition 1
– edward
Dec 18 '16 at 5:10
Are you sure you opened the right device (/dev/sdc
)? Listing partitions (withp
) should confirm something exists. Does it?
– SYN
Dec 19 '16 at 5:59
add a comment |
Hello, and thank you for your comment.
– edward
Dec 18 '16 at 5:09
Hello, and thank you for your comment. When I try to delete the partition, it says the following: No partition is defined yet! Could not delete partition 1
– edward
Dec 18 '16 at 5:10
Are you sure you opened the right device (/dev/sdc
)? Listing partitions (withp
) should confirm something exists. Does it?
– SYN
Dec 19 '16 at 5:59
Hello, and thank you for your comment.
– edward
Dec 18 '16 at 5:09
Hello, and thank you for your comment.
– edward
Dec 18 '16 at 5:09
Hello, and thank you for your comment. When I try to delete the partition, it says the following: No partition is defined yet! Could not delete partition 1
– edward
Dec 18 '16 at 5:10
Hello, and thank you for your comment. When I try to delete the partition, it says the following: No partition is defined yet! Could not delete partition 1
– edward
Dec 18 '16 at 5:10
Are you sure you opened the right device (
/dev/sdc
)? Listing partitions (with p
) should confirm something exists. Does it?– SYN
Dec 19 '16 at 5:59
Are you sure you opened the right device (
/dev/sdc
)? Listing partitions (with p
) should confirm something exists. Does it?– SYN
Dec 19 '16 at 5:59
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f331165%2funallocated-space-in-empty-flash-drive%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
little late for the answer but this video might be helpful youtu.be/MShpImlWVFM
– guest123
Aug 16 '18 at 6:10