LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Alternative filesystems on a DVD

[ILUG] Alternative filesystems on a DVD

Brian Foster blf at blf.utvinternet.ie
Mon Aug 21 19:39:08 IST 2006


  | Date: Mon, 21 Aug 2006 15:27:49 +0000 (GMT)
  | From: Malcolm Tyrrell <malcoh0l at yahoo.ie>
  |[ ... ]
  | >   mkisofs -o image.iso -R ../Temp   would work
  | 
  | It does!
  | 
  | But what if there is no overarching directory?  In my case I
  | want to backup three partitions, but I certainly don't want to
  | backup /.
  | 
  | A quick fix (which seems to work for my system) is to create
  | a little directory of symbolic links to the partitions I want,
  | and tell mkisofs to follow links.  But what if the partitions
  | themselves contained links that pointed all over the shop?

 this is where `--graft-point' is very possibly yer
 friend:

    mkisofs -R -o image -graft-points -- path_in_ISO/=path_on_HDD

 note the trailing `/' in the magic  dir/=dir  argument;
 AFAICR, it matters (at least when using the trick
 described below?)!  the  path_in_ISO/  should not start
 with `/';  nominally,  path_on_HDD  does.  and usefully,
 you can have multiple such arguments.

 mkisofs(1) creates any dirs in the ISO necessary to
 make  path_in_ISO/  valid.  the _problem_ (for me) with
 the above is the mode/owner/group of those dirs is both
 rubbish and uniform (identical).  that may or may not
 be Ok for you, but since it vastly annoyed me ....

 .... I found a simple hack to work-around the problem:
 I also create a little directory (as mentioned above),
 not of symlinks, but of the directories named as they
 are to appear in the ISO (i.e.,  path_in_ISO/  names).
 I set the mode/owner/group of each directory to what
 I want, and then:

    cd the_little_dir
    mkisofs -R -o ../image -graft-points -- . path_in_ISO/=path_on_HDD

 that is, `.' (the_little_dir) is first in the list of
 things to put into the ISO, followed by the magical
 path_in_ISO/=path_on_HDD  argument(s).  end result is
 `mkisofs' creates the needed dirs as per my precise
 specifications, and then uses them as per the graft
 magic without creating any dirs on its own.

cheers!
	-blf-
-- 
Experienced (20+ yrs) kernel/software Eng: | Brian Foster   Montpellier,
 • Unix, embedded, &tc;  • Linux;  • doc;  | blf at utvinternet.ie   FRANCE
 • IDL, automated testing, process, &tc.   |  Stop E$$o (ExxonMobile)!
Résumé (CV) http://www.blf.utvinternet.ie  |     http://www.stopesso.com



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell