Re: tar block question
- From: Paulo Silva <paulojjs@xxxxxxxxx>
- Date: Tue, 16 Sep 2008 22:12:56 +0100
I think you can cut some steps
Ter, 2008-09-16 às 10:49 -0700, Bob McGowan escreveu:
[...]
2. losetup -f
prints the name of the next available loop device, in my case it
was /dev/loop0
3. losetup /dev/loop0 /path/to/filename
4. losetup /dev/loop0
/dev/loop0: [0900]:8032956 (/path/to/filename)
to confirm things worked as expected
5. mkfs -t fstype /dev/loop0
use other options if desired, such as "-m 1" with ext3 for 1%
reserved block count instead of 5%.
You sould be able do run mkfs directly on the file without creating a
loop:
# mkfs -t ext3 /path/to/filename
mke2fs 1.41.1 (01-Sep-2008)
/path/to/filename is not a block special device.
Proceed anyway? (y,n) y
[...]
6. mkdir /mnt/diskimg
or use /media/??? or ...
7. mount -t fstype /dev/loop0 /mnt/diskimg
The mount can be done with the loop option using the file as device:
# mount -t fstype -o loop /path/to/filename /mnt/diskimg
--
Paulo Silva <paulojjs@xxxxxxxxx>
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
- Follow-Ups:
- Re: tar block question
- From: Bob McGowan
- Re: tar block question
- References:
- tar block question
- From: Mag Gam
- Re: tar block question
- From: David Fox
- Re: tar block question
- From: Mag Gam
- Re: tar block question
- From: David Fox
- Re: tar block question
- From: Mike McCarty
- Re: tar block question
- From: Bob McGowan
- Re: tar block question
- From: Bob McGowan
- Re: tar block question
- From: Bob McGowan
- tar block question
- Prev by Date: Re: WPA/TKIP with Debian Lenny and Broadcom 4328 via ndiswrapper
- Next by Date: Re: NFS or Samba (windows client)
- Previous by thread: Re: tar block question
- Next by thread: Re: tar block question
- Index(es):
Relevant Pages
|