LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-06-2001, 12:15 PM   #1
jrmann1999
Member
 
Registered: Feb 2001
Location: Texas
Distribution: Slackware, Mandrake, LFS
Posts: 306

Rep: Reputation: 30
ReiserFS Help


Probably quite a simple answer, but here goes.

I'm trying to create quite a simple virtual disk image(using DD to create a temp file and then formatting it accordingly). I can't get mkreiserfs to do the format, but mke2fs does(see below for output of commands). Is there any way to force reiserfs to format my image?

J

# dd if=/dev/zero of=temp.img ibs=1k count=700000
# mkreiserfs temp.img

<-------------mkreiserfs, 2001------------->
reiserfsprogs 3.x.0j
mkreiserfs: temp.img is not a block special device.
# mke2fs temp.img
mke2fs 1.22, 22-Jun-2001 for EXT2 FS 0.5b, 95/08/09
temp.img is not a block special device.
Proceed anyway? (y,n) y
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
87552 inodes, 175000 blocks
8750 blocks (5.00%) reserved for the super user
First data block=0
6 block groups
32768 blocks per group, 32768 fragments per group
14592 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840

Writing inode tables: done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 25 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
 
Old 11-08-2001, 10:29 PM   #2
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
I'm not sure if this is what you want, but a loopback device may be what you need. I got this info from the man losetup page.

dd if=/dev/zero of=/file bs=1k count=100

losetup /dev/loop0 /file

mkfs -t ext2 /dev/loop0 100

mount -t ext2 /dev/loop0 /mnt

...

umount /dev/loop0

losetup -d /dev/loop0


Just try to see if you can format it in Reiserfs instead of ext2.
 
Old 11-09-2001, 09:29 AM   #3
jrmann1999
Member
 
Registered: Feb 2001
Location: Texas
Distribution: Slackware, Mandrake, LFS
Posts: 306

Original Poster
Rep: Reputation: 30
You learn something new every day, I didn't know that losetup command existed. It worked!

J
 
Old 11-09-2001, 04:56 PM   #4
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
I'm glad that it was what you were looking for.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
An odd reiserfs booting problem in a special situation may be about SUSE10's reiserfs ayal Linux - Newbie 7 11-15-2005 07:36 AM
Can you convert Reiserfs 3 to Reiserfs 4 JSylvia007 Linux - Distributions 1 08-19-2004 03:01 PM
Add ReiserFS package destroys non-ReiserFS partitions smirk Mandriva 0 03-24-2004 07:20 PM
Reiserfs Uchiha sasuke Linux - General 9 11-04-2003 02:58 AM
reiserfs juby Linux - Software 5 06-24-2003 06:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration