LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 05-10-2017, 08:27 AM   #1
Asciente
Member
 
Registered: May 2017
Location: Surakarta, Central java, Indonesia
Distribution: Debian and MX-linux
Posts: 53

Rep: Reputation: Disabled
Remastersys error : filesystem is too big for iso


Hi All,
I am using Debian Mate and try to make an iso file from my file system after making some modifications (remove unnecessary programs and adding some new). But when I use remastersys to create a distributable iso image, it told me that my filesystem is too large to be an iso file.
I'm wondering what makes it too large (my personal file in the home folder is only about 20MB) and I didn't add too much programs to my system.
When I do some research, I found another filesystem inside my filesystem. It's in the /lib/live/mount/medium directory containing the exactly same files with my USB flash drive that I used to install my system.
Another one is in the /lib/live/mount/rootfs folder, it contains filesystem.squashfs folder. And inside this folder, I found another filesystem too in /lib/live/mount/rootfs/filesystem.squashfs/lib/live/mount/rootfs/filesystem.squashfs.
So there are 4 filesystems in total, perhaps that's why my filesystem is too large to make it an iso image. My question is, are those file really necessary or just useless files that eat up my storage?
I've tried to delete them, reboot my computer, and everything is OK. Then I try to make it an ISO image again using remastersys, completed, then burn it to my flash drive using rufus (as usual). But when I boot my computer from the USB flash drive, after selected the live boot mode, only blank screen with a single X sign appeared on the screen.
Honestly, this is my first trial of making an ISO image from my system. I've got this debian iso from my programmer (and totally sure that he was made his own modification on it).
I want to know those files usage and what was wrong when I used remastersys.
Thank you, All!

Last edited by Asciente; 05-10-2017 at 08:29 AM.
 
Old 05-10-2017, 08:35 AM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
some info on file size limits for iso's

https://en.wikipedia.org/wiki/ISO_9660

https://en.wikipedia.org/wiki/ISO_image

http://wiki.osdev.org/ISO_9660
 
Old 05-10-2017, 08:40 AM   #3
Asciente
Member
 
Registered: May 2017
Location: Surakarta, Central java, Indonesia
Distribution: Debian and MX-linux
Posts: 53

Original Poster
Rep: Reputation: Disabled
Thanks BW-userx
Then, what should I do to reduce my filesystem size to make it small enough to be an iso (without remove any modifications that I have made, of course)
I have no idea what makes it too big, perhaps the files that I've mentioned above, or another?
 
Old 05-10-2017, 10:51 AM   #4
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by Asciente View Post
Thanks BW-userx
Then, what should I do to reduce my filesystem size to make it small enough to be an iso (without remove any modifications that I have made, of course)

I have no idea what makes it too big, perhaps the files that I've mentioned above, or another?
1. how to fit a square into a hole without making it the same size needed to work? good question.
2. Only you can answer that last question. I do not have your data to look at.

One creates an OS puts it into an iso file. then has something called a repo to add the rest if needed.
if the things are too many to fit onto one plate, most people get a second plate. Or just cut back on what they are trying to take.

Last edited by BW-userx; 05-10-2017 at 10:54 AM.
 
Old 05-10-2017, 10:57 AM   #5
Asciente
Member
 
Registered: May 2017
Location: Surakarta, Central java, Indonesia
Distribution: Debian and MX-linux
Posts: 53

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
1. how to fit a square into a hole without making it the same size needed to work? good question.
2. Only you can answer that last question. I do not have your data to look at.
First, my filesystem should be in normal size since I didn't modificate it too much.
Second, my personal data is only about 20MB in size, the rest belong to file system. I have no data which consume big capacity of my storage, then wonder out what is so big inside. What I found had been written in my post above.
 
