LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Anybody know what this means ?? (https://www.linuxquestions.org/questions/linux-newbie-8/anybody-know-what-this-means-416050/)

raffigee 02-16-2006 08:16 AM

Anybody know what this means ??
 
Code:

root@1[broadcom]# depmod -a
FATAL: Could not open /lib/modules/2.6.11-auditor-10/modules.dep.temp for writing: Read-only file syst
em


pixellany 02-16-2006 08:26 AM

It's attempting to write to a file for which you do not have write privileges. Do "ls -l" for the file in question.
(Curious--since you were running as root....)

raffigee 02-16-2006 08:33 AM

yes very curious.

Did i mention i was running from live CD auditor security ??

May that have anything to do with it ?

Raffi

PTrenholme 02-16-2006 08:38 AM

Edit: Deleted -- duplicate of post below.

PTrenholme 02-16-2006 08:38 AM

The message is telling you that, for some reason (not listed), your root file system has been mounted in read-only mode. This is most often caused by an error mounting the file system when the fsck is run, and should be fixed before trying anything else. (Since most commands won't work with a read-only file system mounted.)

FYI: The usual Linux mount sequence is:
1) Mount the root file system in read-only mode
2) Check that there are no file system errors that need to be corrected. (This is done in read-only mode because corrections to a file system where writing can take place almost always destroy the file system.)
3) Remount the fs in read/write mode
4) Proceed with the rest of the boot

By the way, if you just want a list of dependencies, depmod -n works better. (And, if you have a writable file system, depmod -n | less will let you see the whole output.)

Another point: I notice you're running as "root," which should only be done when absolutely necessary. (For example, while fixing file system errors. But checking dependencies is not, I believe, a good reason.)

raffigee 02-16-2006 08:52 AM

The live-CD in question is Auditor security so i think the boot sequence is probably correct. So my question is how can i mount the file system to make it write after the system boots up.

I'm running as root because i'm trying to install wireless network adapter driver using ndiswrapper.

Any suggestions ? I'm getting lost in all of this. :(

Thanks
Raffi

PTrenholme 02-16-2006 11:27 AM

Sorry, I was typing my reply when you posted your comment that you were using a live cd.

Before you did the chroot (assuming you did one), try a umount and mount -o rw for the mount point where the live CD mounts your root file system.

Um, that, of course, is assuming that the live CD is not pointing to itself (the CD) as root. If that's the case, there's no way to write to the CD, so ro is the only possibility. Most live CDs create a ram disk to use as work space, but the command you tried to use (with the -a option is trying to create a file for later use by modprobe, so it needs write access. The -n option just outputs the dependencies to stdout, and (assuming your live CD has set up a RAM disk) the command I suggested (pipe into tail) should work.

In any case, if you're having problems setting up ndiswraper, I'd suggest you review the various tutorials and threads here for suggestions. I'm not sure why you'd be using a live CD to attempt to set up ndiswraper on another system. It seems, to me, like it might be an unnecessary complication.

raffigee 02-16-2006 12:35 PM

thanks a lot for your help i'll print this and try it tonight. I'll also google chroot and the other commands you suggested.

Basically the reason why i'm using this is because i don't want to install Linux on my laptop. I just want to check it out before i decide to do the switch. Also i want to test me wireless network to see if i could be braked in or not.

I stil have a lot of reading to do. Before trying to break into my network I first have to configure my hardware lol. Seems to me like hours of fun.

Thanks again

Raffi

PTrenholme 02-17-2006 09:43 AM

Well, basically, you can't configure ndiswraper unless you've got a system installed. After all, where would the configuration information be stored when you have no storage device?

If your laptop has a DVD reader, I'd suggest that you download and burn one of the bootable live DVD distributions (e.g., Knoppix might be a good choice). Also, check the HCL button at the top of the page. Someone may have already evaluated your laptop and network card for use with Linux.

About the Knoppix Live DVD: It attempts to automatically configure everything for you when it starts, and contains drivers for a large number of different types of hardware. It also can use a file on your HD (in your existing partition) to store your configuration information so you can modify things as you wish and have them saved between reboots from the DVD. (Of course, you don't have to save anything, but it's handy and doesn't take much space.)

Re ndiswraper: You'd only need to use that if there were no drivers available for your network card under Linux, and you had to attempt to use the drivers written for Microsoft systems. Before going that route, I'd (again) suggest checking the HCL to see what other people using the same network card have done to get it to work.

Tinkster 02-17-2006 11:33 PM

Quote:

Originally Posted by raffigee
Code:

root@1[broadcom]# depmod -a
FATAL: Could not open /lib/modules/2.6.11-auditor-10/modules.dep.temp for writing: Read-only file syst
em


Yup ... this means that you abandoned your original
thread on that topic in the more appropriate forum.
http://www.linuxquestions.org/questi...d.php?t=414904


Closed.


All times are GMT -5. The time now is 02:43 AM.