LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 12-19-2004, 12:16 PM   #1
tryangle
Member
 
Registered: Feb 2003
Location: Penns Woods
Distribution: RedHat OpenSuse Ubuntu Mepis
Posts: 34

Rep: Reputation: 15
Unhappy Overwrote insmod with a symlink


I've been at this about a year and a half... enough to be dangerous. Well, since I overwrote insmod with a symlink, the computer is totally cut off from everything except itself. It won't recognize a network card and I can't mount a floppy, cd or thumb drive to copy the file back into the system. It seems like there might be a command line, more than mount -t vfat /dev/fd0 /mnt/floppy ((failed to exec /sbin/modprobe -s -k vfat, errno = 2) /sbin/modprobe is a symlink to /sbin/insmod) that would "override" the need for insmod to have loaded the modules in order to recognize the type and mount something... is there?

TIA for any help on this,
tryangle
 
Old 12-19-2004, 12:25 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,697

Rep: Reputation: 286Reputation: 286Reputation: 286
don't quote me on this, but I think you need to re-install modutils. since you can't access cd drive when the system is up and running, you will have to boot from cd, and run the system from the kernel image on cd.

then, create a mount point in /mnt to mount the partition in which your distro is installed. edit the running version of /etc/fstab to add the device and mount point so that you can mount the partition.

cd to /mnt/<mountpoint>

copy the modutils rpm from install cd to someplace in /mnt/<mountpoint> and install. just remember that the install location will be /mnt/<mountpoint>/sbin in order to install it to the partition and not the running version from cd.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Accidentally overwrote /bin/sh roastedmnm Suse/Novell 5 07-26-2005 02:37 AM
XP overwrote Linux bootloader... jamies85 Linux - Newbie 7 02-22-2005 04:07 PM
help: accidentally overwrote on crontab auden Slackware 1 02-14-2005 06:40 AM
Help with insmod. I have a problem with insmod. RJARRRPCGP Linux - Newbie 5 08-24-2004 08:23 PM
WinXP overwrote Grub JohnHawes Linux - Newbie 14 02-13-2004 08:23 PM


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