Old 05-10-2017, 11:11 AM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by Asciente View Post
First, my filesystem should be in normal size since I didn't modificate it too much.
Second, my personal data is only about 20MB in size, the rest belong to file system. I have no data which consume big capacity of my storage, then wonder out what is so big inside. What I found had been written in my post above.
you'd have to look into this
Directories and files
and
Directory depth limit
and
The 2/4 GiB file size limit
https://en.wikipedia.org/wiki/ISO_9660

as you stated you have other file systems within and within
"Another one is in the /lib/live/mount/rootfs folder, it contains filesystem.squashfs folder. And inside this folder, I found another filesystem too in /lib/live/mount/rootfs/filesystem.squashfs/lib/live/mount/rootfs/filesystem.squashfs."
 
Old 05-10-2017, 11:24 AM   #7
Asciente
Member
 
Registered: May 2017
Location: Surakarta, Central java, Indonesia
Distribution: Debian and MX-linux
Posts: 53

Original Poster
Rep: Reputation: Disabled
It says that the iso file should not be more than 4GB and maximum 8 level of directories. I have some ideas that may could be the solution. I will do some more experiments then post the result here soon.

Thanks a lot BW-userx
I'll be back soon

Last edited by Asciente; 05-10-2017 at 11:25 AM.
 
Old 05-10-2017, 11:40 AM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,856

Rep: Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568
There are different versions of remastersys for Debian and Ubuntu derivatives. Did you get the correct one?
Remastersys has not actually been in development for some time and may not work at all on newer Debian/Ubuntu installs.
The limit for an iso is 4GB and my experience is that a 9.6GB installed system is compressed to a 3.6GB iso so if your Debian root system is much larger than 10GB, it probably will fail.

Replacements for remastersys which work on some Linux systems are 'PingGuy Builder' and 'Systemback'. If you don't have any luck with remastersys, you might try the other software.

Remastersys creates an iso of the installed system. If you want to include anything in your /home/user directory, you need to use the 'Backup' option. You can check the size of the installed/mounted system with df -h. Unplug or unmount any devices/partitions you don't want on the iso which would include the flash drive you used to install.
 
Old 05-10-2017, 11:50 AM   #9
Asciente
Member
 
Registered: May 2017
Location: Surakarta, Central java, Indonesia
Distribution: Debian and MX-linux
Posts: 53

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
There are different versions of remastersys for Debian and Ubuntu derivatives. Did you get the correct one?
Remastersys has not actually been in development for some time and may not work at all on newer Debian/Ubuntu installs.
The limit for an iso is 4GB and my experience is that a 9.6GB installed system is compressed to a 3.6GB iso so if your Debian root system is much larger than 10GB, it probably will fail.

Replacements for remastersys which work on some Linux systems are 'PingGuy Builder' and 'Systemback'. If you don't have any luck with remastersys, you might try the other software.

