Author Topic: Unable to change permission of a drive or it's contents  (Read 6813 times)

0 Members and 1 Guest are viewing this topic.

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 2002
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
Unable to change permission of a drive or it's contents
« on: August 12, 2017, 02:20:25 pm »
I have been using Ktorrent and had a specific folder where .torrent files and partial downloads and complete downloads are stored, each in their own folder. That was until 2 days ago when Ktorrent was failing to save the data.

I have discovered that somehow, the permissions have changed. I know it's not me as I have had no reason to change any permissions. I have tried to change permissions back to me but I get an error report.

This is a screenshot of the drives, drive EXT-01 will not let me change permissions.

I've also been looking into changing permission via the terminal but I can't seem to find the correct way to do it.

(p.s. Can anyone recommend a decent FREE file sharing site with decent size pictures)

[EDIT]
Sorry Mark. I followed your instructions and this is the smallest I can get.
« Last Edit: August 12, 2017, 06:56:21 pm by Mark Greaves (PCNetSpec) »

Kubuntu 14.04LTS 64bit|KDE 4.14.13|QT 4.8.6|Linux 4.2.0-42-generic|M5A78L-M USB3|BIOS 2101|AMD PhenomII X4 965 3400+|P8H77-I Motherboard NIC|32.0GB PC3-10600 1333Mhz CL9 ( 9-9-9-24 ) DDR3

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17264
  • Karma: 436
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Unable to change permission of a drive or it's contents
« Reply #1 on: August 12, 2017, 03:10:33 pm »
image hosting site:
https://imgur.com
tutorial on how to use, here:
https://forum.peppermintos.com/index.php/topic,4036.msg40426.html#msg40426

Can't give you a command to change permissions until we know where the folder is ?
« Last Edit: August 12, 2017, 03:14:00 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 2002
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
Re: Unable to change permission of a drive or it's contents
« Reply #2 on: August 12, 2017, 03:19:40 pm »
I don't get given that information when using Dolphin to change permission, just the dialog box informing me I am unable 'Could not change permissions for /…A8930469CF69B99230E070E61F02A36FB.'

Is all I get.

what's the way to do it via terminal?
It's path is '/media/EXT-01/'

Kubuntu 14.04LTS 64bit|KDE 4.14.13|QT 4.8.6|Linux 4.2.0-42-generic|M5A78L-M USB3|BIOS 2101|AMD PhenomII X4 965 3400+|P8H77-I Motherboard NIC|32.0GB PC3-10600 1333Mhz CL9 ( 9-9-9-24 ) DDR3

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17264
  • Karma: 436
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Unable to change permission of a drive or it's contents
« Reply #3 on: August 12, 2017, 04:14:12 pm »
Assuming your username is "pooky"...

To make that directory read/write/execute by everyone:
Code: [Select]
sudo chmod 777 /media/EXT-01
then to take ownership of the contents (recursively):
Code: [Select]
sudo chown -R pooky:pooky /media/EXT-01
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 2002
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
Re: Unable to change permission of a drive or it's contents
« Reply #4 on: August 12, 2017, 04:33:40 pm »
I get this result
pooky2483@Kubuntu-1404-LTS-PhenomII:/media/EXT-01$ sudo chmod 777 /media/EXT-01/
[sudo] password for pooky2483:
chmod: changing permissions of ‘/media/EXT-01/’: Read-only file system
pooky2483@Kubuntu-1404-LTS-PhenomII:/media/EXT-01$

Kubuntu 14.04LTS 64bit|KDE 4.14.13|QT 4.8.6|Linux 4.2.0-42-generic|M5A78L-M USB3|BIOS 2101|AMD PhenomII X4 965 3400+|P8H77-I Motherboard NIC|32.0GB PC3-10600 1333Mhz CL9 ( 9-9-9-24 ) DDR3

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17264
  • Karma: 436
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Unable to change permission of a drive or it's contents
« Reply #5 on: August 12, 2017, 06:44:51 pm »
Okay that disk/partition probably has file system errors so has been remounted read only.

What's the output from:
Code: [Select]
mount



Okay for large images (from imgur) on this forum make it like:
Code: [Select]
[center][url=http://i.imgur.com/USpfqEj.png][img width=700]http://i.imgur.com/USpfqEj.png[/img][/url][/center]
which will limit the width to 700 here, but make the image a clickable link to the image hosted by imgur .. just in case you need to view it full size.

I've fixed the ones in your first post ;)
« Last Edit: August 12, 2017, 07:02:29 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 2002
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
Re: Unable to change permission of a drive or it's contents
« Reply #6 on: August 12, 2017, 08:10:23 pm »
Code: [Select]
mount

/dev/sda1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
none on /sys/fs/pstore type pstore (rw)
/dev/sdc1 on /media/INT-01 type ext4 (rw,nosuid,nodev)
/dev/sdb1 on /media/INT-02 type ext4 (rw,nosuid,nodev)
/dev/sdd1 on /media/EXT-01 type ext4 (rw,nosuid,nodev)
/dev/sde1 on /media/EXT-04 type ext4 (rw,nosuid,nodev)
/dev/sdf1 on /media/EXT-05 type ext4 (rw,nosuid,nodev)
/dev/sdg1 on /media/EXT-06 type ext4 (rw,nosuid,nodev)
/dev/sdi1 on /media/EXT-02 type ext4 (rw,nosuid,nodev)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)

You'll notice EXT-03 is not there, that's because the power supply is duff.
Thanks for the Imgur image info, I'll have a look at it :-)

Kubuntu 14.04LTS 64bit|KDE 4.14.13|QT 4.8.6|Linux 4.2.0-42-generic|M5A78L-M USB3|BIOS 2101|AMD PhenomII X4 965 3400+|P8H77-I Motherboard NIC|32.0GB PC3-10600 1333Mhz CL9 ( 9-9-9-24 ) DDR3

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17264
  • Karma: 436
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Unable to change permission of a drive or it's contents
« Reply #7 on: August 12, 2017, 09:11:38 pm »
Try running:
Code: [Select]
sudo umount /media/EXT-01
then as long as that command finishes without error:
Code: [Select]
sudo fsck /dev/sdd1
then reboot and see if it's writeable
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 2002
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
Re: Unable to change permission of a drive or it's contents
« Reply #8 on: August 12, 2017, 09:27:43 pm »
sudo umount /media/EXT-01

Came up with
umount: /media/EXT-01: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8 ) or fuser(1)) * Space added after the 8 as it produces a smiley

Somethings strange as, if I (pooky2483) can't write to it, what IS?


Kubuntu 14.04LTS 64bit|KDE 4.14.13|QT 4.8.6|Linux 4.2.0-42-generic|M5A78L-M USB3|BIOS 2101|AMD PhenomII X4 965 3400+|P8H77-I Motherboard NIC|32.0GB PC3-10600 1333Mhz CL9 ( 9-9-9-24 ) DDR3

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17264
  • Karma: 436
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Unable to change permission of a drive or it's contents
« Reply #9 on: August 12, 2017, 09:54:27 pm »
Have you tried simply rebooting ?

Is the torrent app still attempting to write to it ?

This might tell you what's keeping the device busy
Code: [Select]
sudo lsof | grep EXT-01
or maybe
Code: [Select]
sudo lsof | grep sdd1
« Last Edit: August 12, 2017, 10:01:21 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 2002
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
Re: Unable to change permission of a drive or it's contents
« Reply #10 on: August 12, 2017, 11:11:17 pm »
It was TOR. I'm just going to stop TOR and go back to previous commands you posted.
Ktorrent is not running as it was failing to rite to I stopped it.

I'll come back with the results in a min...

Kubuntu 14.04LTS 64bit|KDE 4.14.13|QT 4.8.6|Linux 4.2.0-42-generic|M5A78L-M USB3|BIOS 2101|AMD PhenomII X4 965 3400+|P8H77-I Motherboard NIC|32.0GB PC3-10600 1333Mhz CL9 ( 9-9-9-24 ) DDR3

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 2002
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
Re: Unable to change permission of a drive or it's contents
« Reply #11 on: August 13, 2017, 12:04:36 am »
Looks like it's sorted, I'm currently changing permission of EXT-01.
Thanks Mark :-)

Kubuntu 14.04LTS 64bit|KDE 4.14.13|QT 4.8.6|Linux 4.2.0-42-generic|M5A78L-M USB3|BIOS 2101|AMD PhenomII X4 965 3400+|P8H77-I Motherboard NIC|32.0GB PC3-10600 1333Mhz CL9 ( 9-9-9-24 ) DDR3

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17264
  • Karma: 436
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Unable to change permission of a drive or it's contents
« Reply #12 on: August 13, 2017, 12:26:46 am »
You're welcome :)
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 2002
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
Re: Unable to change permission of a drive or it's contents
« Reply #13 on: August 13, 2017, 11:43:23 am »
I left Ktorrent running last night and the drive permission problem is back, unable to write, also root is unable to delete (after opening Dolphin as root - sudo dolphin).

Kubuntu 14.04LTS 64bit|KDE 4.14.13|QT 4.8.6|Linux 4.2.0-42-generic|M5A78L-M USB3|BIOS 2101|AMD PhenomII X4 965 3400+|P8H77-I Motherboard NIC|32.0GB PC3-10600 1333Mhz CL9 ( 9-9-9-24 ) DDR3

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 2002
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
Re: Unable to change permission of a drive or it's contents
« Reply #14 on: August 13, 2017, 11:57:13 am »
Code: [Select]
sudo fsck /dev/sdd1
(click to show/hide)

I bet the drive's failing :-(

Kubuntu 14.04LTS 64bit|KDE 4.14.13|QT 4.8.6|Linux 4.2.0-42-generic|M5A78L-M USB3|BIOS 2101|AMD PhenomII X4 965 3400+|P8H77-I Motherboard NIC|32.0GB PC3-10600 1333Mhz CL9 ( 9-9-9-24 ) DDR3

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal