Unable to repartition non-mounted SD card
I have a 64GB SD card which I'm trying to use for a Raspberry Pi. I've had some issues with it so I want to wipe it and start over. In order to do that I want to create a single FAT32-formatted partition on sdb.
sudo fdisk /dev/sdb appears to work fine up until the final w at which point it informs me:
The partition table has been altered.
Calling ioctl() to re-read the partition table.
Re-reading the partition table failed.: Device or resource busy
The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).
I also tried sufo cfdisk /dev/sdb, which appeared to work - but when I used gparted the GUI says that the File System is "unknown". If I attempt to use gparted to format it to FAT32, I get an error message:
Libparted Error
Partition(s) 1, 2 on /dev/sdb have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes
Clicking ignore on that message aborts the operation.
The output of umount /dev/sdb is umount: /dev/sdb: not mounted
I'm at a loss. What can I do to to format and repartition this SD?
partitioning mount sd-card
add a comment |
I have a 64GB SD card which I'm trying to use for a Raspberry Pi. I've had some issues with it so I want to wipe it and start over. In order to do that I want to create a single FAT32-formatted partition on sdb.
sudo fdisk /dev/sdb appears to work fine up until the final w at which point it informs me:
The partition table has been altered.
Calling ioctl() to re-read the partition table.
Re-reading the partition table failed.: Device or resource busy
The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).
I also tried sufo cfdisk /dev/sdb, which appeared to work - but when I used gparted the GUI says that the File System is "unknown". If I attempt to use gparted to format it to FAT32, I get an error message:
Libparted Error
Partition(s) 1, 2 on /dev/sdb have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes
Clicking ignore on that message aborts the operation.
The output of umount /dev/sdb is umount: /dev/sdb: not mounted
I'm at a loss. What can I do to to format and repartition this SD?
partitioning mount sd-card
1
Usesudo partprobe /dev/sdbto "inform the OS of partition table changes". For reference: manpages.ubuntu.com/manpages/bionic/man8/partprobe.8.html
– mikewhatever
11 hours ago
Are you a wizard???? Please move this to an answer and I'll mark it as accepted. I ran that and suddenly gparted works
– snazzybouche
11 hours ago
add a comment |
I have a 64GB SD card which I'm trying to use for a Raspberry Pi. I've had some issues with it so I want to wipe it and start over. In order to do that I want to create a single FAT32-formatted partition on sdb.
sudo fdisk /dev/sdb appears to work fine up until the final w at which point it informs me:
The partition table has been altered.
Calling ioctl() to re-read the partition table.
Re-reading the partition table failed.: Device or resource busy
The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).
I also tried sufo cfdisk /dev/sdb, which appeared to work - but when I used gparted the GUI says that the File System is "unknown". If I attempt to use gparted to format it to FAT32, I get an error message:
Libparted Error
Partition(s) 1, 2 on /dev/sdb have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes
Clicking ignore on that message aborts the operation.
The output of umount /dev/sdb is umount: /dev/sdb: not mounted
I'm at a loss. What can I do to to format and repartition this SD?
partitioning mount sd-card
I have a 64GB SD card which I'm trying to use for a Raspberry Pi. I've had some issues with it so I want to wipe it and start over. In order to do that I want to create a single FAT32-formatted partition on sdb.
sudo fdisk /dev/sdb appears to work fine up until the final w at which point it informs me:
The partition table has been altered.
Calling ioctl() to re-read the partition table.
Re-reading the partition table failed.: Device or resource busy
The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).
I also tried sufo cfdisk /dev/sdb, which appeared to work - but when I used gparted the GUI says that the File System is "unknown". If I attempt to use gparted to format it to FAT32, I get an error message:
Libparted Error
Partition(s) 1, 2 on /dev/sdb have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes
Clicking ignore on that message aborts the operation.
The output of umount /dev/sdb is umount: /dev/sdb: not mounted
I'm at a loss. What can I do to to format and repartition this SD?
partitioning mount sd-card
partitioning mount sd-card
asked 11 hours ago
snazzybouchesnazzybouche
15815
15815
1
Usesudo partprobe /dev/sdbto "inform the OS of partition table changes". For reference: manpages.ubuntu.com/manpages/bionic/man8/partprobe.8.html
– mikewhatever
11 hours ago
Are you a wizard???? Please move this to an answer and I'll mark it as accepted. I ran that and suddenly gparted works
– snazzybouche
11 hours ago
add a comment |
1
Usesudo partprobe /dev/sdbto "inform the OS of partition table changes". For reference: manpages.ubuntu.com/manpages/bionic/man8/partprobe.8.html
– mikewhatever
11 hours ago
Are you a wizard???? Please move this to an answer and I'll mark it as accepted. I ran that and suddenly gparted works
– snazzybouche
11 hours ago
1
1
Use
sudo partprobe /dev/sdb to "inform the OS of partition table changes". For reference: manpages.ubuntu.com/manpages/bionic/man8/partprobe.8.html– mikewhatever
11 hours ago
Use
sudo partprobe /dev/sdb to "inform the OS of partition table changes". For reference: manpages.ubuntu.com/manpages/bionic/man8/partprobe.8.html– mikewhatever
11 hours ago
Are you a wizard???? Please move this to an answer and I'll mark it as accepted. I ran that and suddenly gparted works
– snazzybouche
11 hours ago
Are you a wizard???? Please move this to an answer and I'll mark it as accepted. I ran that and suddenly gparted works
– snazzybouche
11 hours ago
add a comment |
1 Answer
1
active
oldest
votes
Use sudo partprobe /dev/sdb to "inform the OS of partition table changes".
For more info, check man partprobe or http://manpages.ubuntu.com/manpages/bionic/man8/partprobe.8.html.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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%2faskubuntu.com%2fquestions%2f1120581%2funable-to-repartition-non-mounted-sd-card%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
Use sudo partprobe /dev/sdb to "inform the OS of partition table changes".
For more info, check man partprobe or http://manpages.ubuntu.com/manpages/bionic/man8/partprobe.8.html.
add a comment |
Use sudo partprobe /dev/sdb to "inform the OS of partition table changes".
For more info, check man partprobe or http://manpages.ubuntu.com/manpages/bionic/man8/partprobe.8.html.
add a comment |
Use sudo partprobe /dev/sdb to "inform the OS of partition table changes".
For more info, check man partprobe or http://manpages.ubuntu.com/manpages/bionic/man8/partprobe.8.html.
Use sudo partprobe /dev/sdb to "inform the OS of partition table changes".
For more info, check man partprobe or http://manpages.ubuntu.com/manpages/bionic/man8/partprobe.8.html.
answered 11 hours ago
mikewhatevermikewhatever
24k76986
24k76986
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- 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%2faskubuntu.com%2fquestions%2f1120581%2funable-to-repartition-non-mounted-sd-card%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
1
Use
sudo partprobe /dev/sdbto "inform the OS of partition table changes". For reference: manpages.ubuntu.com/manpages/bionic/man8/partprobe.8.html– mikewhatever
11 hours ago
Are you a wizard???? Please move this to an answer and I'll mark it as accepted. I ran that and suddenly gparted works
– snazzybouche
11 hours ago