The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
Article Feedback - Home networks are everywhere
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 mkisofs is not necessary
Author: Dan Langille 
Date:   01-08-03 19:52

I found out today that the mkisofs step is only necessary if you want to mount the CD contents as a file system.

Here's what I accidentally did today:

cdrecord -eject speed=12 dev=0,5,0 ~dan/fp2003.06_fbsd_fppho_fs_pho_phpads_.tgz

Note that I supplied a compressed tarball to cdrecord, not an ISO as I usually do.

I mentioned this (in a Linux channel on IRC), and was promptly told:

that's ok, you can access it with tar ...

So I can! Witness:

# tar tzf /dev/cd0a
freshports_phorum.2003.06.26.sql
freshports_phorum.2003.06.27.sql
freshports_phorum.2003.06.28.sql
freshports_phorum.2003.06.29.sql
freshports_phorum.2003.06.30.sql
freshports_phorum.2003.07.01.sql
freshports_phorum.2003.07.02.sql
freshports_phorum.2003.07.03.sql
freshports_phorum.2003.07.04.sql
freshports_phorum.2003.07.05.sql
freshports_phorum.2003.07.06.sql
freshports_phorum.2003.07.07.sql
freshports_phorum.2003.07.08.sql
freshports_phorum.2003.07.09.sql
freshports_phorum.2003.07.10.sql
^C

Woo hoo! I'll just keep that CD and mark it accordingly.

Reply To This Message
 
 Re: mkisofs is not necessary
Author: Dan Langille 
Date:   01-08-03 22:02

More info: I got these types of errors:

# tar tzf /dev/cd0a
tar (child): /dev/cd0a: Cannot read: Input/output error
tar (child): At beginning of tape, quitting now
tar (child): Error is not recoverable: exiting now

So I tried:

$ sudo cat /dev/acd0a > raw.tgz
cat: /dev/acd0a: Input/output error

[after a long delay]

Next was:

$ sudo cat /dev/acd0c | tar tvzf -

[lots of output]


-rw-r--r-- ftpbackup/ftpbackup 34249 Jul 29 03:17 2003 freshsource_phorum.2003.07.29.sql
cat: /dev/acd0c: Input/output error
-rw-r--r-- ftpbackup/ftpbackup 34249 Jul 30 03:17 2003 freshsource_phorum.2003.07.30.sql
-rw-r--r-- ftpbackup/ftpbackup 34249 Jul 31 03:17 2003 freshsource_phorum.2003.07.31.sql
-rw-r--r-- ftpbackup/ftpbackup 34249 Aug 1 03:17 2003 freshsource_phorum.2003.08.01.sql

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

Next tried was:

$ sudo cat /dev/acd0c > raw.tgz
cat: /dev/acd0c: Input/output error

At this point, I suspected the original tarball, but that was fine:

$ tar tvzf ~dan/fp2003.06_fbsd_fppho_fs_pho_phpads_.tgz

[no errors]

And then:

$ sudo dd if=/dev/acd0c bs=2k of=raw.tgz
dd: /dev/acd0c: Input/output error
288985+0 records in
288985+0 records out
591841280 bytes transferred in 965.288864 secs (613123 bytes/sec)

While all the above was going on, I was creating an ISO and burning new CDs...

My advice: ignore what I said. This whole thread is now merely a curiousity.

Reply To This Message
 
 Re: mkisofs is not necessary
Author: Dan Langille 
Date:   02-08-03 00:15

Oh, that tarball I got from the dd? I did this:

$ tar xvfz raw.tgz

I got:

... [snipped]
freshsource_phorum.2003.07.30.sql
freshsource_phorum.2003.07.31.sql
freshsource_phorum.2003.08.01.sql

gzip: stdin: decompression OK, trailing garbage ignored
tar: Child returned status 2
tar: Error exit delayed from previous errors

So that looks ok, just a bit of extra data is rounding up to the block size: 591841280 is 591839307 rounded up to 2k

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org