I have a PC with three hard disks, with OpenSUSE Leap installed on one of them and two others partitioned as HFS+. I can access the two Mac drives after entering the password, but the problem is only some files on them are accessible. Others have a lock icon on them and are not even available for reading.
On Fri 22 Apr 2016 08:56:01 AM CDT, igor333 wrote:
Hi all,
I have a PC with three hard disks, with OpenSUSE Leap installed on one
of them and two others partitioned as HFS+. I can access the two Mac
drives after entering the password, but the problem is only some files
on them are accessible. Others have a lock icon on them and are not even
available for reading.
Hi
Open the folder in a terminal and you will see different
ownership/groups and permissions.
For example via Tumbleweed I see my user uid on linux is 1000, on hfs+
is 501, likewise linux group is users, hfs+ is cdrom…
On hfs+ permissions on for example Music is
drwx------ 1 501 cdrom 23 Feb 1 07:36 Music
So only the owner (user 501) can access…
What is your end goal, sharing the files or recovering the files?
–
Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
openSUSE Leap 42.1|GNOME 3.16.2|4.1.20-11-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!
Hi
Use the command ls -lah if you run your copy command as root user with the -ar option you will be fine, just need to reset ownership of files and directory on the linux partition.
For example here I’m copying just one file over;
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 111.8G 0 disk
├─sda1 8:1 0 200M 0 part /boot/efi
├─sda2 8:2 0 57G 0 part <-- osX
├─sda3 8:3 0 619.9M 0 part
├─sda4 8:4 0 30G 0 part /
├─sda5 8:5 0 20G 0 part /data
└─sda6 8:6 0 4G 0 part [SWAP]
mount
/dev/sda2 on /run/media/user/disk0s2 type hfsplus (ro,nosuid,nodev,relatime,umask=22,uid=0,gid=0,nls=utf8,uhelper=udisks2)
/dev/sda2 on /var/run/media/user/disk0s2 type hfsplus (ro,nosuid,nodev,relatime,umask=22,uid=0,gid=0,nls=utf8)
su -
Password:
mizz-piggy:~ # ls -lah /run/media/user/disk0s2/Users/user/Music/Green\ Day\ -\ American\ Idot/
total 23M
drwxr-xr-x 1 501 cdrom 5 Jan 19 08:53 .
drwx------ 1 501 cdrom 23 Feb 1 07:36 ..
-rw-rw-r-- 1 501 cdrom 5.6M Jan 19 08:53 01 - Greenday - American Idiot.mp3
-rw-rw-r-- 1 501 cdrom 8.4M Jan 19 08:53 04 - Greenday - Boulevard of Broken Dreams.mp3
-rw-rw-r-- 1 501 cdrom 8.7M Jan 19 08:53 11 - Greenday - Wake Me Up When September Ends.mp3
mizz-piggy:~ # cp -ar /run/media/user/disk0s2/Users/user/Music/Green\ Day\ -\ American\ Idot/04\ -\ Greenday\ -\ Boulevard\ of\ Broken\ Dreams.mp3 /home/user/Music/
mizz-piggy:~ # ls -lah /home/user/Music/04\ -\ Greenday\ -\ Boulevard\ of\ Broken\ Dreams.mp3
-rw-rw-r-- 1 501 cdrom 8.4M Jan 19 08:53 /home/user/Music/04 - Greenday - Boulevard of Broken Dreams.mp3
mizz-piggy:~ # chown user:users /home/user/Music/04\ -\ Greenday\ -\ Boulevard\ of\ Broken\ Dreams.mp3
mizz-piggy:~ # ls -lah /home/user/Music/04\ -\ Greenday\ -\ Boulevard\ of\ Broken\ Dreams.mp3
-rw-rw-r-- 1 user users 8.4M Jan 19 08:53 /home/malcolml/Music/04 - Greenday - Boulevard of Broken Dreams.mp3
I guess you could use the file manager GUI as root user to drag’n’drop, me I prefer command line and wildcards