Linux System Calls Question:

How to use resize2fs, what is the purpose?

Tweet Share WhatsApp

Answer:

resize2fs is only for ext2 filesystem but not ext3.
first unmount the partition
#umount /dev/sda1

#tune2fs -O ^has_journal /dev/sda1 #to remove journal from /dev/sda1

#e2fsck -f /dev/sda1

#resize2fs /dev/sda1 600M #resize the partition

Download Linux System Calls PDF Read All 35 Linux System Calls Questions
Previous QuestionNext Question
What is the diff between ext3 and ext2 File system?If the FS is in read-only mode, so we cannot create any file. How will you fix it?