can I look inside image.gz and usr_c ram.fs

Booting, installing, newbie
Post Reply
Message
Author
user-786

can I look inside image.gz and usr_c ram.fs

#1 Post by user-786 »

Well heading of this post is my question.

Any answers ?

User avatar
Pizzasgood
Posts: 6183
Joined: Wed 04 May 2005, 20:28
Location: Knoxville, TN, USA

#2 Post by Pizzasgood »

Yep!
image.gz
copy it to where you want it
extract it

Code: Select all

gunzip image.gz
mount it

Code: Select all

mount image.gz /mnt/linux2 -o loop
(you can use any directory, not just /mnt/linux2)
Go to the directory where it is mounted

usr_cram.fs

Code: Select all

mount usr_cram.fs /mnt/linux3 -t squashfs -o loop
(you can use any directory, not just /mnt/linux3)
Go to the directory where it is mounted


Hope that helps! Keep in mind that you cannot edit usr_cram.fs in this way, you would have to re-compress it. You can edit image.gz, but you can't increase it's size.
[size=75]Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib[/size]
[img]http://www.browserloadofcoolness.com/sig.png[/img]

User avatar
Ted Dog
Posts: 3965
Joined: Wed 14 Sep 2005, 02:35
Location: Heart of Texas

Other tools I use

#3 Post by Ted Dog »

to view an ISO.
single click an ISO copy this into the set run action besure to include open and closing `

Code: Select all

`rox -D /mnt/cdrom ;umount /mnt/cdrom ; mount -o loop -t iso9660 -r "$1" /mnt/cdrom ; rox /mnt/cdrom`
also here is a cut in to a shell: taken from a remaster script but mine only uses ramdrive.
#!/bin/bash
rm -f /tmp/image
gunzip -c /mnt/home/image.gz | dd of=/tmp/image
rm -rf /mnt/image
mkdir /mnt/image
losetup-FULL /dev/loop2 /tmp/image
mount -t ext2 /dev/loop2 /mnt/image
sync
rox "/mnt/image"
echo -n -e "Press Enter to reconstruct image.gz"
read nn4
rox -D "/mnt/image"
sync
dd if=/tmp/image | gzip -9 > /tmp/image.gz
umount /mnt/image

sccat
Posts: 160
Joined: Mon 22 Aug 2005, 04:22

#4 Post by sccat »

How to edit "image" in windows?

thanks.

User avatar
Pizzasgood
Posts: 6183
Joined: Wed 04 May 2005, 20:28
Location: Knoxville, TN, USA

#5 Post by Pizzasgood »

Try searching for a free windows program that can read and edit ext2 filesystem images. There should be one out there somewhere.
[size=75]Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib[/size]
[img]http://www.browserloadofcoolness.com/sig.png[/img]

User avatar
Pizzasgood
Posts: 6183
Joined: Wed 04 May 2005, 20:28
Location: Knoxville, TN, USA

#6 Post by Pizzasgood »

Try searching for a free windows program that can read and edit ext2 filesystem images. There should be one out there somewhere.
[size=75]Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib[/size]
[img]http://www.browserloadofcoolness.com/sig.png[/img]

Post Reply