Resizing a partition vs resizing a filesystem
Clash 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
filesystems partition
add a comment |Â
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
filesystems partition
Check out theresize2fs
tool in the case of ext2/3/4 filesystems. Also: askubuntu.com/a/115337/158442
â muru
2 hours ago
add a comment |Â
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
filesystems partition
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
filesystems partition
asked 2 hours ago
MaverickD
484
484
Check out theresize2fs
tool in the case of ext2/3/4 filesystems. Also: askubuntu.com/a/115337/158442
â muru
2 hours ago
add a comment |Â
Check out theresize2fs
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
add a comment |Â
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.
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 (indu
etc).
â sebasth
1 hour ago
add a comment |Â
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.
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 (indu
etc).
â sebasth
1 hour ago
add a comment |Â
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.
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 (indu
etc).
â sebasth
1 hour ago
add a comment |Â
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.
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.
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 (indu
etc).
â sebasth
1 hour ago
add a comment |Â
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 (indu
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
add a comment |Â
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
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
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
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
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
Check out the
resize2fs
tool in the case of ext2/3/4 filesystems. Also: askubuntu.com/a/115337/158442â muru
2 hours ago