Ubuntu Installation :: How To Delete Directory After Git Clone

Jun 25, 2011

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?

View 2 Replies


ADVERTISEMENT

Ubuntu :: Backup Software That Can Clone A Directory?

Mar 28, 2010

I'm looking for software that can backup all the files in my /home directory including hidden files.

I liked Lucky Backup, but it puts everything in a tar file, meaning that the backup fails if the file gets too large (4 GB I think). I would prefer to avoid using tar/archives anyway, as often I only need to recover 1 file from a backup (an archive holding my 50 Gb of data would take ages to open).

Does anyone know of a program or a way to get rsync or the like to copy all the files in a directory, including hidden files, into another directory ( so I end up with effectively a carbon copy of the original). Disk space is not an issue so I don't need to compress anything. I'm not bothered whether its a fancy GUI-based program or a rsync command, just so long as it can save my previous files from.... myself.

View 9 Replies View Related

Ubuntu :: Server Directory Can't Delete Directory / Fix This?

Jul 9, 2011

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.

How can I fix this?

View 4 Replies View Related

Ubuntu :: How To Delete A Directory

Jan 24, 2010

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?

View 7 Replies View Related

Ubuntu :: Trying To Delete Directory?

Mar 16, 2010

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

View 8 Replies View Related

Ubuntu :: Safe To Delete Directory With The Source?

Oct 8, 2010

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?

View 1 Replies View Related

Ubuntu :: Recover Delete User Home Directory

Mar 7, 2011

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?

View 6 Replies View Related

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.

View 4 Replies View Related

General :: Delete The Parent Directory With Rm -rf?

May 15, 2011

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?

View 2 Replies View Related

General :: Delete Files In A Directory - RM?

Jun 17, 2010

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.

View 3 Replies View Related

Ubuntu Installation :: How To Create Clone In USB

Oct 2, 2010

I have Ubuntu 10.04 installed in my desktop and is working fine. I would like to clone the Ubuntu with all my settings etc to a USB Flsah drive so that I can take it with me during travel.I don't want to reinstall in USB FLASH rather I want asis Desktop Ubuntu in USB FLASH.

View 1 Replies View Related

Ubuntu Installation :: Best Way To Clone / Transfer OS Across HDD

Dec 23, 2010

What's the best way to transfer across one hdd to another? I want to avoid setting up my kubuntu 10.10 instance again and hoping there's a way to easily clone it across.

View 2 Replies View Related

Fedora :: Delete Directory With ??? Characters In Filename?

Jun 6, 2010

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?

View 5 Replies View Related

General :: Can I Delete Files Created By Others In A Directory I Own

Jul 23, 2010

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?

View 3 Replies View Related

General :: Delete Protected Directory In Samba?

Dec 20, 2010

How to create a directory in samba share in which user can write read files but neither can create more directories tree nor delete any directory.

suppose
[Share]
comment = NRshare
path = /home/share
browseable = yes

[Code].....

I know user cannot delete share directory here. But user can create any number of directories of files in share.

I would like to create directories in share which cannot be added or deleted.

View 2 Replies View Related

General :: How To Delete All Files In Directory Without Deleting?

Feb 9, 2010

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?

View 14 Replies View Related

General :: Delete All Files In A Directory Except The 7 Latest Ones?

Dec 4, 2010

Here is how i am isolating the 7 latest files

Code:
ls -ltr | tail -7

is there a way to give that negated list to the rm command? or should i be using the find command with an exec {}?

View 14 Replies View Related

Software :: Delete A Directory '/mnt/me' But Got Error Message?

May 24, 2011

I want to delete a directory '/mnt/me' but got error message like:

Code:
rm: cannot remove `/mnt/me//ASendke/Listen/Status_Mtext.xls': Text file busy

I know this is because this directory is mounted.

How can I unmount this dir so I can delete it?

View 4 Replies View Related

Ubuntu Installation :: Clone Physical Drive To Another One

Jun 27, 2010

My Ubuntu system drive is starting to throw up S.M.A.R.T. errors. I have two partitions on the drive (/home and /) and grub in the mbr. Is there a way to exactly clone this drive to another one so I don't need to reinstall or re-setup anything?

View 1 Replies View Related

Ubuntu Installation :: Any Way To Clone Wubi Install?

Dec 3, 2010

My wife's laptop has XP on it, I installed Ubuntu using wubi apparently. I thought I had made a separate partition and made a true dual boot system but I guess I didn't. Is there a way to clone the wubi install to it's own partition and add the boot loader after or am I going to have to do a fresh install and set everything up again? I am surprised that she has taken to Ubuntu as well as she has, I thought she would hate it but she actually prefers it to windows now..

View 2 Replies View Related

Ubuntu Installation :: Image Clone Will Not Boot

Jan 18, 2011

My HDD crashed (it wasn't completely disastrous, though). I was able to get my Ubuntu 10.10 partition of the disk with dd_rescue. I can see all of the data in the partition and everything. dd_rescue reported that there were no errors.Now, I have a fresh HDD, and I copied the image that I created with Gparted, and turned the boot flag on. I turn my system on, and all I get is a flashing cursor in the corner of the screen.I get the feeling that this would be easy for a seasoned user, but I'm not sure where to go. I originally got some information about cloning partitions here: [URL] But, it doesn't tell you how to reload the image after you make it.

View 2 Replies View Related

Ubuntu Installation :: Clone A USB Startup Disk?

Apr 19, 2011

I often run various computers from my Ubuntu 10.04 USB startup disk. Every now and then, people get interested and want a copy of their own. Since I have installed a few extras (VLC, codecs, flash etc) on the disk, not just the out of the box 10.04, I would like to create a clone of the USB startup disk, to give away. How can it be done?

View 2 Replies View Related

Fedora Servers :: Cannot Delete Directory 'foo': File Exists

Jan 17, 2009

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

Code:
rm -r Single_injections/
rm: cannot remove directory `Single_injections/195320/400mA/010': File exists
rm: cannot remove directory `Single_injections/195320/400mA': File exists
rm: cannot remove directory `Single_injections/195320': File exists
rm: cannot remove directory `Single_injections': File exists

[Code].....

View 6 Replies View Related

General :: Rm Non-interactive Command - Delete A Directory With Its Files

Sep 28, 2010

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?

View 5 Replies View Related

General :: Delete A Line With Certain Format From Files In A Directory?

Sep 21, 2010

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.

View 1 Replies View Related

Ubuntu Installation :: Incorrect Filesystem Size After Clone?

Mar 17, 2010

Question:Several months ago I upgraded my hard drive on a dual boot machine (xp & U9.10 - both 64bit) from approx 80gb to 250gb. I chose to use DriveClone from windows to clone the old drive directly to the new drive. Operational everything works fine. the problem is the Ubuntu HD size went from around 10GB to approx 150Gb, but the filesystem only recognizes approx. 10GB as the total available capacity. I just tried to reinstall Ubuntu without reformatting and only recovered a few GB's. GParted reports the proper partition size. Is there any way I can correct this problem? It's not a big issue...I thought I would check here first before I reformatted the partition. The pre-boot disk check ran and reported no errors but the file system is still not seeing the unused GB's.

View 3 Replies View Related

Ubuntu Installation :: Clone Using Installed And Deinstalled Packages

Apr 2, 2010

I was curious if there is any way to clone my system by simply writing into a file which packages are installed AND deinstalled on the source system.

The reason is that I configured a system which fits me just right (I installed some additional packages and removed some standard packages like OpenOffice...) and was wanting to back it up - even for a newer Ubuntu-Version.

Most of the changes are already gone in /var/log/dpkg.log... so this option does not exist...Does anyone know where Synaptic stores the information which package is installed and which is not? It is possible to view those packages by applying a filter.

View 3 Replies View Related

Ubuntu Installation :: Clone / Expand To New Hard Drive?

Oct 28, 2010

I'm looking to move my 10.04 installation from an 80 GB HD to a 250 GB HD.

Last week, I successfully moved a Windows system from an 80 GB HD to a 320 GB HD using Clonezilla. However, I must have missed a command option, as I wound up with only 80 GB used on the new drive, and the remaining space unused. I used PartedMagic to resize the partition to use the full space, and all is now well.

Back to my Ubuntu move, on the second machine, I currently have three partitions - /, /swap, and /home. I'd like to expand / just a small amount, leave /swap sized as it is, and give most of the drive space to /home (as that is where I am running out of space). I think I have two options:

Option 1: Use Clonezilla to clone the drive (3 partitions), and then use PartedMagic to move/resize the partitions as desired.

Option 2: Use PartedMagic to set up 3 partitions to the sizes I want, then use Clonezilla to copy to the new partitions.

Option 1 seems to be the easier way. But, is there another option, a better way? Perhaps there's a command option in CloneZilla that I'm just not seeing, which would allow me to do the move in one step?

View 7 Replies View Related

Ubuntu Installation :: Clone 10.04 Server - GPT Partition And Grub

Feb 3, 2011

I have a bunch of computers with the same configuration, so I would like to install Ubuntu only to one master computer and later on just copy the partition layout and the filesystem unto other computers. Previously I was able to simply copy the partition layout (via the sfdisk utility), the filesystem (a simple "cp -a") and install Grub (via script). Now I had to use the parted utility to partition the 2TB drive and Grub2 is the default boot loader.

My questions are now:
1. How do I copy the partition layout from /dev/sda (master) to /dev/sdb (clone)?
2. How do I batch install install Grub2 to the other disk (e.g. /dev/sdb) ?

In Grub 0.97 it used to be something like that:
Code:
# GRUB the disk
grub --no-floppy --batch <<EOF_GRUB
root ($GRUB,0)
setup ($GRUB)
quit
EOF_GRUB .....

In Grub 2 I tried with:
Code:
grub-install --force --root-directory=/mnt/sdb1/ /dev/sdb
Only to get this error: .....

The Grub2 syntax is way different compared to Grub0.97. Yes, I do could use the Grub2-suggested option but since the partition layouts on both partitions are equal, I see little point in setting the BIOS Boot Partition option, since the master computer works without it and I don't remember any error message during the install.

View 9 Replies View Related

Ubuntu Installation :: Clone /dev/loop0 Install To A New Partition /dev/sda?

Aug 25, 2011

Installed Ubuntu from an iso and now can boot only from /dev/loop0 need to clone this to /dev/sda, is this possible if so what are the commands.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved