Ubuntu :: Started To Delete The Mountpoint Directory After Umount?
Sep 1, 2011
Ubuntu 10.04 lts Desktop suddenly started to delete the mountpoint directory after umount:
mkdir dirsudo mount -t ntfs /dev/sda1 dir... works well ...sudo umount dirdir is gone Another similar unanswered post.
Ubuntu server recently had issues with a disk. fsck seemed to correct everything, but I have one directory that I can't delete, chown, chgrp, chmod, etc.
Here's the listing for the directory dr-x-wxrwt 2 16709 25134 8192 2020-08-23 22:34 UDLEDATB.DBF
Note the sticky bit is set and the uid is a number that does not appear in /etc/passwd.
Even as root, any attempt to delete, chmod, chown, etc. gives "Operation not permitted".
Since sticky bit on a directory restricts delete to the owner and the owner is invalid, I am stuck. I need to delete this directory.
I recently installed KDE in my ubuntu 10.10. To access KDE, I want to use startx /usr/bin/startkdeBut using it disables sound in KDE (Sound is working fine in GNOME). It doesn't sound for anything like login sound, totem, mplayer or any other playerBut when I press Alt+Ctrl+F1 to change to virtual console, the playback resumes from where it was in time and when coming back Alt+Ctrl+F7 and the time in totem (or any other player) doesn't move. While log out also it doesn't play logout sound and doesn't logout, so I have to press Ctrl+Alt+F1 so that logout sound play then it exits.When starting KDE by kdm or gdm, the sound works normally. But I don't want to login again using kdm or gdm and not to use root user to start kdm or gdm.I don't know what is the difference between when KDE is started by startx or by kdm/gdm where the same user login in kdm/gdm as that for startx
I'm trying to delete the mythtv directory in my /Home directory. I tried rm and rmdir with sudo but that didn't work and I got an error message that said the directory wasn't empty. Then I tried 'sudo -Rf rmdir mythtv', but I keep getting an invalid option error. -R was for recursive right? Is there someway to remove this directory?
I removed a user account from my installation of 9.10 however that does not remove the users home directory, which I also want to do. I emptied the directory as as best I can tell, that is ls returns nothing in the directory. However when I run sudo rmdir josephI getrmdir: failed to remove `joseph': Directory not empty
I downloaded the tar file and extract it in my downloads directory. After that I did the compiling and installing as per ReadMe file. Now, is it safe to delete that directory with the source?
I have a couple of beginner questions;I have checked out some source code in a directory, not inside the home directory, using: Code:git clone git://git.videolan.org/ffmpeg.git ffmpeg-gitI moved the folder around (was not originally in the right directory), and now would like to delete it and start from scratch. How can I do it without creating issues with git? (I don't see ffmpeg-git in Synaptic)More generally, what is the best way to delete old folders related to obsolete or malfunctioning software, or even unsuccessful attempts at installing software ? Can I do 'delete' in the file manager? or just sudo rm <folder name> ? Or is there hidden issues?Another related question: When manually installing packages not available in Synaptic, for example, from downloaded tar.gz, what is the recommended directory structure. For example, is it better to use, for example: /home/<program name>/source to unpack the source code/home/<program name>/build to build the software?as opposed to using folders in the root directory? Is there a tutorial on the subject of best practice for directory structure?
I run a server where multiple people can access it via SSH and have access to the same folder. Someone recently decided to stop using my server so I deleted their login account inside the User and Group GUI inside gnome. I accidentally selected delete files owned by this user. I didn't think much of it because the user didn't actually own any of the files since it was shared among all of them. Anyway, ALL the files in that shared home directory vanished, including the home directory. How can I recover this? It didn't move all the files to the root trash or my local user's trash folder. Are the permanently deleted?
I have a FAT32 SD card with a file on it, that, viewed in Windows the filename consists of a long string of nonsense. Viewed in my Android phone's Linux terminal, ls -a shows nothing in the directory. When I try to delete the parent directory with rm -rf deleteme, it fails with "Directory not empty". When I try to delete/move in Windows 7, it says the filename would be too long and/or Explorer crashes. Windows disk check doesn't find anything wrong. How can I delete this?
I have a USB drive that I boot using SysLinux. I think select one of several options to complete a task. I do not have access to edit those Kernels. I need to add a option from the Syslinux menu where I can delete all the files from a specific directory.
I have downloaded torrent from some chinese tracker. It has ???? and some other symbol charaters in directory name. How to delete that file and directory?
I created a directory somewhere with permissions rwxrwxr-x so that other users in my group can create files and directories in it.
I do need to be able to delete the contents in this "public" directory, but it seems that while I am able to remove any files in this directory I cannot remove and subdirectories under it.
Is there a way to remove such subdirectories owned by others under a directory owned by me?
I know that rm -i will prompt wether you want to delete each file.But rm -i -r will prompt for each file in each subdirectory recursively. How to make it prompt just for the directory itself, and then delete its contents without asking?How to delete all the files in a directory without deleting . and ..?How to recursively delete all tilde files in a directory?How to GUI file managers delete files to Trash? Where is this "Trash" located? Can you delete to trash in the command line?
I was transferring some files from my laptop (running FC6) to a server at my work (don't know what kind) with "scp -rpC" and it stalled, don't know why. Now when I try to delete the files from the server so I can start again I get the following error message
I wanna delete a directory with its files and I wanna do that as follows: rm -r dirToDelete Unfortunately, I always get asked for EACH single file if I wanna delete this because it is write protected.... Is there a way to suppress this feedback message so that just the whole directory with its contents disappears?
I need a PHP script to delete a line with certain pattern from all filesin a directory. The Directory contain files with extensions .js,.html and.php. Do any body give a working code snippet to Read all files in a directory with above extension and delete that line from the files.
I have been trying to write a script that will take a directory, for example /accounts compress it into a .tar file with the filename containing the date of compression, for example accounts030210.tar and then place that file into a directory called /archive
I also want the script to delete files in /archive that are older than 7 days.
Directories(-entries) are in a EXT2 file system managed in a singly linked list. Delete files in the directory causes Gaps or holes to appear in the linked list of the directory.How does a C-source code look like, which would reorganize this list and remove the gaps or Holes.
I am trying to add a command to my backup script to delete the oldest file in the destination folder before adding a new .tar.gz file.I found this information at .html which I thought would work fine and added the following line to my backup script:ls -t -r -l /backups/Scalix_Backup* | head --lines 1 | xargs rmHowever when I tried this I get an error:rm: invalid option -- wTry `rm --help' for more information
I am facing a problem in Windows due to a virus called Newfolder.exe which creats files with the same name as it's parent directory and an extension .exe and this happens for every directory in the entire hierarchy in the infected pen drive. The antivirus detects them, but is sucking slow. So I thought this is a good opportunity to use the concepts of the all mighty shell script to remove those as they follow the same pattern. Say my complete path is
Code:
/home/pkd/fol1/
The virus would have created an file with complete paths
Quote:
/home/pkd/fol1.exe
If fol1 has two more directories fol11 and fol12 Then there would be two more .exe(virus created) in the following path
I've been able to properly mount my ntfs formatted USB drive with user RW privileges.
The only thing I can't figure out/find anywhere is how to make the drive mount to a specific mountpoint such as "ntfs-usb" instead of "disk" or "disk-1", etc.
I used Expert Partitioner thru YaST and selected "do not mount partition" under Mounting Options and used the info on Swerdna's site to get where I am now.
My system lists the drive as "/dev/sdd" and it's (only) partition as "/dev/sdd1" and currently mounts it at /media/disk.
I noticed today that my F13 date was one month out i.e October 30th instead of September 30th.Time was okay. I tried to adjust it manually but no success. Now if I try to start up I get to the first blue screeen but then it says something like "last mountpoint date was October 30th = now September 30th which is in the future" (not exact wording). Time zone is correct and not set to network time or UTC. I'm dual booting with WinXP and date and time is correct and Time Zone is correct. System time is correct. So now to get into F13 I have to manually set the system time to 30th October.Which is OK for the 1st reboot but reverts back to the correct date on the next reboot. WinXP boots ok.
I'm using Gnome on Fedora 14 and I'm getting picky on how things gets displayed.
I have a couple of drives and the following entry on my fstab:
they mount to the correct directory but in my desktop. I see 2 icons with the volume labels same with the "places" menu up top. Is there a way to replace the volume lables with the mount points?
I'm trying to make HAL mount my CD and DVD discs under a specific mountpoint (such as "/media/optical_disc", rather than "/media/<disc_label>". I understand from the Arch Linux Wiki it's possible for the media which gets recognized by it's uuid.
I managed to boot from hard disk, everything works ok. But Gparted has a bug, it works in Live Hard Disk, but not when I click the install icon because it can't umount /cdrom. But I solved that by formatting ext4 and swap area from gnome-panel Live Hard Disk and only put mount point / after click on install.But problem stroked back: install is not possible because it wants to umount itself before installing, wich cannot be possible. I'm installing it in a new place /dev/sda5. Live Hard Disk is booting from /dev/sda3.