LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Other *NIX
User Name
Password
Other *NIX This forum is for the discussion of any UNIX platform that does not have its own forum. Examples would include HP-UX, IRIX, Darwin, Tru64 and OS X.

Notices

Reply
 
Search this Thread
Old 11-28-2006, 03:16 PM   #1
rendalli
LQ Newbie
 
Registered: Nov 2006
Posts: 5

Rep: Reputation: 0
Locate and edit an image file - simple?!?!


Hi, I am competant windows support technition that prior to 2 months ago has never seen an linux box in his life. I have a linux box running suse linux 9.3 which i have been playing with and I have recently downloaded some DVR freeware which if i boot from I can turn my linux box into a digital video recorder. Within the DVR console there is a logo image that as I understand I can change if I so wish. When exploring the files on the boot disk most of the file names are meaningless to me. I have been trying to edit a bzimage which I think is a compressed jpeg but have had no luck, the only other file I think it could be is a initrd.splash but again i cannot edit this. Can some one help me please? I have listed the directory structure and the files within below.

DVR root (folder) containes the following:
bzimage(unknown file)

BOOT(folder) the files within here are: boot.0700, map (which are unknown file types) & initrd.splash

DEV(folder) the files within here are: hda, hda1, hda2, hda3, hda4, hdc, hdc1, hdc2, hdc3, hdc4, loop0, loop1 1 loop2 (all are unknown files)

ETC(folder) the file within here is: lilo.conf

TMP(folder) - empty

LOST+FOUND(folder) - empty

ENV(folder) - the files within here are: model, model.old and pap-secrets (all which are unknown file types)
cyberxport.xml, supervision.xml, svuser.xml, svalarm.xml (all of which 1 contain various amounts of xml which I can submit if it will help)

Last edited by rendalli; 11-28-2006 at 03:22 PM. Reason: spelling!
 
Old 11-28-2006, 03:22 PM   #2
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
bzimage is the linux kernel, so no - it's not a jpeg. I would guess that it's initrd.splash. If you can post the contents of the /etc/lilo.conf I'd be able to tell you for sure.
 
Old 11-28-2006, 04:31 PM   #3
rendalli
LQ Newbie
 
Registered: Nov 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by PatrickNew
bzimage is the linux kernel, so no - it's not a jpeg. I would guess that it's initrd.splash. If you can post the contents of the /etc/lilo.conf I'd be able to tell you for sure.

when I open lilo.conf in notepad i get the following: lba32
compact

disk=/dev/loop0
bios=0x80
cylinders=500
heads=8
sectors=16
partition=/dev/loop1
start=16
partition=/dev/loop2
start=4224

boot=/dev/loop0
map=/boot/map

delay=20
default=DVR

image=/bzImage
label=DVR
read-only
root=/dev/hda2
initrd=/boot/initrd.splash
append="dvr-mode=normal"
#image=/bzImage
# label="Maintain"
# read-only
# root=/dev/hda2
# initrd=/boot/initrd.splash
# append="dvr-mode=maintain"
image=/bzImage
label="Console"
read-only
root=/dev/hda2
initrd=/boot/initrd.splash
append="dvr-mode=console"
Thanks for you help
 
Old 11-28-2006, 04:39 PM   #4
rendalli
LQ Newbie
 
Registered: Nov 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rendalli
when I open lilo.conf in notepad i get the following: lba32
compact

disk=/dev/loop0
bios=0x80
cylinders=500
heads=8
sectors=16
partition=/dev/loop1
start=16
partition=/dev/loop2
start=4224

boot=/dev/loop0
map=/boot/map

delay=20
default=DVR

image=/bzImage
label=DVR
read-only
root=/dev/hda2
initrd=/boot/initrd.splash
append="dvr-mode=normal"
#image=/bzImage
# label="Maintain"
# read-only
# root=/dev/hda2
# initrd=/boot/initrd.splash
# append="dvr-mode=maintain"
image=/bzImage
label="Console"
read-only
root=/dev/hda2
initrd=/boot/initrd.splash
append="dvr-mode=console"
Thanks for you help
If it will help I can mail you the files as in total they are just over a meg.
 
Old 11-28-2006, 04:42 PM   #5
rendalli
LQ Newbie
 
Registered: Nov 2006
Posts: 5

Original Poster
Rep: Reputation: 0
If you have time and it helps i can mail you all the folders as they are just over 1 meg.
 
Old 11-28-2006, 07:28 PM   #6
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
Well, I'm not exactly sure how one does this. Initrd is like a "hard drive in a file". It's like a snapshot of a very small imaginary hard drive that only has very basic tools and the program that starts up your computer. My guess would be that if you looked in there, you would find the picture. Did you say this was a live CD? It is booting off the hard drive, which is odd for a liveCD (But, I guess not impossible).

http://www.cpqlinux.com/dig-initrd.html

This page should show you how to crack it open.

BTW, what cd/distro is this?
 
Old 11-29-2006, 03:52 AM   #7
rendalli
LQ Newbie
 
Registered: Nov 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by PatrickNew
Well, I'm not exactly sure how one does this. Initrd is like a "hard drive in a file". It's like a snapshot of a very small imaginary hard drive that only has very basic tools and the program that starts up your computer. My guess would be that if you looked in there, you would find the picture. Did you say this was a live CD? It is booting off the hard drive, which is odd for a liveCD (But, I guess not impossible).

http://www.cpqlinux.com/dig-initrd.html

This page should show you how to crack it open.

BTW, what cd/distro is this?
Thanks for the reply. Just to explain, what i have here is i think just a very basic operating system which runs on the linux bios (remember i am learing linux but still speak windows!!) In order for me to get this work i have had to place these files on a blank hard drive and then install drive on the the primary IDE so the machine boots using it. (I also have to have a multi channel cctv PCI card installed else the OS crashed). I have tried unzipping the initrd.splash.gz (.gz added by me) and it tells me there was an error unzipping it. Again if you have time let me send you the files as they are only just over a meg. You can then also keep them for you self. In the CCTV market they discuise these systems in flashy boxes and sell these systems for around 1200 for what equates to 200 worth of hardware and this type of software.

what do you mean by distro?
 
Old 11-29-2006, 08:44 AM   #8
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
I feel silly, I should have know it wasn't a live cd from the existence of a lilo.conf. Well, this presents new issues - bzImage and initrd.splash are deeply involved in booting your computer. Did you change bzImage at all? Don't, as you could make your computer unbootable.

In linux, a "distro" is short for "distibution". It's like the particular flavor of linux you use. I like Fedora and Debian. Some like PCLinuxOS and Mandriva. I just asked because each has some documentation of their own, and whatever type you got might have something on it's page that would be useful in helping you.

My email is pamoran [at] edisto [dot] cofc [dot] edu . (of course, remove all spaces and translate the []. Just send me what's under the boot folder, that's where it'll be.
 
  


Reply

Tags
edit, image, linux, suse


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
How to edit /squid/errors to view with image joel17 Linux - Networking 1 02-03-2006 01:24 PM
Request for a simple net script edit <Ol>Origy Linux - Networking 0 06-03-2005 01:51 PM
Simple Question - How To Edit With Recovery CD? rrrssssss Linux - Newbie 1 04-22-2005 07:08 AM
Simple question - how to edit config file in Suse 9.1? rollo Linux - Distributions 3 07-18-2004 09:47 AM
edit gif image? asyoung Linux - General 3 07-14-2003 12:52 PM


All times are GMT -5. The time now is 11:05 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration