Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Creating .unc extensions for unionfs?, Can't get all the pieces to fit.....< Next Oldest | Next Newest >
firecat53 Offline





Group: Members
Posts: 22
Joined: July 2006
Posted: Aug. 07 2006,02:48 QUOTE

Could someone post a short guide on creating the new .unc extensions for the unionfs or point me where to find the info? I've searched the forums and the wiki, finding the bits on creating .dsl and .uci extensions, and a little on how to use the unionfs, but I can't quite make the leap to actually get the .unc to work.

Thanks!
Scott
Back to top
Profile PM 
clacker Offline





Group: Members
Posts: 570
Joined: June 2004
Posted: Aug. 07 2006,12:34 QUOTE

firecat53, try looking here where robert explains it.

The easiest way to make a *.unc is to make a working *.dsl first.  Put the myapp.dsl in /home/dsl and do the following (copied from robert's post but I added the --same-owner switch to the tar command):

1. mkdir myapp
2. cd myapp
3. sudo tar -zxvf ../myapp.dsl --same-owner
4. find home tmp -type f | xargs tar -czvf user.tar.gz
5. rm -rf home/ tmp/
6. cd ..
7 mkisofs -R -hide-rr-moved -cache-inodes -pad myapp/ | create_compressed_fs - 65536 > myapp.unc
Back to top
Profile PM 
firecat53 Offline





Group: Members
Posts: 22
Joined: July 2006
Posted: Aug. 09 2006,15:21 QUOTE

Thanks for the reply, clacker!  I missed that post.

Scott
Back to top
Profile PM 
Winter Knight Offline





Group: Members
Posts: 146
Joined: April 2006
Posted: Aug. 09 2006,19:56 QUOTE

That script might not work unless you make the following changes:

5. sudo rm -rf home/ tmp/

Because of your change to #3, keeping the same owner, it is possible that files in home and tmp have files belonging to root. If there are, these files won't be deleted, and neither will home and tmp. Then the offending file, home and tmp will be included in the final unc.

I was thinking that 4 might need a sudo as well, but it doesn't. The permissions will be default permissions, which give everyone the right to read, no matter who the owner is.
Back to top
Profile PM 
clacker Offline





Group: Members
Posts: 570
Joined: June 2004
Posted: Aug. 09 2006,20:02 QUOTE

Good point, thanks.  If there were files like that in /home or /tmp it could be a problem.
Back to top
Profile PM 
4 replies since Aug. 07 2006,02:48 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Creating .unc extensions for unionfs?

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code