I am using bootchart to investigate the slow booting of ubuntu 10.04 and I found that fsck process is called every time in the booting for around 5 seconds even the screen does not show any hard disk checking, is that normal ?
I'm setting up an Ubuntu 10.04 machine with the sole purpose being to function as a vpn server.I got openvpn set up but the startup script doesn't appear to be called on bootup even though it is does appear in the rcX.d directories and the openvpn script is in /etc/init.d and is executable and belongs to root:root.I tried running "update-rc.d -f openvpn remove" and "update-rc.d openvpn defaults" on the offchance something went wrong when it was first added to the startup links.
I've got a script in ubuntu 9.04 in init.d that I've set to run on start on with update-rc.d using update-rc.d init_test defaults 99. All of the symlinks are there and the permissions appear to be correct
I feel there's a bit of a misunderstanding going on between C++ and me...My problem is that I have a deque of pointers to a class, and create objects then add them to the deque in a for loop. However, the destructor is called on the object as soon as the loop quits.
Code:
This prints:
Code:
Now, if I change the deque from deque<Test*> to deque<Test> then it works fine - I get:
Code:
However, I can't do this with my actual code, because I am creating a deque of pointers to an abstract class, so it won't let me instantiate the class. (This is all so that I can take advantage of polymorphism, and call functions on a set of similar objects without worrying what type of object I'm dealing with).
So, I suppose my question is: what is the correct way to create that deque of pointers to the abstract class? I don't seem to be barking up the right tree currently.
its not a good idea to run fsck on a mounted file system.But.. if I want to check the file system between the default checks on boot up how should I safely do it? How do I safely run fsck?
I'm having alot of trouble trying to remove linux ubuntu from my computer, so that i will only have windows vista. What's the easiest way, to totally remove anything on my harddisk with ubuntu, grub or whatever it's called?
depend on my sound card (which is Realtek, I think), but which file/folder in /dev is my speakers? In fact, a page with the meaning of all the /dev folders would be nice if that exists, but if not, just the speakers.
I forced a fsck on the next boot by.Code: sudo touch /forcefsck.Where did the results go?/var/log/fsck/checkfs and /var/log/fsck/checkroot both read "(Nothing has been logged yet.)" Am I to assume that if there are no errors nothing is written to the log files?
Every 32 boot ups, the fsck runs automaticall on my drives.Iould like it to run at shutdown and was looking for a solution.I saw an app call autofsck but not find it in synaptic.Can someone help me find a solution to this. I am running a laptop with 9.10 and a desktop with 8.10.
Every Time I Try Too Boot Ubuntu, Instead Of Starting Up It Takes Me To This Menu Type Thing And It Says To Press Tab To See The Command List Or Something Like That. And I Dont Know What Commands To Use.
I went to update my software and I saw the system wants to remove three programs. I googled them and they seem important but I can't update without removing them so I'm stuck. I've included a screen shot of the items the system wants to remove.
Also for the past month I haven't been able to update something called seahorse, the system says it's a broken package but I don't know how to fix it. Is this an essential program or can I un-install it?I want to upgrade to 10.10 but I am reading how all updates must be done before and these issues are holding me back.
I booted up my laptop and the boot sequence got stuck at the boot splash screen (plymouth). I did an esc and I saw a failure message, the error I remember in my panic mode is: fsck terminated with status 8
I rebooted, got the same message. Rebooted again and this time, to my relief, it worked.
1) What happened, should I be concerned? Not sure why it worked after 2 reboots.
2) Is there a possibility this could happen again?
3) Are there any boot log files I could look at?
4) Is there anything I can do to fix this? Or a check of some sort?
I'm using Ubuntu 10.04 on a Dell Studio 1535 laptop. No dual boot. The disk is partitioned and I've got my /home folder on the other partition for situations like this.
i have a ubuntu 10 server (as server LAMP) , i was trying to repair a couple of unix files with fsck command on directory, thinking it would apply only that directory, but it affected all system, in th end it says: "file system has changes, restart ubuntu", then services go down, after some directories fail, restart funtion do anything... i switched on again, but at start show error.
I got another ubuntu and installed damaged hard disc, but, i can see file sytem, i has been trying to repaired with TestDisk but i can't...
i want to recover mysql database at least, but a don't know what to do.... how a fsck get damaged SO
I know I can force a fsck run at next reboot using
Code: shutdown -rF now
or
Code: touch /forcefsck
can I force the fsck to more indepth checks such as doing directory optimisations, bad blocks checks, etc. maybe by passing parameters to the fsck call during startup?
I am wondering if there is a way to manually trigger a file system check during boot by pressing/holding a key. Maybe there is already a keyboard shortcut built in to do this?I know that using tune2fs you can modify the number of boots (mounts) between file system checks, or even use "shutdown -rF" to reboot the system and force a file system checkAlso, I do not want to force the user to choose to run/skip the file system check during boot. For example, prompting the user with, "Do you want to run a file system check [y/n]?" each boot (or even each time the system thinks it should run a file system check),s not desirable
Seems like I misplaced this topic. Should have been in general help. Sorry! Any moderator feel free to move this topic. As I was creating a swap partition, something went wrong and I ended creating a much bigger file which consumed all my empty space. Ubuntu stopped working and now I can't seem to fsck / mount my disk. Currently I'm on a live cd. fsck will give:
Code: e2fsck 1.41.12 (17-May-2010) fsck.ext4: Device or resource busy while trying to open /dev/sda2 Filesystem mounted or opened exclusively by another program? However, the file system is not mounted.
I need to boot in WXP just because the guys at the company don't want to update for Linux drivers in the TS so I can't connect from home unless I do it in Windows XP. But today WXP refuses to boot, when the progress bar appears, the system boots automatically. The WXP CD doesn't help, the repair console doesn't let me run chkdsk or anything (dir C: gives an error about listing addresses or something like that). Is there any way to use fsck or anything in Linux to repair the WXP NTFS partition?
i have the same issue but with a real install, not a vmware.every reboot fsck says that my main partition was not cleanly unmounted and check is forced.during shutdown the ubuntu does not show messages in a clear way but in random places. however, i am able to see the "/ is busy" message 1 second before reboot/off.my distribution is 10.10 upgraded from 9.10, 10.04
I have a Dell Mini 12 running what I think is Ubuntu 10.10 Netbook Remix. It won't boot all of a sudden, saying 'No init found'. I've been through [URL].. which is VERY close to my problem but I cannot get Disk Utility to work when running off my Live USB. Asking it to check the hard drive results in it telling me the filesystem is 'not clean'.
I just recently switched from Windows to Ubuntu 10.04, and I remember that Windows had a disk check. I have no problems with my computer, but is it a good idea to run fsck every few months? Does Ubuntu automatically do this for me? Or this unnecessary unless I have a serious problem?
There is an application for Windows called CutePDF that is a printer driver that converts any document, website, etc. into PDF when I print to it. Is there a universal application like this for Ubuntu?
i am trying to use a small application called toonel. its in jar format and it helps to compress traffic. i can run it succesfully but i cant seem to be able to get my applications e.g firefox to communicate with it!
normally in windows i just start the app, then set my browser proxy to 127.0.0.1:8080 which is where it listens for connections but so far in ubuntu i cant seem to be able to get it to work.
I would like to install a program called VariCAD. I downloaded the install file (full file name: varicad2010-en_2.06_amd64.deb) but was wondering if one couldn't somehow do this via the repository, kind of like I did for my nvidia drivers? Is it possible?
I have a script - called 'backit' - to back up files to a tarball - listed below (<backup.lst> contains files I want backed up)
#!/bin/bash # 22/7/2010 # Backup important files cd ~ tar cvfz .backup/backup.tar.gz -T .backup/backup.lst cp .backup/backup.tar.gz /media/Archive/.backup
Typing 'Backit' in the shell works very well producing a backup file, <backup.tar.gz>, of 2 298 953 bytes and contains all the correct files. So far, so good! I put a line in crontab - /home/alan/bin/backit
The program runs every hour on the hour and produces the <backup.tar.gz> file. However, this file contains only some of the files and has a size of 76 762 bytes. Using "tar tvf backup.tar.gz" lists some of the files and ends with an error indicating an EOF encountered before the end of file. If the script executes correctly when typed into the shell, why does it not run to completion correctly when run by cron?
I would like to adjust the journal program called lifeograph. First I would like to build it, clean without any adjustments.
I'm using this version: [URL]
Readme file says:
Requirements ----------- Lifeograph requires the following modules to be built: * gtkmm, * gconfmm, * gtkspell, and * gcrypt. Installation ------------
Type "make" to build and "make install" to install (all without quotes). No configuration atm.
I tried make, but it doenst really work. So i think i dont have good requirements.
-> how do I install the required modules? -> I've found some in packet manager, but some appear to be librarys.
Just had to re-install after I did some very silly things. Running 9.10 Ubuntu with XBMC-live Have gnome desktop, Firefox with adobe flash plugin. I set up a script called myvpn to run openvpn and this used to work and now it doesn't I did
[Code]...
If I manually type in each command it works, but the script doesn't?
I'm planning on writing a BASH script for my website's server that will process data from user input via HTML forms, and then write data to the website's HTML documents. My question regards how to deal with the possibility that two users send form information very close to the same time, thus having the BASH script being called again while the first instance of the script has not yet finished.
I don't even know what happens in general when a BASH script is called while it is still running. Even if that is ok, and a new, separate script process is started (or whatever really happens), how am I supposed to prevent issues that could come from two different instances of the script trying to write to the same file at the same time? Is there a way to force the BASH script to finish its work before launching again, in the event of multiple requests?