LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-12-2005, 02:24 AM   #1
kvtournh
Member
 
Registered: Nov 2003
Location: Belgium
Distribution: Mandriva
Posts: 91

Rep: Reputation: 15
Cd image with hardlinks


Hi,

i have a directory containing files and subdirectories and a lot of hardlinks. A du shows that the directory is approx 2Gb big, but a copy shows it is more then 8 (due to the hardlinks)

I want to burn this directory on a DVD but only the 2Gb version, so I mean I want to make an image that contains the hardlinks also.

does anybody knows how?

greets

klaas
 
Old 01-12-2005, 04:00 PM   #2
sludink
Member
 
Registered: Jan 2005
Location: Brabant, the Netherlands
Distribution: Gentoo 2004.x (2.6.10 hardened)
Posts: 91

Rep: Reputation: 15
I'm afraid that isn't possible.
There's no distinction between a hard link and a file itself.
Imagine the following: There's a file with NO NAME on the harddisk from byte 4 to 8.
You CALL the file FILE1.
So if you open FILE1, the OS looks the file up in a table and finds it should look at byte 4 to 8.
If you hardlink it (symbolic linking is different!), to FILE2, FILE2 points to byte 4 to 8.
So if you open FILE2, the OS looks the file up, and finds it should look at the same byte 4 to 8.
Conclusion is, if you burn it on CD, you burn the whole file instead of the link.

I guess the reason of the behaviour of du isn't the hardlinks, since hardlinks cannot be distincted from real files normally, but I'm not quite sure.

Are you sure the links are hard and not symbolic? It's possible to get symbolic links on a dvd.
 
Old 08-27-2006, 05:22 AM   #3
qwerty_42
LQ Newbie
 
Registered: Jul 2005
Location: Sweden/Hässleholm
Posts: 4

Rep: Reputation: 0
I do think it is possible, I guess there is the usual mixup with the difference between a hardlink and a symlink. If the links are syminks then the previous answer is correct and it will not be done, however if the links really are harlinks then it is possible with mkisofs. In fact (according to the manpage of mkisofs) that is the default mode of operation. It may be controlled using the flags -cache-inodes and -no-cache-inodes.

I have not tried this myself, but I probably will soon...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Lotsa hardlinks - how do I find the others? humbletech99 Linux - General 6 11-27-2005 01:27 PM
Kernel-image renamed to linux-image? powadha Debian 2 08-02-2005 05:07 AM
Can I Convert DVD image to CD image? bnchakraborty Linux - Software 1 07-22-2005 01:17 AM
Setting X boot image, and loading image untwisted Linux - General 2 03-09-2004 07:40 PM
Best image viewer for very large image files? andvaranaut Linux - Software 1 02-21-2004 10:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration