General :: Make All Filehandles On That Filesystem Invalid?
Aug 12, 2010
How to unmount a filesystem in Linux without investigating why is it busy? I want to do it in one command. It should handle applications using that filesystem, submounts, containers (lxc-execute -n qqq <command>) and all other things.
Just "unmount. No objections!". Special kernel patches or configuration is allowed. Filesystem should be really unmounted, so umount -l is certainly not an option. For example, for cryptsetup remove (BTW how to forcibly cryptsetup remove? Update: cryptsetup luksSuspend, but you won't be able to cryptsetup luksResume if it is not LUKS). How to make all filehandles on that filesystem invalid?
The only reliable way I know is mounting the filesystem through the FUSE (there is usually no problem to unmount FUSE thing because of I can just kill it's process). P.S. Already know mount fuser, lsof | grep, cat /proc/*/mounts | grep and obsolete non-working "badfs patch".
I'm having trouble getting subversion working on Centos 4.7. When I try to create a repository using:
Code: svnadmin create /path/to/repo I get: Code:
svn: Berkeley DB error while creating environment for filesystem repo/db: Invalid argument svn: bdb: Berkeley DB library configured to support only DB_PRIVATE environments
I've searched the Net, with little luck. Threads seem to suggest that Centos has this flag compiled into the Berkeley DB RPM by default; whereas SVN doesn't want it. Someone, somewhere, must have got this to work and I'm sure it's something really simple I'm doing wrong.
I have a BASH script which at one point asks the user a yes/no question. I want to make it so that if the user types in an invalid input 3 times consecutively then the BASH script will echo an error and terminate with exit status 1.
I've been reading / trying to learn some Perl lately. I've found the free book, "Learning Perl", quite good and easy to follow most of the times. However, today I was testing one of the scripts in the book and it would only run partly.
#!/usr/bin/perl use warnings; use strict; my %inventory;
This row is supposed to give option, either to use an additional script as pipe (sort.plx),or STDOUT if the extra script is not found.It works with the other script present, however, with the sort.plx being absent it simply wont use STDOUT instead but whines to me:
Can't open perl script "sort.plx": No such file or directory
Has the author of the original script done some error writing it? Since I'm a beginner and found most of the stuff confusing in Perl either way (having previously only experience in Bash and some in PHP) - I can't really tell for sure , but from what I can read in documentation - it doesn't appear to be wrong.As it looks now, the only way for me to use STDOUT is only by removing:
open (SORT, "| perl sort.plx") or *SORT = *STDOUT; select *SORT;
rows. But then, I lose the piping in to that other script as an option.
I installed Debian 5.03 Lenny successfully on my machine. I got this error during boot: ACPI : invalid PBLK length . After that the Operating System boots properly and starts normally. What does this error statement mean? Is it safe to work with this installation despite this error?
Trying simply to insert into table. Have succeeded in doing this but now want to correct user use of invalid characters. If I'm understanding correctly, Real-escape-string seems to correct these, so I've been trying to figure out how to use it. A short, test code version gives me a syntax error at INSERT VALUES, which--because it still has the single quotes in the text--tells me the real-escape-string didn't work. The code below gives me a parseing error with invalid $END at </body>.
Insert Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' VALUES (UTC_TIMESTAMP,'What's happen' bra?')' at line 1 Parse error: syntax error, unexpected $end in /home/powere15/public_html/DB/exercises_insert_record.php on line 94 <html><head><title>Exercise Catalog Insert Record</title></head> <body> <? /* Change db and connect values if using online */ [Code]....
I've had a look at some similar threads but as I'm very new to linux they're already a bit technical for me. Sorry, this calls for someone with patience. I gather from other threads that disconnecting an external drive without unmounting is a no-no, and this seems to be the likely cause. Now the disk is read only and I'm unable to change any settings through the usual control panel on ubuntu. I'm just not familiar with the terminal instructions. I tried to cut and past a few command lines from other threads but I got some warnings that proceding could damage data. Like this one: WARNING! Running e2fsck on a mounted filesystem may cause SEVERE filesystem damage.
is there a way to make the /proc filesystem writeable? With aufs or unionfs i can't join the /proc filesystem with a writable directory directly. But i think it should work by using one of this file systems.If i try to join two dirs write-proc and virtual-proc Code: mount -v -t aufs -o dirs=/tmp/write-proc/:/tmp/virtual-proc/ none /tmp/joined-proc/ and afterwards make a bind mount /proc to virtual-proc Code: mount --bind /proc /tmp/virtual-proc/ i can't see any change in /tmp/joined-proc.
I have my / partition on an SSD that I formatted in ext3 but I now realise that, in order to use TRIM, I need to be ext4. Can I use Partimage to make and image of the partition, format it (using GParted) and then restore the image? Basically, do Partimage files survive a filesystem change?
I am very new to linux, and I have a question regarding the filesystem check (fsck). The power recently went out and when I tried to restart linux the following error appears:
*/dev/sda1 contains file system w/errors, check forced it then goes on to say..
*An error occured during the file system check. Dropping you to a shell; the system will reboot when you leave the shell. Give root password for maintenance (or type Control-D to continue) I wasn't sure what to do, but checked some other online forums and they suggested running fsck manually - so I typed in the root password - and used the command, "fsck -A -V ; echo == $? ==" it then gave the following message
*WARNING!!! Running e2fsck on a mounted filesystem may cause SEVERE filesystem damage *Would you like to continue (y/n)
Again, I wasn't sure what to do so i just checked no. I then manually turned off the computer and was prompted at the beginning to press Alt-3. I was brought to another screen and it informed me one of the drives was degraded and suggested rebuilding the array. I tried doing this, but it still brings me back to the original error of, "/dev/sda1 contains file system w/errors, check forced," and the process continues.
Also, when I tried to rebuild the array, I didn't backup any of the data on our home directory before doing this (which was probably a big mistake). After being prompted to type the root password, I was able to give the ls command and look at all the directories...the home directory where our data was stored was empty and I am afraid I may have lost some information. Is there a possibility that data was lost when I was trying to rebuild using the old drives?
I have a following problem: Recently my drive with Ubuntu 9.4 has mysteriously stopped working, i.e. when I switch the computer on it informs me that GRUB didn't find the filesystem. Well, I suppose it happens.
First, I though it was due to the drive dying, but I popped it in an external enclosure and HDTune told me the drive was fine. Wanting to recover the files on the drive before reinstalling I first tried to mount it in said external enclosure under Windows (I have Win Ext2 driver installed which used to work just fine). This time, however, drive gets assigned a letter but upon opening it Windows popped up an error saying that the drive was not formatted and whether I would like to format it then.
Unfazed by this streak of failures I tried to mount it under Linux but, alas, to no avail. I might have tried every single -t operator under mount command but it still won't budge and let me mount.
Bottom Line: Dvd Drive died in my toshiba laptop and it was replaced (not before tech for some reason reformatted the Win7 partition... which was 100% un-needed, but thats beside the point now. I redid win7 (the tech installed vista) and am TRYING to "redo grub". Facts: The Slackware AND Ubuntu Partitions ARE STILL THERE and when i use SuperGrub Boot CD (which doesn't restore my grub by itself) to boot into slackware, i can see ALL THE CONTENT of both Linuxes still there including grub on ubuntu partition
(Tri-Boot: Ubuntu, Slackware, and WIn7) I had it working for two years or so, SO i know this "setup" works fine. I am A) Trying to do this as simply as possible. B) Trying to avoid the need to download a 800MB ISO (as seen for this issue on this forum) and trying not to have to reformat Ubuntu Partition (though I have the .Debs I have downloaded for it backed up ... all 1.7GB of them) I have /dev/sda1 as win7, /dev/sda2 as Slack and /dev/sda3 as Ubuntu (which contains Grub Legacy).. Every command I do seems to result in an error like "invalid command" or "invalid Execution format " (i think that second one is right) type errors. I compiled (awhile back) a few kernels for Slackware, but feel goofy that I cant figure what i this out (what i thought was going to be a "2 minute" fix)
I have an 80GB Intel X25-M SSD drive installed on a Linux box running Debian 5.0. The file system on the SSD is ext4. I've had no problems with the drive, and have been using it for quite some time as both swap file storage as well as a place to store a few large database files which require random access.
I changed the names of the files here for security reasons, but other than that this is exactly what ls has output. Obviously, the total size readout is incorrect.
Here is the corresponding output from df
> df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 74G 35G 36G 50% /ssd
Despite this incorrect readout, the drive seems to be working fine, and diagnostic utilities turned up nothing wrong with the drive. Is this some sort of known bug in ext4, or is it more likely there's something physically wrong with the drive?
Because I get following output : Code: [root@1 ~]# /usr/bin/ldapadd -x -D "cn=Manager,dc=mydomain" -W -f /etc/openldap/basic.ldif Enter LDAP Password: adding new entry "dc=mydomain" ldapadd: Invalid syntax (21) additional info: objectclass: value #0 invalid per syntax
when I got following some information using fdisk -l,there were some invalid information about system name.I installed file system reiserfs, xfs on sdb6, sdb7.but the system didn't recognizes disk's file system name.
I've a problem when I try to run arpd program to support my honeyd software but when I try to execute it then it shows this error message ./arpd 10.0.0.0/8 arpd: intf_get: Invalid argument My arpd installation based on this tutorial [URL].
I have a script in which it searches the password file for a username based on the user's input. Is there a way I can take the bad input and keep it in a variable. (one that keeps adding all the non-existent users)so how would I get non-existent users into another variable?
When i type 'ifconfig eth0 192.168.25.1 255.255.255.0' the outcome is 'SIOCSIFADDR : invalid argument', but when i check the ip address using /sbin/ifconfig i see the ip address is updated to 192.168.25.1 and is up. When i restart the linux box,the /sbin/ifconfig is reset to 192.168.100.1 .what should i do so that the linux box /sbin/ifconfig should not change when am rebooting.
I have an old Dell Optiplex GX240 running Windows XP hooked up to my Olevia HDTV. I'd like to format this computer and install Ubuntu 10.04.After burning the Ubuntu install disk, I hook the computer to the tv via HDMI and reboot to the CDROM but upon booting I receive an 'Invalid Format' error and no video is shown.I did some searching - there is very little info about this problem. This post http://ubuntuforums.org/showthread.php?t=1063217 seems to indicate that the solution is to hook up the computer to an old CRT monitor, then after the computer has booted, switch the HDMI cable to the tv.This solution is unsatisfactory. Does anyone have experience with this problem? Is there another way to get around this problem?
I installed unetbootin, and picked linux mint because i heard mint is for beginners.I use HP mini, and connected USB drive.after installation is completed, restart machine, and changed boot order,this was on screen;"Invalid or corrupt kernel image"boot:press tab key for options.
i using centos 5.5 i have applied grub-md5 password to avoid to go single user mode and what happened someone knew this password then i have applied a new grub-md5 pawword and try to go to single user mode of the purpose it is working or not then message comes invalid password and i also try to previous password same message was on the screen right now i m unable to go single user mode and i have deleted it grub.conf and try to go single user mode then i m able and i again applied the grub-md5 password and try to go single user mode then same message invalid password why it is happning and what should i do ahead.
My computer was working fine yesterday. Last night I opted to load the newest ubuntu os ver 9.1. Now all I see after the initial booting takes place is a blank screen. I have managed to look at the booting up sequence and at the end of the multiple lines of code is the message: 'Invalid RT chipset detected'. I do not know if this is significant or not.
iam having a problem while using the urlwatch utility in linux
/usr/bin/urlwatch --urls=/home/etika/Desktop/etikaa.txt file pathname is /home/etika/Desktop/etikaa.txt
when ownership is tomcat it doesnot run when ownership is etika(which is the user on the system through which iam running my script why the file which is passed to urlwatch is not accepted if that's file owner is tomcat6 it gives the following error
Traceback (most recent call last):
File "/usr/bin/urlwatch", line 221, in <module> for job in handler.parse_urls_txt(urls_txt): File "/usr/share/urlwatch/urlwatch/handler.py", line 128, in parse_urls_txt shelljob_errors.append('%s not owned by %s' % (urls_txt, os.getlogin())) OSError: [Errno 22] Invalid argument
but when the ownership of the file is changed to etika it run smoothly why urlwatch does not run when the file containing the urls is owned by tomcat with full 777 permission but run with etika (user on the system) through this iam running my shell script
I need to modify fs/open.c and fs/read_write.c to make my modifications. I cannot find any options in 'make menuconfig' to make these files modules rather than compiled elements. I'm thinking these cannot be modules because the file system won't work without open.c and read_write.c. Is this correct - I cannot compile fs/open.c and fs/read_write.c as modules, only as compiled elements? Or, is there some way for a module to overwrite these routines when the module is installed and re-enable the routines when the module is removed?