* Newbie question about mkfs.xfs command
@ 2007-09-17 21:17 Hxsrmeng
2007-09-18 0:50 ` Donald Douwsma
0 siblings, 1 reply; 2+ messages in thread
From: Hxsrmeng @ 2007-09-17 21:17 UTC (permalink / raw)
To: linux-xfs
What does the second "loop" means in "mkfs.xfs -d file=loop loop"? Thanks.
--
View this message in context: http://www.nabble.com/Newbie-question-about-mkfs.xfs-command-tf4470099.html#a12745380
Sent from the linux-xfs mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Newbie question about mkfs.xfs command
2007-09-17 21:17 Newbie question about mkfs.xfs command Hxsrmeng
@ 2007-09-18 0:50 ` Donald Douwsma
0 siblings, 0 replies; 2+ messages in thread
From: Donald Douwsma @ 2007-09-18 0:50 UTC (permalink / raw)
To: Hxsrmeng; +Cc: linux-xfs
Hxsrmeng wrote:
> What does the second "loop" means in "mkfs.xfs -d file=loop loop"? Thanks.
The final parameter to mkfs.xfs needs to be a block device or a file.
In your case it looks like you intend to create a filesystem on a file
called loop (so you can mount it later as a loopback device?).
You dont need the '-d file=loop' (which is invalid, file= takes 1 or 0),
mkfs.xfs usually figures this out.
So assuming you created a test file with something like
# dd if=/dev/zero of=testfile bs=1k count=100000
100000+0 records in
100000+0 records out
102400000 bytes (102 MB) copied, 0.770193 seconds, 133 MB/s
You make an xfs filesystem with just
# mkfs.xfs testfile
meta-data=bar isize=256 agcount=6, agsize=4096 blks
= sectsz=512 attr=0
data = bsize=4096 blocks=24576, imaxpct=25
= sunit=0 swidth=0 blks, unwritten=1
naming =version 2 bsize=4096
log =internal log bsize=4096 blocks=1200, version=1
= sectsz=512 sunit=0 blks, lazy-count=0
realtime =none extsz=4096 blocks=0, rtextents=0
And after making a mount point, mount it with
# mount -o loop testfile testmount
The -o loop tells mount to use a loopback device to turn your testfile into
a block device for the mount. This is the only step you need root permissions
for.
Don
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-09-18 2:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-17 21:17 Newbie question about mkfs.xfs command Hxsrmeng
2007-09-18 0:50 ` Donald Douwsma
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox