Ubuntu :: Delete Folders And Files From Main Installation From When Booted From Live Cd?
Sep 29, 2010I'm getting permission errors. Delete folders and files from main installation from when booted from live cd?
View 9 RepliesI'm getting permission errors. Delete folders and files from main installation from when booted from live cd?
View 9 RepliesWindows has been crashing systematically on my old netbook, so I booted debian from a liveUSB. The reason I don't want to install it outright is that I didn't backup my files, so my plan was to do the backup with live debian. Yet, for some reason, Debian's "File viewer" doesn't "see" my HD files. That is, my disk is listed as a mounted device and I can see all its directories ("Downloads", "My Documents" and so on) but they all seem to be empty.
So I try from the terminal, where "dir" on /Downloads effectively returns the list of all the files I remember I had there. So on my first attempt I try to copy one single file to /home, that is,
Code: Select alluser@debian:/media/user/36AEF3F8AEF3AE8D/Users/xxxx/Downloads$ sudo cp filename.jpg /home
(/media/user/36AEF3F8AEF3AE8D is the mount point for the /dev/sda2 filesystem) and I get
Code: Select allcp: error reading 'filename.jpg': Input/output error
cp: failed to extend '/home/filename.jpg': Input/output error
Although I've been using Ubuntu for a while, I haven't really done any scripting thus far,but now find myself needing to do (what I thought was) some fairly simple stuff.However, despite much searching, I have been unable to find a solution to my problem.I need a script which will delete all of the files/folders from a directory except those I specify. From the command line, I am able to use:rm -r !(constant|system|*.msh|)
which works fine, deleting everything except the 'constant' and 'system' folders (and everything in them) and any files ending in '.msh'. I have tried to put this into a script file, specifying to use the bash shell, and escaping the required characters, but I just get the message 'cannot find !(constant|*.msh)'.I have read that using the find command may be a better way of doing it, but so far I have not been able to make the command work in the way which I need (I have easily been able to delete ALL the files/folders in the directory!).
I have installed a new system on my desktop computer, and would now like to delete files/folders from the web interface, as they no longer reflect the files and folders on my desktop PC. I use my desktop PC to sync files and folders one way to my laptops.
View 9 Replies View RelatedCan't rename, move or delete files or folders that have a foreign character.
Code:
The file or folder /data/down/done/1999 Taraf de Ha-douks does not exist.
Kubuntu Karmic. Fails in konqueror and dolphin.
I want to know how much damage a user can do on my system if he decides to delete everything (or write to in case of corruption).What command or script might i use to check this?
View 3 Replies View RelatedI have an archive directory that needs to be cleaned up once per quarter. The top level (/data/archive/*) directory names change daily, as well as the subdirectories and the filenames (the application names everything according to date). Also, there are two top level directories, bin and incoming, that we can't touch. I want to write a shell script that loops through the 15 or 20 top level directories and deletes all files and subdirectories older than 3 days (skipping the bin and incoming folders). Can someone get me started on a script? I am kinda new to shell scripting.
View 2 Replies View Related10.10 on a ext4 partition. I deleted a folder that sat on a NTFS partition that I use as data storage. I note that if I delete folders or files on this NTFS partition there is not the option to move to waste basket - it is just deleted. If the folder still exists on the hard drive (has not been over written) I may be able to retrieve it - but where could it be? On the NTFS partition?
View 2 Replies View RelatedI am trying to install Fedora 10 on an old P3 Inspiron 5000. When I boot from the Live cd the screen is split into three sections and is hard to navigate. I am able to edit the /etc/X11/xorg.conf file and log out and log back in to proceed with the installation. The problem is when I finish the installation and reboot to the new OS it boots to the triple section mode again because my xorg.conf is not edited. To do any commands in Fedora I need to get through a brief user setup in which I cannot navigate through until I can see the screen better. Is there a way to boot to a graphical type safe mode so I can see the whole screen to finish the installation?
How can I access folders from the live cd to edit the installed files? This way I can edit the xorg.conf file before booting and all would be legible.
System->Preferences->Main Menu does not let me delete or rename folders. Not even folders that I created. And I want total control over the menu, like in Windows
View 6 Replies View RelatedWhen I was using Ubuntu 10.10 I was able to add menus, edit and delete them from the main menu by right clicking on the menu and selecting Edit menus [URL]. After installing Ubuntu 11.04, I found that I can't add, edit or delete any menu. Any one knows how to add, edit and delete menus from the main menu?
View 2 Replies View RelatedRecently I did a wget for DreamLinux 4beta6.3, which I now cannot burn to a disk. Another issue with linux in general being just a hobby. Why could a dev not set it up where you could just wget the upgrades for the main distro files themselves ?? We already do this when upgrading the apps, so why not the distro? Why could you not start at alpha, and just slap do a rolling upgrade into rc and beyond?
I understand the potential stability issues, but why can't we ghost the drive and hence have a backup on hand and then do this as outlined, and hence do a single install from alpha the distro's grave? I am wasting four months on "Setting Up" each install, only to wind up reinstalling again. This happens in every variation I have come across. Even in stable versions, the rolling upgrade just craps the install, and the major do overs hijacks all my data.
I need to know is there any way to record or tracking or make logging if when user samba delete files or folders i can know that, cause sometimeon samba server some users complain they lost files, though i have daily backup and i can restore their files, i just want to know if or maybe some other users in one group accidentally move or delete the files.
View 1 Replies View Relatedjust install kde in ubuntu couple of hours ago.i was just checking the panels and widgets.unfortunately i delete the bottom main panel. so i cant access any thing.just desktop is seen.without kde bottom panel kde is useless.its looks like this.snapshot1.pngwhat can i do. i want it to default position ?
View 1 Replies View RelatedI want to delete a subfolder ABC in a main Project folder Globe. It occurs in many subfolders. It is very hectic to search and issue an rm -rf ABC command. I need to make a script for that .
View 4 Replies View RelatedI have recently done a clean install of Ubuntu 10.04 [and it is all going very nicely unlike some others] on my dual boot Dell Dimension 5100.After seeing some advice about advanced partitioning I decided to expand my partition table during the 10.04 install process from swap, / and /home (where I keep My Documents) to swap, /, /home, /var, /tmp and /usr, all of which was achieved without problem.I am now getting "Low Disk Space" messages on my home partition (488 MB remaining!!!) I have emptied the trash and cleaned up any obviously large but surplus files. (I did find two that concern me but they aren't HUGE and I am unsure of what they do: file-meta.db and file-index.db in /home/john/.cache/tracker/ which are 290 MB and 108 MB respectively, last modified five months ago and something to do with SQLite3.)
Anyway, am I right in saying that my new /var, /tmp and particularly /usr partitions now contain some of what was previously held on / and /home, leaving old files that can be removed? If so, what is now surplus and how do I delete it safely? I had a bit of a dig but, as the properties in Nautilus of, for example, /usr do not indicate what partition it is on, I can't safely tell what is current and what is old.
I can't delete folders from ubuntu one's web site there is no delete button that i can find.
View 3 Replies View RelatedI have a Nook. When I plug it into the USB port on my system, a window pops up asking what I want to do with the new device. I can open it and access media/nook and move files into and out of the directory.
There's a button to "Safely dismount Nook" before I unplug it. I use that. Apparently, however, sometimes it doesn't respond. Now I have .hal-mtab-lock in my /media folder, along with Nook Main Memory and Nook Main Memory (1) folders. I can't delete any of them.
How do I a) delete these folders, and b) make sure it actually unmounts the device in the future?
I am trying to use an old box as backup server. I have tried a couple of possibilities along the lines of:
Quote:
rsync -a --delete --progress --log-file=/home/$USER/info.txt -e ssh /home /etc root@192.168.0.106:/mnt/back
The problem is it does not delete files that has been removed from my local system?
I run the command as root on the local system.
(I realize I should properly not ssh into the server as the server's root but I'm having trouble with the permissions and I want to make sure everything else works before messing around with it)
I am on mac os x and whenever I make aliases in my apache config file to point to folders outside of main web document root folder, I get access forbidden. I have chmod -R 777 the whole destination directory (to test it) and still no go. Access forbidden. I have also tried pointing directly to [URL].
View 1 Replies View RelatedBasically this is my problem:
1.) I want to remove Ubuntu and Grub and have only Windows XP on my PC again. (Remember the good old days?)
2.) I want to put the Ubuntu partitions back into Windows partition. I need the space.
3.) I can't use an XP disc because I don't have one. (No. Neither does anyone else I know.)
4.) FIXMBR isn't working... am I doing something wrong and what other options do I have?
5.) Does anyone know how do this without removing all my files on the XP? I can't afford to backup everything on my XP. I CAN'T!
Currently I am doing a java project and I renamed some file/folders to start with '.'. i.e. ".project", ".classpath", ".settings/"
I can see them on my desktop but i cannot delete them. In the terminal, "ls" command does not show these files exist. "rm" will also say cannot find these files. How do I get rid of these files/folders?
I have the following structure:
/.svn
/bla/.svn
/hello/.svn
/bla/bla/bla/.svn
... etc
I want to delete all the .svn folders. How do I do it?It's NOT:
rm -rf .svn
In windows you use the /s trigger. How do you do it linux?
I want to upgrade to 10.04 and I'm using Update Manager by clicking the Upgrade button at the top.
Will this delete programs (from the software centre) and files (from the my documents anf my pictures folders)?
I have a Ubuntu file server with a mix of 30+ users ( mix of windows and linux ).All are members of the same group. All need read write create access. I want to prevent deletion of certain key folders. How can I achieve this ? sudo chmod -R nnnn ??
View 8 Replies View RelatedI noticed after uninstalling Firefox that the folder is still listed in the files/etc ... how do I delete these files?
/etc/firefox
/etc/firefox-3.0
/etc/forefox-3.5
I just had a bad experience with a server, and now i have a 17GB lost+found. It appears a lot of the stuff in there are folders which are empty. Since those really serve no purpose as far as recovering data from what I can tell, is there a slick way to delete just the empty folders from my /data/lost+found folder, leaving me with just the stuff I truly need to look through?
View 3 Replies View RelatedI have a USB drive that has a TON of folders on its root level. I want to remove all those folders and their contents except three of them. I know if I do rm -rf that will kill everything, is there a way to exclude three folders, say folder1 folder2 newfolder, and do it all in one statement?
View 3 Replies View RelatedHow would i delete all the folders access one i specify.for example if a there are 4 folders namely a b c and d. How would i prevent deleting folder b .Whatever folders other than b should be deleted?
View 13 Replies View RelatedI just can't stand knowing that there's a slight problem with my PC.I have roughly 12.5 Gigs of files, mostly movies that are multiple clones of a particular movie (which was an entirely different problem altogether) and I CANNOT DELETE THESE THINGS! There has to be a simple way to do it from terminal, problem is, I can't seem to find the trash directory in terminal.
View 3 Replies View Related