Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-16-2005, 06:58 PM
|
#1
|
Member
Registered: Dec 2004
Location: UK
Distribution: Ubuntu 5.10
Posts: 48
Rep:
|
mkisofs/cdrecord question
When I use mkisofs to create an image, e.g.
Code:
mkisofs -o foo.iso -r mydir/
and then burn it using cdrecord, e.g.
Code:
cdrecord -v dev=1,0,0 -data foo.iso
the resulting cd will have the contents of mydir/ containing all the files I included in the image, like so:
Code:
[matsgl@localhost matsgl]$ ls /mnt/cdrom
mydir/
[matsgl@localhost matsgl]$
All instructions I've managed to find seem to indicate that one should append files to a directory and then create an image from it... Now, rather than creating the image from one directory, is it possible to create it from a number of files directly so that these files will be at the top-level of the cd (and not in the folder mydir/)?
Cheers,
mgl.
|
|
|
04-16-2005, 08:18 PM
|
#2
|
Senior Member
Registered: Oct 2003
Posts: 3,057
Rep:
|
If I want to make an image with no parent directory, I use this method...
cd /dir
mkisofs -R -J -hide-rr-moved -o /home/myfiles.iso .
If I want to create the parent directory and have all files in that directory, I use this method...
In this example, I am also piping directly to cdrecord.
cd /mnt/tech
mkisofs -R -J -graft-points "/aclinux=./aclinux" | \
cdrecord -v dev=ATA:1,0,0 -eject -multi -data -
|
|
|
04-18-2005, 04:31 AM
|
#3
|
Member
Registered: Dec 2004
Location: UK
Distribution: Ubuntu 5.10
Posts: 48
Original Poster
Rep:
|
Homey,
Thanks for that - that was exactly what I was looking for. I tried to find some relevant info in the man pages but obviously mkisofs is a complex app to put it mildly. Could you explain what does in more detail (specifically the -rr-moved option)?
Thanks!
mgl.
|
|
|
04-18-2005, 06:20 AM
|
#4
|
Senior Member
Registered: Oct 2003
Posts: 3,057
Rep:
|
Actually, I don't even use that command most of the time, just happened to be in that example. Basically, from the man page, it just hides some stuff which may be confusing to some people.
man mkisofs
Quote:
-hide-rr-moved
Rename the directory RR_MOVED to .rr_moved in the Rock Ridge tree. It seems to
be impossible to completely hide the RR_MOVED directory from the Rock Ridge tree.
This option only makes the visible tree better to understand for people who don’t
know what this directory is for. If you need to have no RR_MOVED directory at
all, you should use the -D option. Note that in case that the -D option has been
specified, the resulting filesystem is not ISO9660 level-1 compliant and will not
be readable on MS-DOS. See also NOTES section for more information on the
RR_MOVED directory.
|
|
|
|
04-18-2005, 07:48 AM
|
#5
|
Member
Registered: Dec 2004
Location: UK
Distribution: Ubuntu 5.10
Posts: 48
Original Poster
Rep:
|
Seems like I should read the man pages a bit more thoroughly next time
Thanks!
mgl.
|
|
|
04-18-2005, 08:04 AM
|
#6
|
Senior Member
Registered: Oct 2003
Posts: 3,057
Rep:
|
No problem.
|
|
|
09-04-2005, 11:10 AM
|
#7
|
LQ Newbie
Registered: Jun 2005
Distribution: Slackware
Posts: 4
Rep:
|
You may want to use the -r option instead of -R:
FROM MANPAGE:
-r This is like the -R option, but file ownership and modes are set
to more useful values. The uid and gid are set to zero, because
they are usually only useful on the author's system, and not use_
ful to the client. All the file read bits are set true, so that
files and directories are globally readable on the client. If any
execute bit is set for a file, set all of the execute bits, so
that executables are globally executable on the client. If any
search bit is set for a directory, set all of the search bits, so
that directories are globally searchable on the client. All write
bits are cleared, because the CD-Rom will be mounted read-only in
any case. If any of the special mode bits are set, clear them,
because file locks are not useful on a read-only file system, and
set-id bits are not desirable for uid 0 or gid 0. When used on
Win32, the execute bit is set on all files. This is a result of
the lack of file permissions on Win32 and the Cygwin POSIX emula_
tion layer. See also -uid -gid, -dir-mode, -file-mode and -new-
dir-mode.
Last edited by Amadaeus09; 09-04-2005 at 11:11 AM.
|
|
|
All times are GMT -5. The time now is 09:15 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|