Ubuntu :: Disable Read Only Files For Editing For GRUB2?
Jan 15, 2010
I tried to follow "Configuring GRUB 2" at /etc/default/grub (file) in the instruction at
But the file is read only? How do I make it so that it can be modifiedie GRUB_DEFAULT=0 to GRUB_DEFAULT=1
I have an old laptop that I installed EasyPeasy Lucid on. I have never used Grub2 as my other Ubuntu installs still use Grub Legacy. I have studied all the tutorials which instruct that the grub.cfg file should not be edited directly.This old laptop has one of the dreaded Intel graphics chips for which the kernel automatically loads the i915 module. Of course (like a multitude of others with Intel graphics and Lucid) I booted into a black screen but knew the workaround was to enable mode setting through grubI used the
Code: i915.modeset=1 and added it to /etc/default/grub line GRUB_CMDLINE_LINUX, just after "quite splash", just
I have installed Sabayon 5.4 on my laptop besides Ubuntu 10.10. During installation of Sabayon I did not opt for a bootloader as I did not want to disturb the already existing Grub2 on MBR from my Ubuntu installation.After successful installation of Sabayon, I booted into Ubuntu and updated the Grub which detected Sabayon correctly. Then I rebooted and tried to boot into Sabayon but I could not do so. The booting process stopped with the following error -
Code: Activating mdev Detected real-root as md device. Setting up device node Scanning for Volume Groups
[code]....
So evidently, Grub has wrongly taken the values of root as /dev/md0 and swap as /dev/sda2.I again went back to Grub2 screen edited the Sabayon entry by replacing /dev/md0- with /dev/sda4 and swap:/dev/sda2 with swap:/dev/sda8 and pressed Ctrl+x. Now I was able to boot into Sabayon. how do I make these changes permanent. Which files should I edit so that Grub correctly read root as /dev/sda4 and swap as /dev/sda8?
9.10 uses GRUB2, so the instructions below are obsolete. Is there anyone here who could provide instructions for adding Geexbox into the GRUB2 menu? If you already have a Linux OS installed on your system, you might just want to add a GeeXboX entry to your existing bootloader. This allow you to install GeeXboX very easily. From GeeXboX CD, simply copy the GEEXBOX folder into your Linux / partition (we suppose it to be /dev/sda1 here).
Modify the /boot/grub/menu.lst file to add: title GeeXboX root (hd0,1) kernel /GEEXBOX/boot/vmlinuz root=/dev/ram0 rw rdinit=linuxrc boot=UUID=$my_uuid lang=en keymap=qwerty splash ... initrd /GEEXBOX/boot/initrd.gz quiet
Just take are about two things: - the field root (hd0,1) is to be adapted according to the rest of your GRUB's configuration. - the $my_uuid value is the unique ID of your partition. Check within your GRUB config file, which value is set for other OS on the same partition or use ls -l /dev/disk/by-uuid/ to see which uuid matches your partition.
I've reduced my Grub2 menu(using Ubuntu 10.04) list to only 1 item.I want to automatically boot into the one item without providing a password (it does this now). I also want to disable someone from being able to bring up the Grub2 menu and hit 'e' to edit the menu item. Any ideas how to do that? I've been sifting through the forums, but I haven't had any luck finding a post about this
I presently dual boot with Vista Home Premium and Ubuntu 10.04 LTS. Since the installation of Ubuntu about 8 months ago, my Grub menu at boot up shows all the updates for Ubuntu 2.6.32-24, -25 and -26. How can I eliminate the first two and only leave the latest update?
How to disable popups in Firefox by editing prefs.js file like the same way you do it by going to Edit-Preferences-Content and unselecting the Block PopUps box. I need to do this through a script thus i need to edit preference file directly.
After the nightmare of installing Ubuntu10.04 as my second os, with windows 7, dual booting using grub 2 ( GRUB PUTS NOT FOUND). I am using wubi and the win 7 bootloader, I still have the splash screen of grub 2 after I select Ubuntu off the win7 boot loader. I really don't think I need this. Could I get rid of the grub 2 loader, it really doesn't serve any purpose except take up boot up time? go easy, it took me a while to figure out how to shorten the DEFAULT boot load time in grub 2
I need to edit a line in a file in gedit, but its read only. I need to change
; default-sample-rate = 44100 to default-sample-rate=44800.
Would anyone know if there is an option to make a read only file editable? Judging by the responses to the thread I followed to enable my soundcard, it is possible, and perhaps there is some setting etc that needs changing
I've got a Lucid system (normal Ubuntu, not any of the derivative distros) which has been throwing up the following error message this morning when trying to boot:
Code: error: couldn't read file. error: you need to load the kernel first.
I have a Debian Lenny box with two hard drives in it (no dual boot; /home and /var are on the second drive). This machine was working fine until earlier this week when I ran an upgrade and restarted it. I think during this upgrade Grub got upgraded to Grub2, and now when I try to reboot I just get this:
Code:
GRUB Read Error
Hitting Enter yields Operating System Not found. This is it, I can't get into the grub screen to enter the boot command or anything. I booted the machine into the rescue environment on the Install CD, and was able to mount all the file systems and chroot in. I tried reinstalling grub2, but this did not help. I ran fsck on my /boot file system, but it appears fine. The boot partition is also marked with a bootable flag in fdisk. I did try to downgrade back to grub1.5 which, while it didn't given an error did hang shortly after it loaded.
I want my samba to keep my windows attributes exactly what the user setted in windows I mean if it has read only file in win box and copy it to samba share ,samba keep it read only and same for other attributes but it does not do it now with my configuration:Quote:
[global] workgroup = DOMAIN server string = File Server
I have Intel X25-V SSD connected to linux machine and its status is shown as "[sdb] Write cache: enabled, read cache: enabled" in dmesg. I knew we can disable write cache using hdparm. Is there any way to disable read cache and is this read cache present on SSD ?
I created a quicktime .mov movie file in iMovie on a Mac (that is not available anymore) and I want to 1) play & 2) edit the movie. I'd be happy to use a different format if I can figure out how to change it. Has anyone else done this?
Edit: If you skip down to post #16 you'll see I discovered it actually isn't a matter of editing a .mov file, but it turns out I don't have a properly exported quicktime .mov file. Instead I have (I'm not sure but I think its iMovie ver. 4.) 1) an .iMovieProj text file that lists the cuts by frame in and frame out, 2) an .mov file that isn't the complete file I thought it was and 3) a folder of all the clips that are in Apple's Quicktime DV format. In this thread people taught me about transcoding from the Apple's Quicktime DV format to liberated formats easier to work with. Given this knowledge and since I have a list of the cuts I'm asking if people could recommend a Linux video editor that would be easy to enter the tedious frame in, frame out info so I could reassemble the video.
This started a while back... but I'm not sure when. Whenever I'm editing one of my PHP files it takes 1+ seconds for it to write the letter I type. I tried it on HTML and it's perfectly fine. I tried going to .gconf/apps and deleting the gedit-2 file, but it didn't help. And I tried disabling the File Browser Pane plugin and it did nothing. And one more thing, it might just be some PHP files, because about half of mine are really slow like that, but the other half is perfectly fine.
I have a gaming server set up and running client software 24/7. This prevents me from editing the configuration files while the client is running. The server is connected to a switch which also connects another computer to the internet.What would be the proper software to use if I want to edit files on the server without interrupting the client?I have looked at Samba, SSH, and Screen, but I'm not entirely sure which one would be the best tool for the job.
In Dolphin i have build an ssh-Connection to my homeserver. Now when I edit an file, the save to the remote location occures only when the editor is closing.This is for webdevelopment etc. not practical.Which alternatives are possible?(under Windows i love WinSCP )
Let's say I have file A, and using 'ln -s A B', I have B. When I open, edit and save B, now B is not symlink anymore. It's just a new copy of A. Is this expected behavior? I use Mac OS X, and I wonder it's common in UNIX. In this case, is there any way to keep B as a (soft link) to A? Or, make B as the hard link would be the only way to solve this issue? What's the advantage of using soft link than hard link? The editor that I use is 'TextMate' on Mac.
I want to edit text files on Linux server from Windows, using text editor like Notepad++ or UltraEdit.I've managed to do so using WinSCP. It can edit files remotely and offers me to choose local application to open those files.That is exactly what I need, but when I hit ctrl-s (not every time, in about 50% cases), it waits for around 10 seconds, alerts that connection has failed, and offers me to "abort". When I click abort, it instantly reconnect and save file.
I created a password file for use with ncsa_auth in squid. Firstly, is there a way to view the passwords in the file or are they all encrypted? Secondly, is there a way to get squid to reauthenticate the user after 24 hours?
In a recent discussion I had, I was led to believe I could use sudoers to restrict using vi (for example) for the editing of say specific config files. I know how to allow root use of vi and how to lock it down from getting to a bash prompt with NOEXEC tag,but I can't figure out how to restrict the use of vi to only edit certain files. Tutorials and howtos I have checked don't address this
i just want to know,how can we edit the files of /bin folder. for ex: we have a file named mkdir which is being executed when we run the mkdir command at the terminal. I just want to read the code inside that mkdir file. That binary file has to be converted to text,which should be human readable.
I made some changes in my CentOS for example edit some config file. I wanna apply these changes in cd of CentOS because in this way I don't have to edit each of my CentOS one by one.
How do i disable the linux file cache on a xfs partition (both read an write).
We have a xfs partition over a hardware RAID that stores our RAW HD Video. Most of the shoots are 50-300gb each so the linux cache has a hit-rate of 0.001%.
I have tryed the sync option but it still fills up the cache when copinging the files. ( about 30x over per shoot :P )
I decided to try Ubuntu 10.10 after I had enough audio driver errors on my Acer netbook ( it came with windows wtf why errors) to drive me crazy. Anyway since I installed Ubuntu its ran better then when it was new my question arises here tho. I need to do some basic video editing (combine a few avi files, add transitions, add effects, etc) I don't need some end all to do all editor. just something basic like the windows. Video editor thingy was. So far I've tried pitivi which crashes, open soft which also seems to dislike me, and kdenlive which shows some promise but seems to be slow and needs libmp3lame.
I tried to install it and while my software manager thing says its installed kden says its not. I wanted to try lives editor but my terminal abilities are almost non-existent. Is there an editor I haven't tried that could be what I'm looking for? Is there a way to fix kden? I just want to edit the video and put it on Facebook. I'm willing to learn and I'm not a computer idiot just a Linux one. I really don't want go back to windows cause ill have to reinstall it and even when I do that with the disc Acer sent me windows makes a screeching noise even when then sound is off and locks up.
what if the root user by mistakenly stops/starts any service and tried to remove those traces from the log files and save those log files. Then how can we ensure that our log file is trusted. Is there any way where even the root(superuser) also cant edit/modify the contents of the /var/log/* files.