Re: [CentOS] mount -o loop question.

2012-10-24 Thread Banyan He
exactly, that's a wise choice. Best regards, Banyan He Blog: http://www.rootong.com Email: ban...@rootong.com On 2012-10-24 1:45 PM, Jobst Schmalenbach wrote: On Tue, Oct 23, 2012 at 08:08:38AM -0500, Robert Nichols (rnicholsnos...@comcast.net) wrote: On 10/23/2012 03:44 AM,

Re: [CentOS] mount -o loop question.

2012-10-24 Thread Nux!
On 23.10.2012 14:08, Robert Nichols wrote: On 10/23/2012 03:44 AM, Banyan He wrote: btw, here is the way to append more bytes on the tail, dd if=/dev/zero of=myfile bs=1 count=no_of_bytes seek=$(stat -c%s myfile) Sounds like a hard way to do dd conv=notrunc oflag=append if=/dev/zero

[CentOS] mount -o loop question.

2012-10-23 Thread Jobst Schmalenbach
Hi, I know I can create a file and mount it like this: dd if=/dev/zero of=/tmp/somefile bs=1024 count=10 mke2fs /tmp/somefile mount /tmp/somefile /mnt -o loop but that has a problem it cannot grow. Is there a way to do the same (above) but have it not restricted to a size? Or can I

Re: [CentOS] mount -o loop question.

2012-10-23 Thread Banyan He
The question is what do you want from this feature. The LVM would be able to provide you the ability to adjust the size dynamically. loop device is not part of this game. It offers you build the kernel or fixed file only. To append the number of null will make the system to be reformatted

Re: [CentOS] mount -o loop question.

2012-10-23 Thread Banyan He
btw, here is the way to append more bytes on the tail, dd if=/dev/zero of=myfile bs=1 count=no_of_bytes seek=$(stat -c%s myfile) Banyan He Blog: http://www.rootong.com Email: ban...@rootong.com On 2012-10-23 2:08 PM, Jobst Schmalenbach wrote: Hi, I know I can create a file and

Re: [CentOS] mount -o loop question.

2012-10-23 Thread Robert Nichols
On 10/23/2012 03:44 AM, Banyan He wrote: btw, here is the way to append more bytes on the tail, dd if=/dev/zero of=myfile bs=1 count=no_of_bytes seek=$(stat -c%s myfile) Sounds like a hard way to do dd conv=notrunc oflag=append if=/dev/zero ... -- Bob Nichols NOSPAM is really part

Re: [CentOS] mount -o loop question.

2012-10-23 Thread Jobst Schmalenbach
On Tue, Oct 23, 2012 at 08:08:38AM -0500, Robert Nichols (rnicholsnos...@comcast.net) wrote: On 10/23/2012 03:44 AM, Banyan He wrote: btw, here is the way to append more bytes on the tail, dd if=/dev/zero of=myfile bs=1 count=no_of_bytes seek=$(stat -c%s myfile) Sounds like a hard way