LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-30-2005, 09:39 AM   #1
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
Booting snapshot


Is there anyway i can take several snapshots of my linux booting up? I need it for a project i'm working on.

If not, are there any alternatives? I'm thinking the output of dmesg, but i'd prefer an actual booting snapshot.

Thanks.

Last edited by xushi; 04-30-2005 at 09:41 AM.
 
Old 04-30-2005, 10:10 AM   #2
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 31
Gonna have to boot Linux in a virtual machine, I'm afraid.

Or do it the old fashioned way with a digital camera.
 
Old 04-30-2005, 11:26 AM   #3
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Original Poster
Rep: Reputation: 45
Damn =/

Is there any easy way to copy over my linux partition (or another one on my hd) to boot it in vmware? or do i have to virutally reinstall again?
 
Old 04-30-2005, 01:14 PM   #4
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 31
As long as you have the drive space on an unmounted drive, you can do it with dd. The problem is that if your Linux system is too large, you won't be able to fit the entire image.

You're looking for kernel messages, though, right? Why not just copy the kernel into a bootdisk image (use the root/boot disk howto if you don't know how to do this), and then boot that with vmware or something? The system won't be usable, but the kernel itself will boot and be able to get pretty far in the booting process before it panics and dies. Far enough that you can finish off the screenshots from within your system without needing to change anything, maybe?
 
Old 04-30-2005, 01:37 PM   #5
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Original Poster
Rep: Reputation: 45
Quote:
Originally posted by killerbob
As long as you have the drive space on an unmounted drive, you can do it with dd. The problem is that if your Linux system is too large, you won't be able to fit the entire image.
The system i can use is around 1.4Gb. Is that too large? (Note: i have a dvd burner if it helps). I think making a live cd out of it and using that cd in vmware may be one solution, if i can figure out how to do it before the end of the day.

Quote:
You're looking for kernel messages, though, right? Why not just copy the kernel into a bootdisk image and then boot that with vmware or something? The system won't be usable, but the kernel itself will boot and be able to get pretty far in the booting process before it panics and dies. Far enough that you can finish off the screenshots from within your system without needing to change anything, maybe?
lol, crazy I'll read up on how to copy the kernel into an image.

Thanks.
 
Old 04-30-2005, 01:40 PM   #6
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,812

Rep: Reputation: 946Reputation: 946Reputation: 946Reputation: 946Reputation: 946Reputation: 946Reputation: 946Reputation: 946
if you have framebuffer you can use fbgrab
http://hem.bredband.net/gmogmo/fbgrab/
to do screenshot, you have to edit rc.* files to add some lines like
/path/to/fbgrab -c 1 /path/to/file.png

[edit]
If make fails, edit the makefile and add -lm :
Code:
fbgrab: fbgrab.c
    gcc -g -Wall fbgrab.c -lpng -lz -lm -o fbgrab

Last edited by keefaz; 04-30-2005 at 01:44 PM.
 
Old 04-30-2005, 02:05 PM   #7
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Original Poster
Rep: Reputation: 45
Seems like a nice program. But i'm getting an error in make even if i add lm
Code:
root@xushitop:/download/fbgrab-1.0# make
splint +posixlib fbgrab.c
Splint 3.1.1 --- 30 Apr 2005

/usr/include/asm/types.h:11:24: Parse Error:
    Suspect missing struct or union keyword: __signed__ :
    unsigned short int. (For help on parse errors, see splint -help
    parseerrors.)
*** Cannot continue.
make: *** [fbgrab] Error 1
Any suggestion?
 
Old 04-30-2005, 02:11 PM   #8
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,812

Rep: Reputation: 946Reputation: 946Reputation: 946Reputation: 946Reputation: 946Reputation: 946Reputation: 946Reputation: 946
Remove all lines with ' splint ' in the makefile, it is not needed
Code:
fbgrab: fbgrab.c
    gcc -g -Wall fbgrab.c -lpng -lz -lm -o fbgrab

install:
    strip fbgrab
    install fbgrab /usr/bin/fbgrab
    install fbgrab.1.man /usr/man/man1/fbgrab.1

clean:
    rm -f fbgrab *~ \#*\#
 
Old 04-30-2005, 02:17 PM   #9
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Original Poster
Rep: Reputation: 45
Excellent, that did the job =)

Thanks alot keefaz, killerbob.
 
  


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
What is a filesystem snapshot? Thaidog Solaris / OpenSolaris 3 05-19-2005 09:27 PM
snapshot tool gexiaofei Linux - Software 5 08-12-2003 05:03 PM
What is CVS Snapshot? tobsai Linux - Newbie 4 05-28-2003 04:43 PM
snapshot backup jmarsh Linux - Networking 0 03-26-2003 09:18 AM
snapshot cheeyee Linux - Software 0 10-01-2002 02:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

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