How big does sysrcd.dat expand to? [solved]

All other questions
Pete44
Posts: 6
Joined: 17 Nov 2011, 22:09

How big does sysrcd.dat expand to? [solved]

Postby Pete44 » 19 Nov 2011, 10:02

Hi all

Just like the heading says, how big is sysrcd.dat when expanded/unsquashed?
I tried:

# mkdir edit
# mount /livemnt/boot/sysrcd.dat /mnt -o loop
# rsync -aP /mnt/ /root/edit

It expands thousands of files then all of a sudden (10 minutes or so later), I get
an error about rsync write failed on /root/edit/var/lib/clamav/main.cvd: No space left on device (28)

I thought /root runs in RAM and I have 2GB.

All I'm trying to do is get rid of all the lib64 files and make changes to /bin/bashlogin.
Thanks.
Pete.

gernot
Posts: 1127
Joined: 07 Apr 2010, 16:19

Re: How big does sysrcd.dat expand to?

Postby gernot » 19 Nov 2011, 11:33

Looks like rsync work incorrect. You need ~900 MB for the files.
There is a manual for customizing. http://www.sysresccd.org/Sysresccd-manu ... ueCd#Usage
To avoid errors while creating a iso bott from a real CD to customize.

You can try this.
mount none /mnt/custom -t tmpfs
sysresccd-custom extract

it can be that your 2GB are not enough to recreate the Image so its better to mount a ext formated partition to /mnt/custom.

Gernot

p.s. you can bashlogin change with a autorun script.

Pete44
Posts: 6
Joined: 17 Nov 2011, 22:09

Re: How big does sysrcd.dat expand to?

Postby Pete44 » 19 Nov 2011, 11:48

Hello Gernot

OK, what I did is use another ext2 formatted 4GB USB flash drive
then mounted it as follows:

Code: Select all

mkdir edit    (while I'm in /root)
mount /dev/sdb1 /root/edit
mount /livemnt/boot/sysrcd.dat /mnt -o loop
rsync -aP /mnt/ /root/edit


Then once it was finished expanding:

Code: Select all

umount /mnt


Then I made my changes and then typed:

Code: Select all

mksquashfs /root/edit /root/newsysrcd.dat


It worked but took some time.
Perhaps you idea of changing the bashlogin via an autorun script is better.
Any pointers as how to change specific lines?

Thanks.
Pete.

gernot
Posts: 1127
Joined: 07 Apr 2010, 16:19

Re: How big does sysrcd.dat expand to?

Postby gernot » 19 Nov 2011, 11:53

use sed, but it is better to copy your predefined bashlogin from the storage.
The bootdevice root directory is /livemnt/boot., the pwd / in autorun environment
Using a here document in autorun work too.

Gernot

Pete44
Posts: 6
Joined: 17 Nov 2011, 22:09

Re: How big does sysrcd.dat expand to?

Postby Pete44 » 19 Nov 2011, 13:18

OK thanks Gernot.
The problem I am having is that any changes I make
to the new sysrcd.dat as outlined above are not persistant.

In other words, I have the whole of sysrcd.dat expanded on a USB flash drive.
I have made the changes there and they are there.
However when I then type (in root):

mkdir edit
mount /dev/sdb1 /root/edit
mksquashfs /root/edit /root/newsysrcd.dat

It makes the new .dat file but when it boots, the changes are not there.
Also if I then reboot and look at the changes on the USB flash disk having the expanded sysrcd.dat,
the changes are gone.

Is /bin/bashlogin created at run time or is it just the one
stored under /bin/bashlogin in sysrcd.dat?
or is it something to do with umount?

Pete44
Posts: 6
Joined: 17 Nov 2011, 22:09

Re: How big does sysrcd.dat expand to?

Postby Pete44 » 19 Nov 2011, 14:14

Not to worry, all sorted and working.
Thanks.


Return to “Other”

Who is online

Users browsing this forum: Google [Bot] and 5 guests