Can't change privileges for my second harddrive even though I am root
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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Can't change privileges for my second harddrive even though I am root
Hi! (Again. ;))
Earlier today I had to re-install SuSE 10.0 because I couldn't get it to start again after having shut down the computer with a lot of applications still running (actually, they froze and I didn't know what to do). I know I shouldn't have shut it down like that but got impatient and I didn't think it would be such a problem.
Anyway. I re-mounted my other harddrive (which I unplugged when installing in an attempt to avoid messing it up, I keep all my important stuff on that one). It shows up fine and I can access the files - when changing user to root.
This is my problem: When I set privleges to allow all users to read and write files on that disk my system goes: Can not change permissions for /media/myharddrive/file. (Something like that, I use the Swedish version and have to translate the error message.)
I've tried moving the files, as root, from this harddrive to the other one, but all get is "Access denied for [file]".
It worked fine before I reinstalled.
Maybe I should format this drive or something? (But in order to do that I need to be able to move the files somewhere else.) It seems it has got some info on it that I can't change anymore? I dunno. I only started out with Linux one week ago. I really don't know what to do. I was so proud of having mounted it all by myself. And now this.
Any suggestions or thoughts on this problem would be greatly appreciated!
Try this in console as root. " chmod 777 /yourdirectory/yourfile "
Of course yourdirectory and file are whatever you need, But doing the above can have some security issues. If your looking to simply move the files and format, the above should give you the permissons to move them.
Someone in some other thread on here gave that instruction to someone when s/he asked about mounting another disk. I don't fully understand what it means, so I couldn't tell if something needs to be removed or added.
Also, if Slackware has a live cd I am more than willing to give it a try. ;))
Originally posted by BajaNick Try this in console as root. " chmod 777 /yourdirectory/yourfile "
Thanks for the tip! I did this on my disk as a whole "chmod 777 /media/Thenameofmydisk" because there are so many files on there, that there is no way I could do this for every file that won't be moved. It didn't work though, I'm afraid. I get the same error message when trying to move a dir. :/
Originally posted by enemorales You what???? You shouldn't try to write in a NTFS partition on Linux. Reading is supported and safe, but writting NO (or it wasn't the last time I checked).
Well. As I said: "I don't fully understand what it means, so I couldn't tell if something needs to be removed or added." I am a newbie, you'll have to explain to me what NTFS is and why I shouldn't try to write in it.
So. I downloaded SLAX KillBill Edition v 5.0.6 just for kicks (and since
Linux.tar.gz suggested I'd try real distro :)) and for some reason when I ran it I was able to move the entire content of my second hard disk to my main one! No problems what so ever.
So, now, any suggestions as to how I should handle this second disk to avoid more problems? I can wipe it now if necessary.
WIndows handles (only) 2 filesystems + floppy fs (fat16 if i remember right).
The 2 fs are fat32 and ntfs.
Fat32 is fully supported by Linux so you should use it when you use multiboot.
Ntfs is more secure (!) and is partially supported by Linux. However, you can use it with some user-space programs like captive.
For my part i use only fat32 because i avoid headaches.
I don't know if cfdisk is included in Suse, but it's a nice tool to partition and format disk. There's also graphical tools .
Originally posted by cmlal Well. As I said: "I don't fully understand what it means, so I couldn't tell if something needs to be removed or added." I am a newbie, you'll have to explain to me what NTFS is and why I shouldn't try to write in it.
Sorry, you didn't sound so newbie to me in the first post .
About what to do with your partition. It depends on what you want to do with your PC. If you plan to be microsoft free, sure you can remove the partition, create a new one and then format (instructions later). If you want to dual-boot and share file between the systems, format it as fat32 will allow you to read/write in the partition using both systems and without a problem.
Now, to delete, create, format, resize, etc, etc, there is a very nice gui tool called "qparted". It works like "Partition Magic".
On the other hand, since you are installing a "real distro", you may want to use the command line to manage this task. Then you can use a tool like "fdisk" (you can also use "cfdisk" if it comes with your distribution: it is better because it has menus and you can use the arrow to move, but I've found that it fails sometimes to do what I want it to, while "fdisk" is uglier, but more reliable). You will be running something like "fdisk /dev/hdb". You have done pretty good with Linux, so I think you'll be able to find out how to create a new partition. However, if after using "p" to see the partition table you do not have any idea about what you are seeing, give us a post here to help you further (notice you may decide to create several partitions also...)
In any case, fdisk (and cfdisk) won't format the partition for you, so after you use them you still have to use another command for that. Now, as in Windows you can fat32 and ntfs, in linux you can have (with full support): fat32, ext2, ext3, reiserfs, xfs, jfs, ... and several others. I'll recommend you to use either ext3 or reiserfs. To format the partition with ext3, you run "mkfs.ext3 /dev/hdb1" if you created only one partition.
I hope this helps you a little. I know I wasn't very helpful in the previous post. Sorry again and good luck with Linux. Again, you are doing pretty fine, I guess...
Ok, so I've had a few days to think about what I want to do, and I've come up with this.
Since I reinstalled SuSE 10.0 it seems a bit unstable. The sounds works (when playing the default sounds for shutting down and things like that) but I can no longer play mp3s with the software that comes with KDE (it's a shame because I really like amaroK) and after having installed Wine just now I can't browse the .wine/dosdevices directory. Konqueror just crashes. Things like that.
I'd like to make my second hard drive a reliable back up/storage place again, I don't quite trust it at the moment. Should I format? (That's what I'd do in Windows, I don't know what would be the proper thing to do in this case.) Then move all my important stuff back on it. And after that wipe everything off of the main hard drive and reinstall (possibly Ubuntu or Slackware, maybe dual boot if I can pull that off, I'll try a few live cd's before deciding). Make a fresh start.
How does this sound? I just really want it to work. Stability is key.