LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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
  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 stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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



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
Accidentally overwrote /bin/sh roastedmnm SUSE / openSUSE 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:47 AM.

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