[ubuntu-uk] need help with ossec
I've tried to edit ossec.conf file in /var/ossec/etc but was not allowed to save changes. Before editing the file I had stopped OSSEC executing sudo /etc/init.d/ossec stop. Then tried both gksudo gedit /var/ossec/etc/ossec.conf and sudo -s and then as root tried to edit the file. In both cases in Gedit I get Save option disabled with no way to save changes. In Vim I was prompted for an attempt to save a read-only file and then bash reported an error. It look obvious to me that OSSEC rightfully protects its files and this is the problem. Thus I'm not looking for a work around (like removing read-only attrib, etc.) here but rather for the right way to do things. But so far I've not found anything related to the case in OSSEC's documentation and wiki. Anybody uses OSSEC here and can help? -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.kubuntu.org/UKTeam/
Re: [ubuntu-uk] gnome-terminal question
How peculiar. indeed. even after resolved it still puzzles me. why?.. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.kubuntu.org/UKTeam/
[ubuntu-uk] gnome-terminal question
My gnome-terminal uses forced line wrap only. Thus, no matter what the terminal window is, it wraps lines on line 80. It makes the reading of the output in many cases very inconvenient. Is it capable to auto-wrap instead? If yes, how to turn it on? Thank you. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.kubuntu.org/UKTeam/
Re: [ubuntu-uk] how to change hdd/partition numbering. SOLVED
That sounds a bit dangerous - does that work by recovering the partition structure after the partition table is changed/wiped? Solved it this way. Created a new primary partition as wanted but in the middle of the HDD and numbered it sda1. Get fdisk complaining about incorrect partitions ordering as expected and let it to correct it. After this has to reinstall GRUB, since it could not boot reporting Error 15 (file not found). This took some research and 5 minutes of work. :-) Now everything is back in perfect order. The entire story was very educational for me as a newbie. I've learnt from it a lot. Thanks for your help. Cheers. Vito -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.kubuntu.org/UKTeam/
Re: [ubuntu-uk] how to change hdd/partition numbering
On Wed, 23 Jan 2008 16:08:14 +, Tom Bamford wrote: You can renumber your partitions but you'll need a live CD to do it with. Assuming you have either backed up your entire system or you don't care if you nuke it by accident or by means of a power cut - boot off the live cd, then run (in a terminal window) sudo fdisk /dev/sda Press x to go into the fdisk advanced menu, then press f to fix the partition order. You'll need to update your grub configuration, so mount your /boot (or /) partition in a temporary location and locate your system's /boot/grub/menu.lst file. Update any partition references in the notation hd(0,1) - the second number may have to be knocked down one to reflect the new order. I would also check to see if any of your partition UUIDs have changed as a result of renumbering them. Open your grub menu file in one window and a terminal in the other. Run this command in the terminal ls -l /dev/disk/by-uuid to list your partition UUIDs and manuall inspect your grub file to make sure they match up. Make any corrections where necessary, making sure the line root=UUID=1234567890 parameter is correct on any line beginning with the word kernel. Once done, save the menu file, unmount your partitions and reboot your system. Hopefully it will boot, if not then note down any errors and reboot into the live CD. Looks like a great solution. I'll give it a try. Thank you. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.kubuntu.org/UKTeam/
Re: [ubuntu-uk] how to change hdd/partition numbering
On Wed, 23 Jan 2008 16:08:14 +, Tom Bamford wrote: Vitorio Okio wrote: I've deleted with GParted unwanted Dell Utility partition sited the first on my HDD. This partition was set as /dev/sda1, so all others followed correspondignly: /dev/sda2, /dev/sda3, etc. Now after deleting and booting back in Ubuntu my now first partition is still marked as /dev/sda2. And all others follow. How can I change this? I would like my first partition being set /dev/ sda1, etc.? Thank you Hi, You can renumber your partitions but you'll need a live CD to do it with. Assuming you have either backed up your entire system or you don't care if you nuke it by accident or by means of a power cut - boot off the live cd, then run (in a terminal window) sudo fdisk /dev/sda Press x to go into the fdisk advanced menu, then press f to fix the partition order. You'll need to update your grub configuration, so mount your /boot (or /) partition in a temporary location and locate your system's /boot/grub/menu.lst file. Update any partition references in the notation hd(0,1) - the second number may have to be knocked down one to reflect the new order. I would also check to see if any of your partition UUIDs have changed as a result of renumbering them. Open your grub menu file in one window and a terminal in the other. Run this command in the terminal ls -l /dev/disk/by-uuid to list your partition UUIDs and manuall inspect your grub file to make sure they match up. Make any corrections where necessary, making sure the line root=UUID=1234567890 parameter is correct on any line beginning with the word kernel. Once done, save the menu file, unmount your partitions and reboot your system. Hopefully it will boot, if not then note down any errors and reboot into the live CD. Unfortunately it did not worked. Here is the actual output of my try. At the first run fdisk reported partitions out of order after printing the partition table. Then after applying 'x' and 'f' it reported that partition order was successfully changed. In reality though it left the partition table untouched. And it starts from sda2, etc. as before the fix. The only difference is that fdisk is now happy :-) and does not report partitions are out of order anymore. I am aware of another way that I is described in Linux Partition HOWTO as a partition table recovery after deleting partition (and this is exactly my case) It also was advised me in another newsgroup. It is much harder though, since it involves the deletion of each of the existing partition and careful recreation of them using new ordering numbers but same partition data (start, end, units, etc.) from the existing partition table. I'll give it try tomorrow. The method suggested by you looked very attractive in its simplicity. But apparently it is to work in cases when the partition numbering is messed up in the middle of their sequence. At least I've learnt such an option exists, it can save me some trouble in the future. Thank you. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.kubuntu.org/UKTeam/
Re: [ubuntu-uk] how to change hdd/partition numbering
Oops, I forgot to say actually that you will need to enter 'w' in fdisk (whilst in the main menu) to make it write the changes to disk. I sertainly used 'w'. When applyed at the first time, fdisk reported something like fixed or changes applyed, I do not rememer the exact wording. But when I found that no changes were actualy made and tried it again, it reported back Partitions are in right order. Nothing to correct. :-( By the way one change was made though. Before it was showing an empty sda1 partition at the begining of the partition table, the deleted one I guess. And after the fix it did not show it anymore. What is interesting though that if I run sfdisk instead of fdisk, sfdisk still shows that empty sda1 partitions in my table. So, using 'f' option just stopped fdisk from seeng the empty sda1 partition entry in the partition table. Mistery. :-) I certainly can use the system as it is. At the end who cares how the partitions are numbered, as soon as the system is happy and working. It is more for a learning sake. And then I'm probably perversed: things like this puzzle me untill I find a solution. This is why I'm learning Linux and willing to go away from Windows. :-) -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.kubuntu.org/UKTeam/
[ubuntu-uk] how to change hdd/partition numbering
I've deleted with GParted unwanted Dell Utility partition sited the first on my HDD. This partition was set as /dev/sda1, so all others followed correspondignly: /dev/sda2, /dev/sda3, etc. Now after deleting and booting back in Ubuntu my now first partition is still marked as /dev/sda2. And all others follow. How can I change this? I would like my first partition being set /dev/ sda1, etc.? Thank you. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.kubuntu.org/UKTeam/