Proper way to split a large directory into partitions respecting dirname and filename, and then create burnable iso for Blu-ray preserving the directory tree. #55
Replies: 2 comments
-
Problem solved by manually editing the partition content into
to
Then run Thank you very much for creating this tool! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Perfect, thanks for your feedback :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to backup
/mnt/drive/photos
which have a very large directory tree like this:I would like to do 2 things:
fpart
into multiple partitions, each of which contains less than 25GB of data (for 25GB Blu-ray disc), and the splitting should respect the dirname and filename in alphebatical order.fpart
.After some trial and error, for 1), I think it can be achieved by
find /mnt/drive/photos -type f | sort | fpart -L -s 23500m -i - -o photos
.It generated multiple files with filename
photos.1
photos.2
...photos.n
, I believed they are called partitions.The partitions content seems to be sorted with alphabetical order.
Because some of the partitions exceed 25GB with the
-L -s 25g
, so I use-L -s 23500m
instead.After that, it is also challenging to make a burnable ISO.
I guess the proper tool for this should be
mkisofs
orxorrisofs
, because the-path-list
flag of both tools seems to be designed to read the output generated byfpart
.What I want in the ISO is like this:
I tested it with the command
mkisofs -o image1.iso -J -r -graft-points -path-list photos.1
However, it seems that the
-graft-points
is not respected by-path-list
, all the files in the partitionphotos.1
are put to the root directory of ISO. It generated an error because some of them having the same filename.mkisofs -o image1.iso -J -r -graft-points /=/mnt/drive/photos -path-list photos.1
, also did not work. It did 2 things: 1) put ALL the directories inside/mnt/drive/photos
into the root of ISO. 2) put all the files in the partitionphotos.1
into the root of ISO.I am pretty much stuck here after testing it for a whole day.
Am i using
fpart
ormkisofs
improperly so they are not working together?Please help!
Beta Was this translation helpful? Give feedback.
All reactions