Resize partition using parted

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I want to resize a partition on a 8002GB disk /dev/sdb1 using parted.




Start 1000MB | End 4000MB | Size 3000MB | File system NTFS (and so on)




Current version of parted has replaced resize with resizepart.

I was able to use resizepart to change end to 100% i.e 8002GB but I can't seem to change the start from 1000MB to 1MB.



How can I change this partition to start from 1MB?










share|improve this question





















  • This is what Logical Volumes are meant for...! Back up, delete, create Logical Volume then start small and add as needed use LVM tool set
    – George Udosen
    Aug 18 at 9:05















up vote
1
down vote

favorite












I want to resize a partition on a 8002GB disk /dev/sdb1 using parted.




Start 1000MB | End 4000MB | Size 3000MB | File system NTFS (and so on)




Current version of parted has replaced resize with resizepart.

I was able to use resizepart to change end to 100% i.e 8002GB but I can't seem to change the start from 1000MB to 1MB.



How can I change this partition to start from 1MB?










share|improve this question





















  • This is what Logical Volumes are meant for...! Back up, delete, create Logical Volume then start small and add as needed use LVM tool set
    – George Udosen
    Aug 18 at 9:05













up vote
1
down vote

favorite









up vote
1
down vote

favorite











I want to resize a partition on a 8002GB disk /dev/sdb1 using parted.




Start 1000MB | End 4000MB | Size 3000MB | File system NTFS (and so on)




Current version of parted has replaced resize with resizepart.

I was able to use resizepart to change end to 100% i.e 8002GB but I can't seem to change the start from 1000MB to 1MB.



How can I change this partition to start from 1MB?










share|improve this question













I want to resize a partition on a 8002GB disk /dev/sdb1 using parted.




Start 1000MB | End 4000MB | Size 3000MB | File system NTFS (and so on)




Current version of parted has replaced resize with resizepart.

I was able to use resizepart to change end to 100% i.e 8002GB but I can't seem to change the start from 1000MB to 1MB.



How can I change this partition to start from 1MB?







linux ubuntu partition parted






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Aug 17 at 7:12









Umer

61




61











  • This is what Logical Volumes are meant for...! Back up, delete, create Logical Volume then start small and add as needed use LVM tool set
    – George Udosen
    Aug 18 at 9:05

















  • This is what Logical Volumes are meant for...! Back up, delete, create Logical Volume then start small and add as needed use LVM tool set
    – George Udosen
    Aug 18 at 9:05
















This is what Logical Volumes are meant for...! Back up, delete, create Logical Volume then start small and add as needed use LVM tool set
– George Udosen
Aug 18 at 9:05





This is what Logical Volumes are meant for...! Back up, delete, create Logical Volume then start small and add as needed use LVM tool set
– George Udosen
Aug 18 at 9:05











1 Answer
1






active

oldest

votes

















up vote
0
down vote













parted doesn't have a command to change a partition's start offset. You can delete the partition with the rm command and recreate it with the correct offsets with the mkpart command. However, if you do that your filesystem will cease to function. Moving a partition requires re-writing filesystem structures; a function parted doesn't perform.



Instead, you can use gparted to move the partition, as described in their documentation.






share|improve this answer




















  • I am on Ubuntu Server so no GUI. I guess gParted live USB it is then.
    – Umer
    Aug 18 at 12:21










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',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f463125%2fresize-partition-using-parted%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













parted doesn't have a command to change a partition's start offset. You can delete the partition with the rm command and recreate it with the correct offsets with the mkpart command. However, if you do that your filesystem will cease to function. Moving a partition requires re-writing filesystem structures; a function parted doesn't perform.



Instead, you can use gparted to move the partition, as described in their documentation.






share|improve this answer




















  • I am on Ubuntu Server so no GUI. I guess gParted live USB it is then.
    – Umer
    Aug 18 at 12:21














up vote
0
down vote













parted doesn't have a command to change a partition's start offset. You can delete the partition with the rm command and recreate it with the correct offsets with the mkpart command. However, if you do that your filesystem will cease to function. Moving a partition requires re-writing filesystem structures; a function parted doesn't perform.



Instead, you can use gparted to move the partition, as described in their documentation.






share|improve this answer




















  • I am on Ubuntu Server so no GUI. I guess gParted live USB it is then.
    – Umer
    Aug 18 at 12:21












up vote
0
down vote










up vote
0
down vote









parted doesn't have a command to change a partition's start offset. You can delete the partition with the rm command and recreate it with the correct offsets with the mkpart command. However, if you do that your filesystem will cease to function. Moving a partition requires re-writing filesystem structures; a function parted doesn't perform.



Instead, you can use gparted to move the partition, as described in their documentation.






share|improve this answer












parted doesn't have a command to change a partition's start offset. You can delete the partition with the rm command and recreate it with the correct offsets with the mkpart command. However, if you do that your filesystem will cease to function. Moving a partition requires re-writing filesystem structures; a function parted doesn't perform.



Instead, you can use gparted to move the partition, as described in their documentation.







share|improve this answer












share|improve this answer



share|improve this answer










answered Aug 18 at 9:00









Emmanuel Rosa

2,5251411




2,5251411











  • I am on Ubuntu Server so no GUI. I guess gParted live USB it is then.
    – Umer
    Aug 18 at 12:21
















  • I am on Ubuntu Server so no GUI. I guess gParted live USB it is then.
    – Umer
    Aug 18 at 12:21















I am on Ubuntu Server so no GUI. I guess gParted live USB it is then.
– Umer
Aug 18 at 12:21




I am on Ubuntu Server so no GUI. I guess gParted live USB it is then.
– Umer
Aug 18 at 12:21

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f463125%2fresize-partition-using-parted%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay