How To Extend Size Of The Storage File

Posted by ankur1990 on Aug 27, 2011 4:29 PM EDT; By Sumit Rai , Ankur Aggarwal
Mail this story
Print this story

In our previous post “using a file as a storage device” adrian asked a question to us : is it possible to extend the size on the ‘filename’ file? We searched on it and figured out the answer. Let’s roll Lets say you create a file name /newfile of size 200MB and format it, after a while you want to extend the file size. To do that do the following Step 1. Lets say you want to increase the file size by 100MB dd oflag=append conv=notrunc if=/dev/zero of=/newfile bs=1MB count=100 Now, the file is 100MB larger. Step 2. Run file system check on the file

Full Story

» Read more about: Story Type: Tutorial; Groups: Community, Debian, GNOME, GNU, Kernel, Linux, Ubuntu

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.