Results 1 to 8 of 8
hi,
i cant change rights of a folder although am connected as root,
i typed : chmod 777 cdrom
and it said : read only acess ,
what can i ...
- 05-05-2010 #1Just Joined!
- Join Date
- Apr 2010
- Posts
- 15
problem in modifying rights of a directory
hi,
i cant change rights of a folder although am connected as root,
i typed : chmod 777 cdrom
and it said : read only acess ,
what can i do please ?
best regards
- 05-05-2010 #2
hmm,
"cdrom" sounds like there is a CD drive (or more precise its media) mounted there.
And cdrom are physically read only, so no way of changing that with chmod.
Can you please do this and post the output here:Code:mount
You must always face the curtain with a bow.
- 05-05-2010 #3Just Joined!
- Join Date
- Apr 2010
- Posts
- 15
/dev/sda2 on /type ext3(rw)
none on /proc/bus/usb type usbdevfs (rw)
/dev/sdal on/boot type ext3 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
none on /dev/shm type tmpfs(rw)
/dev/cdrom on/mnt/cdrom type iso9660 (ro,nosuid,nodev)
cdrom is a file under mnt under /
- 05-05-2010 #4
- 05-05-2010 #5Just Joined!
- Join Date
- Apr 2010
- Posts
- 15
its not a cdrom, its a file called cdrom in my redhat linux, the path is /mnt/cdrom
- 05-05-2010 #6
/mnt/cdrom is a directory. ok
But a cdrom device is mounted to it (/dev/cdrom)
That device is readonly.
Therefore the directory /mnt/cdrom is readonly.
You can do the following to test that:
The second touch /mnt/cdrom/delete.me will fail.Code:umount /mnt/cdrom chown 777 /mnt/cdrom ls -lad /mnt/cdrom touch /mnt/cdrom/delete.me ls -la /mnt/cdrom/ rm /mnt/cdrom/delete.me mount /dev/cdrom /mnt/cdrom touch /mnt/cdrom/delete.me
As I said, a cdrom cannot be written to.You must always face the curtain with a bow.
- 05-06-2010 #7
If your cdrom is mounted to this directory by accident, check out your settings in /etc/fstab - but usually this main directory /mnt is where mounted drives go. As you see in mount, it is mounted as filesystem type iso9660 and as read only (ro) --> you can not write to that.
- 05-06-2010 #8
Just in case ...
Just in case you didn't believe the other two posters:
- yes cdrom is a device mounted to a file so you can access it
- the device is a CDROM - (Compact Disk Read Only Memory) which is ...ta da... read only.
Hats off to Irithori for patience way beyond the call of duty!
- Clouds don't crash - Bertrand Meyer
registered Linux user 393557
finally - hw to brag about - but next year it will look pitifully quaint:
Athlon64 X2 3800 - 1G PC3200 - 250G SATA - ati radeon x300
circa 2006


Reply With Quote