Remastersys creates an iso of the installed system. If you want to include anything in your /home/user directory, you need to use the 'Backup' option. You can check the size of the installed/mounted system with df -h. Unplug or unmount any devices/partitions you don't want on the iso which would include the flash drive you used to install.
My system reaches about 13GB
Someone told me that this is the remastersys minor : your file system will get bigger everytime you back it up to iso (I'll seek out more about it)
I use remastersys which is included in the system, I didn't install it manually
I will try your recommendation about PingGuy Builder and Systemback, too. It will be a good experience to try as many things as possible, especially for a newbie like me.
Thanks yancek!
 
Old 05-10-2017, 11:57 AM   #10
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by yancek View Post
Remastersys creates an iso of the installed system. If you want to include anything in your /home/user directory, you need to use the 'Backup' option. You can check the size of the installed/mounted system with df -h. Unplug or unmount any devices/partitions you don't want on the iso which would include the flash drive you used to install.
I'm looking in to that one out of curiosity. That'd be a good thing.

here is something else that is a fork

Welcome to Respin
We are a fork of Remastersys. The remastersys fork - Respin forum will be available soon.

mod: aahhgg debian based arug..

Relinux

how to relinux


I leave it up to one who looks to decide

Last edited by BW-userx; 05-10-2017 at 12:05 PM.
 
Old 05-10-2017, 03:28 PM   #11
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,856

Rep: Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568Reputation: 2568
Quote:
My system reaches about 13GB
Good luck with that.

After running remastersys, you will see a remastersys directory in the /home directory. Before running it a second time, you need to remove all those files created. I think there is a 'clean' option within remastersys. Also, if the iso didn't 'work', make sure to delete it before running it again.
 
Old 05-10-2017, 03:52 PM   #12
tofino_surfer
Member
 
Registered: Aug 2007
Posts: 483

Rep: Reputation: 153Reputation: 153
It is possible to create iso files larger than 4GB with the multi-extent feature. From the Wikipedia page given previously

https://en.wikipedia.org/wiki/ISO_96...ile_size_limit

Quote:
It is, however, possible to circumvent this limitation by using the multi-extent (fragmentation) feature of ISO 9660 Level 3 to create ISO 9660 filesystems and single files up to 8 TB. With this, files larger than 4 GB can be split up into multiple extents (sequential series of sectors), each not exceeding the 4 GB limit. For example, the free software such as InfraRecorder, ImgBurn and mkisofs as well as Roxio Toast are able to create ISO 9660 filesystems that use multi-extent files to store files larger than 4 GB on appropriate media such as recordable DVDs.
There are OS isos much larger than 4GB. Centos 7 has an everything iso that is 7.7 GB. Fedora used to have similar complete iso files over 6-7 GB in size which stopped at Fedora 22. Centos still has these very large isos. You just need to use something other than Remastersys to create them.

The Wikipedia page above mentions the command line mkisofs among other graphical programs. I recommend starting with mkisofs.
 
Old 05-14-2017, 05:33 AM   #13
Asciente
Member
 
Registered: May 2017
Location: Surakarta, Central java, Indonesia
Distribution: Debian and MX-linux
Posts: 53

Original Poster
Rep: Reputation: Disabled
Hi All,
I've repeat the steps but it's result's same still.
Finally, I download Debian Jessie 8.8, customize it, then make it an iso. Success!
I'm still not sure what makes my old Debian (Wheezy, 7.2) too big and can't be made an iso.
 
Old 05-15-2017, 02:51 PM   #14
tofino_surfer
Member
 
Registered: Aug 2007
Posts: 483

Rep: Reputation: 153Reputation: 153
Quote:
I'm still not sure what makes my old Debian (Wheezy, 7.2) too big and can't be made an iso.
You could very well make an iso out of Debian (Wheezy, 7.2) no matter how big it was as long as you used something better than Remastersys. As the Wikipedia page mentions other software doesn't have the 4GB limit as they can create multi-extent isos. For example, the free software such as InfraRecorder, ImgBurn and mkisofs as well as Roxio Toast are able to create ISO 9660 filesystems that use multi-extent files to store files larger than 4 GB on appropriate media such as recordable DVDs.

As mentioned Centos 7 currently has a 7.7 GB iso file for download. The largest OS iso file I remember was over 11 GB.

Quote:
Good luck with that.
With better software to create iso files you don't have a 4GB limit and so don't need luck or for that matter jerky responses from a "guru".
 
Old 05-15-2017, 03:06 PM   #15
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,130

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
filesystem.squashfs makes me think you had a live version but not always.

Generally when a distro wants to save space they turn to squash file system. You have to unsquash it and edit then re-squash it back.
 
  


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
Cannot get "remastersys" access or load "remastersys-gui" bugga Linux - Newbie 2 04-19-2014 12:33 AM
rsync multiple filesystem to one big FS depam Linux - Software 1 12-04-2013 02:40 AM
remastersys exclude remastersys in iso ac_kumar Linux - Newbie 0 12-26-2011 02:25 AM
booting remastersys iso using grub2 anandogc Linux - Software 5 08-27-2010 07:39 AM
Remastersys: removing files from the ISO newbiesforever Linux - Software 6 10-06-2009 04:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:01 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