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.
I have some CD-RW's with partimage images on them that I used for restoring a partition and it was successful. But I had some unrelated issues, so I reformatted the partition. But when I used the same CD-RW's the second time, the permission changed from read & execute to read only, which I thought was no big deal, I'll just change it back to read and execute. As owner, when I tried to put the check mark on execute, it told me that the permission could not be changed, it is a read only disk.
How can this be ? I had ownership and it was read & execute the day before, how could it have got changed to just read ? And seeing I have ownership, why could I not change it back to read & execute ?
Is it because I used CD-RW's ? I am wondering if anyone else has run onto this scenario and has an answer for me why this happened.
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
You were mistaken, once the CD-RW media is written and at least the session is closed the file permissions are read only. Nothing strange and nothing got changed magically overnight. Check your /etc/fstab file for the drive entry, it should show the device as read only access (this is the normal setting).
You were mistaken, once the CD-RW media is written and at least the session is closed the file permissions are read only. Nothing strange and nothing got changed magically overnight.
Hi Lenard
In my case using the CD-RW for the image, when I got done with the burning, I checked the permission and read & execute were both checked. "I seen it with my own eyes"
I was just experimenting, I took an image I just created and copied it to my desktop, what happened was it changed owner from root to my_user_name. But it also removed the execute check mark and it will not let me (the owner) put it back.
Evidently the disk did not get closed, that may be the problem. I'm sure you know more about this than I do. But the one thing I do know (for me anyway), I was not able to restore the image with read only. When I have read and execute, then it will.
I checked the permission and read & execute were both checked.
I believe lenard was onto something when he said the disk needs to be closed.
But I do not believe one can restore an image to a partitions with read only rights. So I also tried one with read only and partimage give me errors: "the disk does not have permission"
Interesting, because I use CD-RW's all the time and do not have problems, but saying that, I do not remember of ever using the same CD-RW's twice though because mostly, I seldom ever have to use them for restoring a partition. But guess what ? I just did this week infact. I looked at them before I replied and they all have read & execute rights. I used K3b to close the session.
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
Lets, try this again......
Once the data is written to the CD-R or CD-RW it cannot not be changed, this includes the permissions on the filesystem or for the individual files. It does not matter if the session is closed or not, it does not matter if the disc was finalized or not. It can be replaced, one needs to add a new session (multi-session) to replace the data (update the TOC for the changes*) or needs to blank the media (RW media only) and write the data fresh. Both write once (-R/+R media) and RW media support multi-session(s) as long as the media has space available for the new session(s) and the media is not finalized.
What was percieved by sarah_b more then likely was the un-sync'd information in the mountpoint. Once the media is unmounted or ejected the information is sync'd and updated, why the permissions seemed to change. This is why you saw read/write permissions after you 'burned' the media and changed the next time you mounted the media.
Yes, you need to have read/write permissions in order to copy/replace the data on the partition(s) from the CD media, but you do not need read/write permissions to read the data from the CD media, you only need read permissions.
Both gnomebaker and k3b are just GUI frontends to the CDR-Tools (cdrecord, cdrdao and others).
What do you think then about partimage not letting me restore from the CD-RW images the second time ? What may I doing wrong or what could be causing this ? The path did not change and the file_name did not change. I still have the CD-RW disk, I haven't erased them yet.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.