Re: Write e2fs to CD
On Tue, 8 Oct 2002 [EMAIL PROTECTED] wrote: Belated note... 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. One thing to note is that with older kernel versions the block size must be larger than the sector size, so a block size of 4k is needed. dd if=/dev/zero bs=1m count=650 of=image.iso mke2fs -b 4096 image.iso mount -o loop image.iso /mnt cp my_files /mnt/subdir umount /mnt cdrecord -pad dev=b,d,l speed=xx image.iso As noted, e2fs is not optimal for a CD! -- rob bogus -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Write e2fs to CD
On Tue, 8 Oct 2002, 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. In Debian there's a /usr/doc/HOWTO/en-txt/CD-Writing-HOWTO.gz for this thing you want to do. rgrds, m4c. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Write e2fs to CD
On Wed, Oct 09, 2002 at 07:44:09AM +0200, Matthias Schniedermeyer wrote: On Wed, Oct 09, 2002 at 06:59:11AM +0200, Guido Hamacher wrote: Am Dienstag 08 Oktober 2002 17:14 schrieb 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. Fine idea -- but how do I read a tar-file from CD? SCSI: tar options /dev/srX IDE: tar options /dev/hdX In my case tar -zxvf /dev/sr2 I prefer readcd (comes with cdrecord). Len Sorensen -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Write e2fs to CD
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
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
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
: : 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
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
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
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]