what's inside zdrv.sfs? and is there a way to cut it

Using applications, configuring, problems
Post Reply
Message
Author
magerlab
Posts: 739
Joined: Sun 08 Jul 2007, 20:08

what's inside zdrv.sfs? and is there a way to cut it

#1 Post by magerlab »

what is inside zdrv sfs. file? I see that it have many locales inside, but what else?
i need only one locale( russian). the folder with locales unpacks to 15.5mbs in /temp
but what else ?
is there a way to look insude that zdrv file?

User avatar
trapster
Posts: 2117
Joined: Mon 28 Nov 2005, 23:14
Location: Maine, USA
Contact:

#2 Post by trapster »

In puppy 3.00 you just click on the .sfs file :D

I'm not sure you should make changes if the file is currently loaded (?)

you can mount the file manually with:
mkdir /root/mnt
mount -o loop /mnt/home/zdrv_xxx.sfs /root/mnt
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Slacko
Currently using full install: DebianDog

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#3 Post by BarryK »

trapster wrote:I'm not sure you should make changes if the file is currently loaded (?)
No, it's only loaded "on demand" when a driver or firmware has to be fetched. So, you can modify it.

The zdrv file is built using Puppy Unleashed, which has options for creating a smaller version.

magerlab
Posts: 739
Joined: Sun 08 Jul 2007, 20:08

#4 Post by magerlab »

so i need to take the unleashed package
what i must do to reduce its size?

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#5 Post by muggins »

all you have to do is mount the zdrv_xxx.sfs, as indicated by trapster, then, as it's read-only, copy it somewhere else, delete what you want to, then make a new .sfs.

mkdir /xxx
cp /zdrv_xxx.sfs /zdrv_xxx.bak
mount -o loop /zdrv_xxx.sfs /xxx
mkdir /yyy
cp -rf /xxx/* /yyy
umount /xxx
rmdir /xxx
....then delete whatever you want from /yyy
....then:

mksquashfs /yyy /zdrv_xxx.sfs

if you're happy with your result, then you can delete /zdrv_xxx.bak & /yyy. (of course you need to substitute xxx for whatever the real zdrv version is).

magerlab
Posts: 739
Joined: Sun 08 Jul 2007, 20:08

#6 Post by magerlab »

Thank you very much for the unswers
this forum is one of the best i 've seen
i''ll try to do all that you advised
also is it possible to put some drivers in new sfs
for example vpn is very popular way to connect to the www in russia
but as far as i know it's very hard to do under linux( i do not use vpn myself, but i heard of it)

Post Reply