LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-16-2006, 12:45 PM   #1
bladerunner12120
LQ Newbie
 
Registered: Oct 2006
Posts: 9

Rep: Reputation: 0
copy flash from cisco 2950 router to another one that has no flash


hi i need to copy the flash from one cisco 2950 router to another one that HAS NO FLASH! have been trying for days with a few others to no avail, any help would be greatly appreciated. i am using slack 11 with 2.6.18.2 kernel and am accessing the router with minicom

Last edited by bladerunner12120; 11-16-2006 at 02:00 PM.
 
Old 11-17-2006, 07:28 AM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
do you have a tftp server configured ? copy the flash image to the tftp server from the running Device, then boot the other device and retrieve the image from the tftp server. Isn't a 2950 a Switch ?

Upgrading Software Images on Catalyst 2950 and 2955 Series Switches using the Command Line Interface
http://www.cisco.com/warp/public/473/191.html

Recovery from Missing or corrupt software on a Cisco 2900XL Series switch
http://www.cisco.com/warp/public/473...ing_image.html

Loading and Maintaining System Images and Microcode (IOS GUIDE)
http://cisco.com/univercd/cc/td/doc/...rt2/fcd203.htm

copy flash tftp

copy tftp flash

Last edited by farslayer; 11-17-2006 at 07:49 AM.
 
Old 11-21-2006, 01:29 PM   #3
bladerunner12120
LQ Newbie
 
Registered: Oct 2006
Posts: 9

Original Poster
Rep: Reputation: 0
ok ive got it copied to a hard disk but i cant copy it to the flashless switch because it keeps saying permission is denied.... any ideas?

Last edited by bladerunner12120; 11-21-2006 at 02:08 PM.
 
Old 11-21-2006, 10:25 PM   #4
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
How are you trying to copy it to the switch with no image ? where are you when you receive that message ? are you using the procedure I linked to above ?

Recovery from Missing or corrupt software on a Cisco 2900XL Series switch

That would be the most likely (ok ONLY) method of getting a working image back on the switch if it's not currently running working software..

Pay particular attention to (Section B) Copy a New Software Image from ROM Monitor which explains step by step how to use the ROM image on the switch to load a new Software image into flash..
 
Old 12-07-2006, 01:45 PM   #5
bladerunner12120
LQ Newbie
 
Registered: Oct 2006
Posts: 9

Original Poster
Rep: Reputation: 0
ok the only problem with that is that there is not only no flash but also no ther files on the switch the only file on the thing is env_vars and i dont have the eneable command or nothin... ive tried entering rom monitor mode by sending breaks on bootup which is so far as ive found the only way to enter rommon mode without the enable command. whenever i try useing xmodem to transfer files to it it says "this file is not an SGML document" and cancels the transfer.. thats when i try transfering the OS to it... when i try and transfer the other small files i need itr says that there cannot be an ! in the prolog and cancels the transfer yet again.... and the above texts dont say anything about this situation..... weve done an ascii transfer and it said it transfered but not the whole thing and we couldent find the part that it said it had transfered either... any ideas? cause im lost
 
Old 12-07-2006, 03:25 PM   #6
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
You should be transferring a single file with a bin extension according to that document..

I am not sure what you are trying to do, because I don't think you are following the directions provided by Cisco.. I have never transfered a bunch of individual files to a system, its a single image file something like c2955-i6q4l2-mz.121-13.EA1.bin and that's it.. and the software image would be a binary transfer if prompted not ascii.
You did follow the link to the detailed article on the topic right ?
http://www.cisco.com/en/US/products/...80169696.shtml

Yes you must use the break sequence to enter rommon mode because that's the only way to get there.. Rommon mode is prior to the switch booting the software installed in flash memory(which your switch apparently doesn't contain anyway.. )

And Hyper Terminal is a big hunk of garbage, imho. Download a decent terminal application like Tera Term Pro.
So much easier to work with and configure than Hyperterminal. http://hp.vector.co.jp/authors/VA002416/teraterm.html
Even as old as it is TeraTerm is way better than Hypertemial.

The switch shouldn't care about the file type it should just accept the transfer so I have no idea what is throwing that SGML error.

You could always call TAC if you need professional assistance.
http://www.cisco.com/warp/public/687...y/DirTAC.shtml

Last edited by farslayer; 12-07-2006 at 03:31 PM.
 
Old 12-08-2006, 01:09 PM   #7
bladerunner12120
LQ Newbie
 
Registered: Oct 2006
Posts: 9

Original Poster
Rep: Reputation: 0
we followed the directions on that page step by step as far as we could till we hit something that made it not work... wich was usualy a permission denied error. and for some other reason it will not enter rommon mode when we send a break either. the reason we tried sending smaller files was because.. well... heres what a normal router we have looks like in the flash directory

