All of lore.kernel.org
 help / color / mirror / Atom feed
* mkreiserfs: Meaning of "fileysteme-size" arg
@ 2005-09-29  8:48 Mirko.Klemm
  2005-09-29  9:47 ` Konstantin Münning
  0 siblings, 1 reply; 2+ messages in thread
From: Mirko.Klemm @ 2005-09-29  8:48 UTC (permalink / raw)
  To: reiserfs-list

Hi,

what is the EXACT meaning of the "filesystem-size" command line argument to
mkreiserfs?
Is it the total size the filesystem occupies, i.e. will the filesystem fit
on a partition exactly the size in "filesystem-size", or is it some sort of
net value, to which I have to add some overhead.

Background:
I want to create a filesystem on a disk partition that can be backed up to
a dvd+r just by "dd"-ing an image of the filesystem onto the dvd+r-writer,
and I'd like to make the filesystem exactly the size the dvd+r can hold.
Unfortunately, this exact size cannot be expressed by my hard disk geometry
(i.e. i cannot make a partition exactly that size), so the partition has to
be a bit bigger than the filesystem. Can I create a reiserfs that is
smaller than the partition it is contained in, with the "filesystem-size"
argument,, and will this work reliably?

Thanks,
Mirko


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: mkreiserfs: Meaning of "fileysteme-size" arg
  2005-09-29  8:48 mkreiserfs: Meaning of "fileysteme-size" arg Mirko.Klemm
@ 2005-09-29  9:47 ` Konstantin Münning
  0 siblings, 0 replies; 2+ messages in thread
From: Konstantin Münning @ 2005-09-29  9:47 UTC (permalink / raw)
  To: reiserfs-list

Hi!

Mirko.Klemm@tsg-online.de wrote:
> Hi,
> 
> what is the EXACT meaning of the "filesystem-size" command line argument to
> mkreiserfs?

according to the man page:

filesystem-size is the size in blocks of the filesystem. If omitted,
mkreiserfs will automatically set it.

> Is it the total size the filesystem occupies, i.e. will the filesystem fit
> on a partition exactly the size in "filesystem-size", or is it some sort of
> net value, to which I have to add some overhead.

In my understanding and experience it is the size you want to occupy
with the fs. This would be the size of the partition you want the fs to
fit in. If you don't specify it mkreiserfs will query the size itself.

> Background:
> I want to create a filesystem on a disk partition that can be backed up to
> a dvd+r just by "dd"-ing an image of the filesystem onto the dvd+r-writer,
> and I'd like to make the filesystem exactly the size the dvd+r can hold.
> Unfortunately, this exact size cannot be expressed by my hard disk geometry
> (i.e. i cannot make a partition exactly that size), so the partition has to
> be a bit bigger than the filesystem. Can I create a reiserfs that is
> smaller than the partition it is contained in, with the "filesystem-size"
> argument,, and will this work reliably?

I assume you want to make it like this to be able to mount the DVD later
for accessing the backup files directly (no untarring).

The idea is nice but maybe there are better ways. For the reliability -
if you can umount (or remount ro) the partition before backing it up it
would work reliable. Otherwise you will be saving an unclean partition
with possible corruptions as journal and fs contents may change
independently while you are storing.

Why using reiserfs on a read only medium? The only sense I see is if you
want to keep the positions of the data on the medium after restoring by
dd-ing it back to your partition. Some software copy protections need
this. Otherwise you would be wasting media for the journal. Creating a
new fs and restoring the files is only a little bit more effort but you
get allways a clean fs.

If your concern is to store files >2GB which isofs can't, use UDF. The
dvd+rw-tools can do this on the fly so doing this is as easy as dd-ing
the partition to the DVD.

Do you need to have a partition for your fs? Arbitrary sizes are
possible if you create an image file and store your fs there. You can
mount it using the loopback device. Otherwise if you use a partition
bigger than the fs you need to specify fs size on the dd command as
otherwise dd will transfer the size of the partition, not the size of
the (smaller) fs.

I hope I could help.
Konstantin

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-09-29  9:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-29  8:48 mkreiserfs: Meaning of "fileysteme-size" arg Mirko.Klemm
2005-09-29  9:47 ` Konstantin Münning

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.