Ubuntu :: Read-only Root And Can't Edit Fstab
Apr 19, 2010
I was unable to boot into Ubuntu 9.1 today because the file system is now read only. When I check fstab, it shows "ro" but I can't change it because it's on a read only file system. I tried umounting the root then remounting with read/write access, but I was unable to umount the root. I also tried booting with a live CD, but all I can find is the root.disk file, I can't see any of the file structure. That's probably just how it is supposed to be, but I'm new to Linux so I found it strange. method to either change the disk to read/write besides this?sudo umount /mount -o remount,rw /The other option would be to somehow mount the disk image while using a live CD so that I can get to the fstab file and edit it.
View 9 Replies
ADVERTISEMENT
Feb 12, 2011
I'm a new Ubuntu user and a Python programmer, it's the first time that I use Python in Ubuntu so it's a bit confusing me. If I want to save a Module or something in a specified map, I get 'Errno 13', it says that I don't have permission to edit, do thing in that map. And this is also for importing files with Python. I logged in from Terminal with 'sudo -i' and closed Terminal, but the problem keeps repeating. How do I login as Admin or Root and stay as Admin or Root? I need right to edit/read files as well as root and normal user.
An example:
Python file:
test.py ->
test = open('/a.txt', 'w')
test.write('Test - Test - Test')
test.close
When I execute this, I get in the Python IDLE the 'Errno 13' problem and below the 'Errno 13' it says that I don't have permission. Who know how to stay logged in as root, even if the user has not logged in or isn't this possible, if it isn't then I just want to get files moving, editing/erasing etc.
View 9 Replies
View Related
Jun 23, 2010
I am trying to edit fstab to auto mount a couple of windows shares. I have this but it doesn't work. What am I doing wrong? code...
View 2 Replies
View Related
Apr 21, 2011
I am stuck in recovery shell because I mistyped one line in the fstab file. I know what I did wrong but now I cant edit my fstab anymore. I can only enter recovery shell and thats it.
sudo nano doesent work because it's a read only file / disk.
So any idea is worth trying
View 8 Replies
View Related
Oct 2, 2009
I really need some help here, this is driving me mad. I edited my fstab file to boot a partition on start up, only instead of typing sda7 I typed sda1 by mistake and now can't boot.
The problem that is driving me mad is I cannot save changes to fstab from a live cd because I do not have root permissions.
I am relatively new to Linux and have no idea how to use the fedora install disk or the commands to use or if it will let me save changes to the file.
I cannot believe something so easy to fix does not appear to be possible because i can't save changes to the fstab on my fedora install.
View 3 Replies
View Related
Feb 13, 2010
I am running Ubuntu 9.04 on an Acer Aspire laptop and have broken my display system while trying to use the restricted drivers for the nvidia graphics card.
Basically I downloaded and activated the restricted driver. I rebooted and now ubuntu freezes on startup.
I can get access to the command line but am unable to edit either fstab or xorg.conf because ubuntu has mounted the filesystem in read only mode.
I have read and tried all the options given in this posting [URL] but because I cant read or write any of the files I cant seem to affect any change to the system
View 1 Replies
View Related
Aug 16, 2010
Debian 5.0.5 lenny; Kernal Linux 2.6.26-2-686; GNOME 2.22.3
Trying to read the fstab file using code...
So why can't I read the fstab file?
View 5 Replies
View Related
Jul 28, 2010
I have a second hard drive with fedora 10 installed on it. My primary drive and os is fedora 12. How do I edit the fstab file in order to mount the second hard drive and get files off of it
View 8 Replies
View Related
Apr 16, 2011
I am trying to mount a smb share on an ubuntu machine and for the life of me I can't figure out the fstab entry. The server is running fine and the windows machines can map their shares fine, I just cant figure out the fstab entry for an ubuntu box.at this point the fstab looks like this(although I have tried many variations)
Code:
//server/path/share /path/mount/point smbfs credentials=/root/.credentials, uid=1000, gid=1000 0 0
[code]....
View 3 Replies
View Related
Jun 4, 2010
I have dual boot: Ubuntu 10.04 and Opensuse 11.2.Howto mount Read Only ext4 partition from Opensuse in /etc/fstab under Ubuntu?
View 3 Replies
View Related
Jul 21, 2011
I have a bad entry in /etc/fstab I have tried to tried to change in boot but it says read only. It will not take su. I have a livecd but I can't seem to get to my filesystem from a terminal where I can specify su
View 2 Replies
View Related
Jun 15, 2011
when i starting the server..it is coming to maintenence mode and saying repair file system...because /home1 was not found in /etc/fstab.. when i tried to remove the entry from fstab for /home..it is read only!!
View 5 Replies
View Related
May 22, 2010
I'm really tired of having to umount under root, then mount again as a user for my external hard disk. When I'm in firefox, I like to save pages alot onto my external but I constantly have to remount because my user has no write permissions for the drive. What can I do for my device in fstab so that it mounts automatically under my user and not root?
View 9 Replies
View Related
Jul 24, 2009
Anybody know how to make an ext3 or 4 partition start up at boot with only the owner and its group having read and write access permissions.I don't want 'others' to have folder access. This is what i have done. / etc/fstab:/dev/sdb5/media/Data ext4 owner 1 2 The folder starts on the boot since it has been allocated a folder as u can see. Next i changed the the ownership and the group ownership of the folder:chown johnny:johnny /media/DataThe problem is that other users can few my partition since 'others' have read access. How do i change that to zero access?
View 1 Replies
View Related
Jul 5, 2010
i log in and went to the policy folder to erase the file prefernces.fdi and it would not let me delete this file /move it to the trash or even edit it it said something like you are not the owner ,so i could not change the permissions to overwrite this file.what should i do i just want to be able to change this file to true so it will see my internal sc dar reader right now when i put in a sd card it does not show up.i also tried changing this in the terminal there was a post on one blog that showed how ,but i was having trouble edit the xml file in the terminal so for me it would be easier to just overwrite the prefernces.fdi file since im a beginner.
View 3 Replies
View Related
Jan 4, 2011
I have installed a cable that connects from the CPU's SATA motherboard connection to a removable drives' ESATA connection.I would like to be able to swap drives on the ESATA connection and have all users be able to read and write to these drives.I have created the directory /archive/ where I would like the drive(s) to mount.The drives are all formatted Fat 32 - but in the future I may use HFS for formatting.When I used the command (as root):mount /dev/sdc1 /archivethe drive was mounted (but read only)What can I use in my /etc/fstab file that will allow drives to be mounted and unmounted by all users on the system? (both reading and writing)Also, will I be able to mount and unmount these drives without shutting down? or will I need to reboot every time I want to change drives?
View 2 Replies
View Related
Dec 21, 2010
My linux distro is CentOS 5.3. Today I edited /etc/sysconfig/readonly-root and set "READONLY" to yes, now my /etc/sysconfig/readonly-root file is like this:
# Set to 'yes' to mount the system filesystems read-only.
READONLY=yes
# Set to 'yes' to mount various temporary state as either tmpfs
[code]...
View 3 Replies
View Related
Nov 20, 2010
I use Deluge as a bittorrent client to download music.However, if--or rather when--other programs like rhythmbox edit the tags in the file (or change the file in anyway) deluge downloads the file againI thought that making the folder which Deluge downloads to a read-only folder would stop this from happening. But I need a way to allow Deluge to still be able to download to this folder.s there a way to do this
View 1 Replies
View Related
Oct 9, 2009
i want to edit the file menu.lst in /boot/grub i m facing a problem of not to enter in to the graphical interphase, so i m using only the boot terminal whn i try to edit this file it says the file is read only. i tried to change the permission of file with chmod also
but it is also not working i tried the comand gksu gedit /boot/grub/menu.lst but it is not opening the file to edit since the graphical interphase is not there.
View 5 Replies
View Related
Jan 9, 2010
According to a couple of different places, it's not possible for me to put a line in /etc/fstab to mount one of my partitions with owner and group not root; instead, I have to mount it in /etc/fstab, then chown & chgrp to my user. That seems ridiculously tedious and silly... is it true? I'm sure a short script could be written to get around it, but it seems obtuse for Linux not to allow that to be set in /etc/fstab.
View 9 Replies
View Related
Jan 4, 2011
Is it possible to forbid a non-root to umount a partition that was mounted via fstab-entry?
View 2 Replies
View Related
May 6, 2010
I have apache2 running on my computer. I want to change the permissions for /var/www/ so that I can edit the files without a problem. Right now I can use the gksudo command, but I'd like to be able to have all the files available when using an IDE like eclipse.
I've read in several places that
Code:
chmod 755 /var/www
will do, but if I'm not mistaken that would give read/write access to anyone. I'm not in a production environment, so I'm not too worried about security, but I'd like to give anyone else as less permissions as possible. Would this be possible?
View 2 Replies
View Related
Jan 24, 2010
I'm needing to read the Adam's Assembly Tutorials, that are old EDIT *.txt files, I'm on Linux and I need to read this files.What can I do?Is there any GUI editor that can read the files?There is any way to convert them into another file that is more modern1?
View 2 Replies
View Related
May 9, 2011
What is going on here? I can't access /etc/sshd_config to read or edit it, even as root. (Using debian-live 6.01)
root@debian:/etc# ls -l /etc/ssh*
total 132
-rw-r--r-- 1 root root 125749 2010-02-28 01:37 moduli
-rw-r--r-- 1 root root 1616 2010-02-28 01:37 ssh_config
-rw-r--r-- 1 root root 2453 2010-03-13 17:32 sshd_config
[Code]...
I also checked the permissions for the parent file /etc, and root has rwx. Is this something peculiar to the overlay file system used in debian-live, or just another unix gotcha?
View 7 Replies
View Related
Jul 31, 2011
I'm having a problem trying to customize Ubuntu 11.04 LiveCD.Everything went well until I tried to run the system updates on the LiveCD.This is the error message output:
Code:
root@lkjoel-desktop:/# sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
code....
View 3 Replies
View Related
Nov 12, 2010
I am trying to edit my grub.conf file. I am logged in as root. It says it is a read only file. I have tried to set permission with chmod 777 and also tried through GUI. Using VI it says it's a read only file. Using nano it will not write either. I have two choices on boot up. I want to automatically go to second automatically. First at the moment is CentOS-4 i386 (2.6.9-55.ELsmp) and second is CentOS-4 i386 (2.6.9-55.EL).
View 9 Replies
View Related
Mar 27, 2010
When I run "sudo systemsettings", it opens my own configuration rather than root's and "kdesu systemsettings" says command not found.I want to change the appearance of applications I run with kdesu.
View 4 Replies
View Related
May 31, 2010
I am trying to edit limits.conf, changed file permissions:
sudo chmod limits.conf -rwxrwxrwx
But got this message:
"Could not save the file /etc/security/limits.conf. You are trying to save the file on a read-only disk. Please check that you typed the location correctly and try again."
I followed these instructions:
"copy - paste this code into terminal
gedit $HOME/.gnome2/nautilus-scripts/Open as root
copy-paste this text into that file and push 'save'
for uri in $NAUTILUS_SCRIPT_SELECTED_URIS; do
gnome-sudo "gnome-open $uri" &
done
now copy-paste this code into terminal
chmod +x $HOME/.gnome2/nautilus-scripts/Open as root
Now you can right click on the file you want to edit, select 'scripts' and say 'open as root' to let you modify it". [URL] the right click worked but the file didn't open.
View 9 Replies
View Related
Feb 12, 2011
I am trying to edit my /etc/resolv.conf file while under root. After saving the changes and reboot my computer, file has not changed. I read a thread on chattr and lsattr on this fourm.(see link below) I ran in terminal lsattr /etc/resolv.conf and got the following results:-----------------e- /etc/resolv.confWhat does the dashes and e mean? I thought I would get ----ia------------ /etc/resolv.conf instead, as shown in the link. What am I doing wrong?
View 4 Replies
View Related
Jun 14, 2010
i can't edit /etc/resolv.conf with root account (Ubuntu Server 8.02)
root@webserver:~# sudo vim /etc/resolv.conf
"/etc/resolv.conf"
"/etc/resolv.conf" E212: Can't open file for writing
root@webserver:~# ls -l /etc/resolv.conf
-rw-r--r-- 1 root root 287 2010-06-14 15:20 /etc/resolv.conf
View 9 Replies
View Related