Resizing a partition vs resizing a filesystem

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











up vote
1
down vote

favorite












In a recent interview I was asked how can you resize a partition which is not a part of LVM?



For which I answer you can use GParted. Then the interviewer asked me how would you resize (extend) a file system and not the partition?



For which I said you can unmount the filesystem and resize the underlying partition and remount it, but he said I am wront.



I really thought that resizing a partition and resizing a filesystem is the same thing since filesystem sits on top of partition.



Can someone please help me understand what he meant by resizing the filesystem? I couldn't get my head around it










share|improve this question





















  • Check out the resize2fs tool in the case of ext2/3/4 filesystems. Also: askubuntu.com/a/115337/158442
    – muru
    2 hours ago















up vote
1
down vote

favorite












In a recent interview I was asked how can you resize a partition which is not a part of LVM?



For which I answer you can use GParted. Then the interviewer asked me how would you resize (extend) a file system and not the partition?



For which I said you can unmount the filesystem and resize the underlying partition and remount it, but he said I am wront.



I really thought that resizing a partition and resizing a filesystem is the same thing since filesystem sits on top of partition.



Can someone please help me understand what he meant by resizing the filesystem? I couldn't get my head around it










share|improve this question





















  • Check out the resize2fs tool in the case of ext2/3/4 filesystems. Also: askubuntu.com/a/115337/158442
    – muru
    2 hours ago













up vote
1
down vote

favorite









up vote
1
down vote

favorite











In a recent interview I was asked how can you resize a partition which is not a part of LVM?



For which I answer you can use GParted. Then the interviewer asked me how would you resize (extend) a file system and not the partition?



For which I said you can unmount the filesystem and resize the underlying partition and remount it, but he said I am wront.



I really thought that resizing a partition and resizing a filesystem is the same thing since filesystem sits on top of partition.



Can someone please help me understand what he meant by resizing the filesystem? I couldn't get my head around it










share|improve this question













In a recent interview I was asked how can you resize a partition which is not a part of LVM?



For which I answer you can use GParted. Then the interviewer asked me how would you resize (extend) a file system and not the partition?



For which I said you can unmount the filesystem and resize the underlying partition and remount it, but he said I am wront.



I really thought that resizing a partition and resizing a filesystem is the same thing since filesystem sits on top of partition.



Can someone please help me understand what he meant by resizing the filesystem? I couldn't get my head around it







filesystems partition






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 2 hours ago









MaverickD

484




484











  • Check out the resize2fs tool in the case of ext2/3/4 filesystems. Also: askubuntu.com/a/115337/158442
    – muru
    2 hours ago

















  • Check out the resize2fs tool in the case of ext2/3/4 filesystems. Also: askubuntu.com/a/115337/158442
    – muru
    2 hours ago
















Check out the resize2fs tool in the case of ext2/3/4 filesystems. Also: askubuntu.com/a/115337/158442
– muru
2 hours ago





Check out the resize2fs tool in the case of ext2/3/4 filesystems. Also: askubuntu.com/a/115337/158442
– muru
2 hours ago











1 Answer
1






active

oldest

votes

















up vote
2
down vote













A filesystem is on a partition/device/volume/some other container. It has a fixed size, usually the same as the container. You need to extend the filesystem size as well after extending the underlying container.






share|improve this answer




















  • If the partition is already resized why resize2fs is required? can you please explain with example. I want to actually see it happening in my centos. I mean what recreating a parition how can I see my filesystem is not resized and how can i see it effect after running resize2fs
    – MaverickD
    1 hour ago










  • RedHat documentation has good examples: How to Resize a Partition using fdisk and How to Grow an ext2/3/4 File System with resize2fs. If you resize the partition and then mount the filesystem, it should still report the old size (in du etc).
    – sebasth
    1 hour ago










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%2f474397%2fresizing-a-partition-vs-resizing-a-filesystem%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
2
down vote













A filesystem is on a partition/device/volume/some other container. It has a fixed size, usually the same as the container. You need to extend the filesystem size as well after extending the underlying container.






share|improve this answer




















  • If the partition is already resized why resize2fs is required? can you please explain with example. I want to actually see it happening in my centos. I mean what recreating a parition how can I see my filesystem is not resized and how can i see it effect after running resize2fs
    – MaverickD
    1 hour ago










  • RedHat documentation has good examples: How to Resize a Partition using fdisk and How to Grow an ext2/3/4 File System with resize2fs. If you resize the partition and then mount the filesystem, it should still report the old size (in du etc).
    – sebasth
    1 hour ago














up vote
2
down vote













A filesystem is on a partition/device/volume/some other container. It has a fixed size, usually the same as the container. You need to extend the filesystem size as well after extending the underlying container.






share|improve this answer




















  • If the partition is already resized why resize2fs is required? can you please explain with example. I want to actually see it happening in my centos. I mean what recreating a parition how can I see my filesystem is not resized and how can i see it effect after running resize2fs
    – MaverickD
    1 hour ago










  • RedHat documentation has good examples: How to Resize a Partition using fdisk and How to Grow an ext2/3/4 File System with resize2fs. If you resize the partition and then mount the filesystem, it should still report the old size (in du etc).
    – sebasth
    1 hour ago












up vote
2
down vote










up vote
2
down vote









A filesystem is on a partition/device/volume/some other container. It has a fixed size, usually the same as the container. You need to extend the filesystem size as well after extending the underlying container.






share|improve this answer












A filesystem is on a partition/device/volume/some other container. It has a fixed size, usually the same as the container. You need to extend the filesystem size as well after extending the underlying container.







share|improve this answer












share|improve this answer



share|improve this answer










answered 2 hours ago









sebasth

7,43131745




7,43131745











  • If the partition is already resized why resize2fs is required? can you please explain with example. I want to actually see it happening in my centos. I mean what recreating a parition how can I see my filesystem is not resized and how can i see it effect after running resize2fs
    – MaverickD
    1 hour ago










  • RedHat documentation has good examples: How to Resize a Partition using fdisk and How to Grow an ext2/3/4 File System with resize2fs. If you resize the partition and then mount the filesystem, it should still report the old size (in du etc).
    – sebasth
    1 hour ago
















  • If the partition is already resized why resize2fs is required? can you please explain with example. I want to actually see it happening in my centos. I mean what recreating a parition how can I see my filesystem is not resized and how can i see it effect after running resize2fs
    – MaverickD
    1 hour ago










  • RedHat documentation has good examples: How to Resize a Partition using fdisk and How to Grow an ext2/3/4 File System with resize2fs. If you resize the partition and then mount the filesystem, it should still report the old size (in du etc).
    – sebasth
    1 hour ago















If the partition is already resized why resize2fs is required? can you please explain with example. I want to actually see it happening in my centos. I mean what recreating a parition how can I see my filesystem is not resized and how can i see it effect after running resize2fs
– MaverickD
1 hour ago




If the partition is already resized why resize2fs is required? can you please explain with example. I want to actually see it happening in my centos. I mean what recreating a parition how can I see my filesystem is not resized and how can i see it effect after running resize2fs
– MaverickD
1 hour ago












RedHat documentation has good examples: How to Resize a Partition using fdisk and How to Grow an ext2/3/4 File System with resize2fs. If you resize the partition and then mount the filesystem, it should still report the old size (in du etc).
– sebasth
1 hour ago




RedHat documentation has good examples: How to Resize a Partition using fdisk and How to Grow an ext2/3/4 File System with resize2fs. If you resize the partition and then mount the filesystem, it should still report the old size (in du etc).
– sebasth
1 hour ago

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f474397%2fresizing-a-partition-vs-resizing-a-filesystem%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