Question:
help regarding LINUX !!?
2008-11-12 22:07:31 UTC
when I try to create a file using cat command or even a directory using mkdir .. I get this thing all the time
bash : read-only file sytem
is there any way out for that ?
how do I become the administrator of my system ?
Five answers:
david.dr
2008-11-12 22:39:23 UTC
You become administrator in your linux system by loging in as 'root.' Root user is a special user that allows you all the capabilities over all users and resources within your linux system. Much like an Administrator on older windows based OS systems.



More over, you might want to look into the error 'readonly file systems'



just off the top of my head, this could mean you booted your system on a readonly basis which prevents you from writing anything on the disk.



usually, if its just a read/write access issue, the error is 'Permission Denied'



you might want to look into this:



http://www.linuxquestions.org/questions/linux-software-2/system-read-only-errorhelp-414822/#post2104130



where the kernel re mounts the filesystem when it detects errors.





this too: http://www.linuxquestions.org/questions/linux-general-1/perplexing-read-only-file-system-error-383830/
jplatt39
2008-11-13 00:25:37 UTC
First, some information is required. What directory are you trying to create your files and directories in? If it's your home directory (/home/$USER where $USER is your user name) then you should have full permission to do this. Anywhere else on the system you need root permissions.



What distro are you using? If Ubuntu root is disabled, and you get root permissions for individual commands by using sudo -- by default you are listed in the file /etc/sudoers. Other distros have sudo, which is a good way to run root commands, but you have to, as root, enter your own name into /etc/sudoers, usually by using visudo.



Assuming this is your own system, and you've simply lost or forgotten the root password, you can always use a live cd. Take either your installation disk (Which I assume is a live cd) or Knoppix, open a terminal and type "sudo su". This is the workaround even for Ubuntu for getting root permissions. Then do a "mkdir harddrive", find the name of your Linux installation by doing an "ls /dev/hd*" and you should be able to work it out, type "mount /dev/hd? harddrive" where the ? is the letter or letter number combination (hda1 for example) do a "cd harddrive" and, having checked with ls to see your directory reads something like:

bin dev lost+found opt sbin sys var

boot etc media proc selinux tmp cdrom home lib mnt root srv usr



(which is what I got from my root directory) do a "chroot ." Notice the period after chroot. That is, change the root path to this directory. Now type "passwd root", and make something up. Then type exit, reboot, log into your regular system, open a terminal and type "su". It will ask you for root's password (on knoppix typing sudo su will have it ask for yurs. Just type enter: there is no password). Enter root's password and you will have root's permissions for all commands entered in that window. Write the password down, if you must, and/or enter your user name into /etc/sudoers if it is not there and sudo will work in the latter case including sudo passwd root.



Of course if this is a shared system, and I learned Linux commands on a shared system at college as a user, not an administrator, then forget all this. Talk to administrators and/or ONLY create files and directories in your home directory. If it is your personal computer, though, the workarounds I mentioned should work.
buffington
2016-10-05 07:16:48 UTC
Linux is a Unix based OS assembled below the kind of unfastened and open source application progression and distribution, The defining factor to Linux is the Linux kernel, an working device kernel first released 5 October 1991 by skill of Linus Torvalds. the prevalent distinction between Linux and various different typical modern working systems is that the Linux kernel and different aspects are unfastened and open source application. Linux isn't the only such working device, whether that's by skill of a few distance the main extensively used.[fifty 5] some unfastened and open source application licenses are based on the belief of copyleft, a sort of reciprocity: any artwork derived from a copyleft piece of application might desire to additionally be copyleft itself. the main effortless unfastened application license, the GNU GPL, is one among those copyleft, and is used for the Linux kernel and various of the aspects from the GNU undertaking. Linux based distributions are meant by skill of builders for interoperability with different working systems and typical computing standards. Linux systems adhere to POSIX,[fifty six] SUS,[fifty seven] ISO, and ANSI standards the place accessible, whether as much as now purely one Linux distribution has been POSIX.a million qualified, Linux-ft.[fifty 8][fifty 9] unfastened application projects, whether developed in a collaborative trend, are in many situations produced independently of one yet another. the incontrovertible fact that the applying licenses explicitly enable redistribution, whether, provides a foundation for larger scale projects that assemble the applying produced by skill of stand-on my own projects and make it accessible without notice interior the form of a Linux distribution. A Linux distribution, in many situations referred to as a "distro", is a undertaking that manages a distant determination of device application and alertness application applications accessible for receive and setting up with the aid of a community connection. this helps consumers to evolve the working device to their particular needs. Distributions are maintained by skill of persons, unfastened-knit communities, volunteer agencies, and advertisement entities. A distribution is responsible for the default configuration of the put in Linux kernel, primary device secure practices, and greater often integration of the quite a few application applications right into a coherent total. Distributions generally use a equipment supervisor which includes dpkg, Synaptic, YAST, or Portage to place in, do away with and replace all of a device's application from one significant region.
b-i-n-g-o
2008-11-12 22:20:14 UTC
use sudo in front of your command
xer0blast
2008-11-12 22:11:41 UTC
type 'su'



then enter your root password.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...