Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi all.
I've installed Ubuntu 7.04 on my C:\ drive. There is no other OS on that drive.
On what would have been my D:\ drive there are documents of all descriptions which were created when the machine was a Windows XP machine. I want to delete most of these files but Ubuntu won't let me.
The procedure I'm following is as follows,
* I single left click on the folder or file that I want to delete.
* I press the [Del] key on the keyboard.
* I get a message "Cannot move file to the Deleted Items folder, do you want to delete it permanently?"
*I mouse click the on-screen "Delete" button.
This brings up an on-screen message "Error wile deleting <filename> cannot be deleted because it is on a read-only disk."
If I right-click on a folder that I wish to delete and select "Properties" then select the Permissions" tab, all the options are greyed out. At the bottom of the box is the message "You are not the owner, so you can't change these permissions".
Grateful for any advice as to how to permit myself to delete these files.
Your filesystem on that disk/partition is probably ntfs and it's more than likely mounted read-only.
There is a 'tool' (it's called ntfs-3g) that you can install and will allow you to read/write ntfs partitions. I've never used it however, so not sure how it works
As an alternative, make a backup of the disk/partition, reformat it as ext3, reiser or whatever and place the documents that you want to keep back. For a Linux-only system that would have my preference.
Open a terminal and go to the /mnt folder: cd /mnt
ls
You should see some pre-set mount points for the various partitions---one of these will be for the "D Drive". You should be able to mount it using: mount <mountpoint>
Then, cd <mountpoint> and ls to see what's there.
Once you find the files, do ls -l to see owner and permission.
At least on my system, I cannot directly change owner and permissions for NTFS files. You may have to simply delete the files as root. (su to become root)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.