Write e2fs to CD

2002-10-08 Thread kodell

Folks,

Is it possible to write a e2fs directory structure to CD?
Say I want to backup /www  on my linux e2fs system. 
Then later on, just mount the cd as you would any other e2fs partition.
I use cdrecord, slack linux 8, 2.2 kernel I believe.

I've looked thru the FAQs.

Any help appreciated.

Korey

Visit http://UMSI.us


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Write e2fs to CD

2002-10-08 Thread Matthias Schniedermeyer

On Tue, Oct 08, 2002 at 09:49:53AM -0500, [EMAIL PROTECTED] wrote:
 Folks,
 
 Is it possible to write a e2fs directory structure to CD?
 Say I want to backup /www  on my linux e2fs system. 
 Then later on, just mount the cd as you would any other e2fs partition.
 I use cdrecord, slack linux 8, 2.2 kernel I believe.
 
 I've looked thru the FAQs.
 
 Any help appreciated.

You can burn any filesystem that Linux can read onto a CD. Or no
filesystem at all.
e.g. you can burn a .tar(.gz) file directly onto a CD.




Bis denn

-- 
Real Programmers consider what you see is what you get to be just as 
bad a concept in Text Editors as it is in women. No, the Real Programmer
wants a you asked for it, you got it text editor -- complicated, 
cryptic, powerful, unforgiving, dangerous.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Write e2fs to CD

2002-10-08 Thread Korey O'Dell

Matthias Schniedermeyer wrote:
 
 On Tue, Oct 08, 2002 at 09:49:53AM -0500, [EMAIL PROTECTED] wrote:
  Folks,
 
  Is it possible to write a e2fs directory structure to CD?
  Say I want to backup /www  on my linux e2fs system.
  Then later on, just mount the cd as you would any other e2fs partition.
  I use cdrecord, slack linux 8, 2.2 kernel I believe.
 
  I've looked thru the FAQs.
 
  Any help appreciated.
 


How? Specifically, if I wanted to burn my /www subdirectory and all
files and subdirs contained within to CD. I know I can mkisofs out of
it, but I dont want that. I just want a copy of my e2fs /www on CD.

Thanks
Korey


 You can burn any filesystem that Linux can read onto a CD. Or no
 filesystem at all.
 e.g. you can burn a .tar(.gz) file directly onto a CD.
 
 Bis denn
 
 --
 Real Programmers consider what you see is what you get to be just as
 bad a concept in Text Editors as it is in women. No, the Real Programmer
 wants a you asked for it, you got it text editor -- complicated,
 cryptic, powerful, unforgiving, dangerous.
 
 --
 To UNSUBSCRIBE, email to [EMAIL PROTECTED]
 with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Write e2fs to CD

2002-10-08 Thread Matthias Schniedermeyer

On Tue, Oct 08, 2002 at 10:37:32AM -0500, Korey O'Dell wrote:
 Matthias Schniedermeyer wrote:
  
  On Tue, Oct 08, 2002 at 09:49:53AM -0500, [EMAIL PROTECTED] wrote:
   Folks,
  
   Is it possible to write a e2fs directory structure to CD?
   Say I want to backup /www  on my linux e2fs system.
   Then later on, just mount the cd as you would any other e2fs partition.
   I use cdrecord, slack linux 8, 2.2 kernel I believe.
  
   I've looked thru the FAQs.
  
   Any help appreciated.
  
 
 
 How? Specifically, if I wanted to burn my /www subdirectory and all
 files and subdirs contained within to CD. I know I can mkisofs out of
 it, but I dont want that. I just want a copy of my e2fs /www on CD.

Want you want seems to be packet-writing.

With packet-writing you use the CD-R(W) in a HDD like way(*).

AFAIK there is something like this for Linux, but can't say anything
more.



*: Strongly simplified.




Bis denn

-- 
Real Programmers consider what you see is what you get to be just as 
bad a concept in Text Editors as it is in women. No, the Real Programmer
wants a you asked for it, you got it text editor -- complicated, 
cryptic, powerful, unforgiving, dangerous.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Write e2fs to CD

2002-10-08 Thread Frank Hage

: 
: How? Specifically, if I wanted to burn my /www subdirectory and all
: files and subdirs contained within to CD. I know I can mkisofs out of
: it, but I dont want that. I just want a copy of my e2fs /www on CD.
: 
: Thanks
: Korey
: 

Korey,

It's not clear if your /www represents the root of a e2fs file system.
Assuming it does, here's all you need to do;

dd if=/dev/hdaX bs=32k | cdrecord -v -

(replace hdaX with your e2fs partition mounted as /www)


I often backup directories into tar files and then write those
to CD's using mkisofs, rather than running mkisofs on the directories
themselves. Tar files keep file permissions, ownerships, dates, etc and
allows for more flexibility when accessing and restoring files.

I'm curious, Why do you want an e2fs on the CD?  Few people would know
how to read an e2fs image file or CD.

I hope this helps. 

-- 
Frank Hage  [EMAIL PROTECTED]
National Center for Atmospheric Research


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Write e2fs to CD

2002-10-08 Thread Korey O'Dell

Frank Hage wrote:
 
 :
 : How? Specifically, if I wanted to burn my /www subdirectory and all
 : files and subdirs contained within to CD. I know I can mkisofs out of
 : it, but I dont want that. I just want a copy of my e2fs /www on CD.
 :
 : Thanks
 : Korey
 :
 
 Korey,
 
 It's not clear if your /www represents the root of a e2fs file system.
 Assuming it does, here's all you need to do;
 
 dd if=/dev/hdaX bs=32k | cdrecord -v -
 
 (replace hdaX with your e2fs partition mounted as /www)
 
Thanks Frank for the info.
Yes /www is just a directory on my e2fs file system.

 I often backup directories into tar files and then write those
 to CD's using mkisofs, rather than running mkisofs on the directories
 themselves. Tar files keep file permissions, ownerships, dates, etc and
 allows for more flexibility when accessing and restoring files.
 
 I'm curious, Why do you want an e2fs on the CD?  Few people would know
 how to read an e2fs image file or CD.
True, few people would, but these are only for my use. I want to do
simply e2fs because:
No intermediate file created, disk space is a problem at times.
No need to mess with large tar files later on.
Quick browsing of the CD contents.

Thanks again.


 
 I hope this helps.
 
 --
 Frank Hage  [EMAIL PROTECTED]
 National Center for Atmospheric Research
 
 --
 To UNSUBSCRIBE, email to [EMAIL PROTECTED]
 with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Write e2fs to CD

2002-10-08 Thread Len Sorensen

On Tue, Oct 08, 2002 at 06:49:02PM +0200, Matthias Schniedermeyer wrote:
 Want you want seems to be packet-writing.
 
 With packet-writing you use the CD-R(W) in a HDD like way(*).
 
 AFAIK there is something like this for Linux, but can't say anything
 more.
 
 
 
 *: Strongly simplified.

Unfortunately the number of times this would rewrite the part of the
disc storing the inode table would kill a cd-rw in no time.  That is
what UDF is for.

UDF works fine on DVD-RAM.  No idea what patches would be needed for a
CD-RW or DVD-RW drive.  Supposedly DVD+RW works although I have never
seen or used one of those.

Len Sorensen


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Write e2fs to CD

2002-10-08 Thread Len Sorensen

On Tue, Oct 08, 2002 at 12:20:29PM -0500, Korey O'Dell wrote:
 True, few people would, but these are only for my use. I want to do
 simply e2fs because:
 No intermediate file created, disk space is a problem at times.
 No need to mess with large tar files later on.
 Quick browsing of the CD contents.

You do need something intermediate unless your machine is pretty fast
(p3 800 seems to do it easily).  You can't copy a subdir as e2fs.  Onlya
complete partition.  Anything else will require using something to
create a new filesystem, although it can be done on the fly with
mkisofs.

I often use this

mkisofs -r -J . -o - | cdrecord -dev 0,1,0 -eject -speed 8 -v fs=8m -

That writes the current dir to a cd.  Ofcourse doing mkisofs -r -J
-printsize . first is a good plan to make sure the size will be ok.

Doing e2fs from a subdir will require an intermediate step of create a
file to mke2fs on, mount as loop device, copy files, unmount, write to
cd.  Not a good plan.

Len Sorensen


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]