2 -rwx 2490607 Mar 01 1993 00:03:03 c2950-i6q4l2-mz.121-9.EA1.bin
3 -rwx 1838 Mar 01 1993 00:38:19 config.text
4 -rwx 2047 Mar 01 1993 00:12:27 start]
5 -rwx 269 Jan 01 1970 00:06:07 env_vars
6 -rwx 592 Mar 01 1993 00:00:20 vlan.dat
7 -rwx 108 Mar 01 1993 00:01:43 info
8 drwx 640 Mar 01 1993 00:03:53 html
19 -rwx 108 Mar 01 1993 00:03:53 info.ver
20 -rwx 153 Mar 01 1993 00:29:42 layout.text
21 -rwx 120 Mar 01 1993 23:11:10 layoutOption.txt
22 -rwx 2490607 Mar 01 1993 00:11:11 system
23 -rwx 1838 Mar 01 1993 00:39:08 switch-confg

now heres how it looks in the flash directory of the one that were working on

3 -rwx 8 <date> env_vars

7739904 bytes available (1536 bytes used)
switch:

and thats all. any suggestions on how to get the enable command to the one that doesnt work? or if theres a way to use the working switches flash_init and load_helper on it or to transfer theme... or is there any way to access the bad switch with the good one so that we can do transfers? if you wana give up on this one i dont blame ya cause were about 2 seconds away from dropping it ourselves. thanks for the help you have given us and any future input. were much abbliged
 
Old 12-08-2006, 01:17 PM   #8
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Most of those other files look like configuration files and may be created automatically after the switch boots from the IOS image..

I would concentrate on getting the IOS image on the switch and see if you can get it to boot.

you can NOT get into enable mode until you have software on the switch until then you are stuck with the basic image that is in ROM.

so basically you cannot get this binary file c2950-i6q4l2-mz.121-9.EA1.bin onto the new switch ?

Complete error messages would be helpful in troubleshooting. Enable logging in TeraTermPro so you can cut and paste the errors as you attempt the procedure.

Saying it gives an error about permissions isn't helpful to either of us.. When does it give the error, what exactly were you doing.. What steps did you do before that ? that can all be logged with teraterm

Last edited by farslayer; 12-08-2006 at 08:32 PM.
 
Old 12-08-2006, 01:19 PM   #9
Newtonx
LQ Newbie
 
Registered: Oct 2006
Distribution: Slackware 11.0 with 2.6.18.2 Kernel compiled from source at kernel.org
Posts: 16

Rep: Reputation: 0
have faith bro, with the help of this website we shall prevail, btw scotty you owe me 20 bucks
 
Old 02-05-2007, 09:57 AM   #10
drgnlegend3
LQ Newbie
 
Registered: Feb 2007
Posts: 2

Rep: Reputation: 0
re: bladerunner

same problem here
 
Old 02-05-2007, 09:58 AM   #11
drgnlegend3
LQ Newbie
 
Registered: Feb 2007
Posts: 2

Rep: Reputation: 0
picture

hey bladerunner the am is having the same problem as the pm.

to anyone thats willing to help bladerunner heres a picture of the problem don't give up we need you.

http://thepictureshackdeoskaloosa.8k.com/snapshot1.jpg
 
Old 04-02-2007, 01:20 PM   #12
bladerunner12120
LQ Newbie
 
Registered: Oct 2006
Posts: 9

Original Poster
Rep: Reputation: 0
we got it fixed all we had to do was reformat and do a fresh install. *bangs head on desk*
 
Old 09-09-2008, 05:01 PM   #13
linuxnorth
LQ Newbie
 
Registered: Sep 2008
Posts: 1

Rep: Reputation: 0
Flash copy

I think the original poster meant to ask how to copy all the files and directories in flash, not only the IOS image.
I have a similar issue and I was wondering if there is a way to do this transfer using the command line.
Doing this from one flash card to another is easy using a card reader.
Going from a pluggable CF card to internal flash is the problem.
 
  


Reply

Tags
cisco, copy, flash, router


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
copy a file to the flash disk and extract it from the flash disk indu.a Linux - Kernel 2 11-15-2006 03:22 AM
FFS partition on Compact Flash card - how to copy ??? rkaluzinski Linux - General 0 02-24-2006 03:48 PM
FLASH FLASH XP Home and Samba Fix FLASH FLASH zollodav Linux - Networking 1 02-19-2006 01:16 AM
flash disk copy giulioudo Linux - General 4 01-24-2006 12:32 PM
Exact Copy of Compact Flash Card Onyx^ Linux - Software 1 09-01-2004 04:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:36 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