user #99 copying files from external HD.

captain-sensible

Well-Known Member
Credits
14,907
ok with that you can create the mount point - lets do it manually lets just mount first , then try to get it in write


just done the same scenario on my laptop :

Code:
[[email protected]:~]$ sudo mount /dev/sdb1  /media/$USER/stuff             (09-29 09:19)
mount: /media/andrew/stuff: mount point does not exist.
[[email protected]:~][32]$ sudo mkdir /media/$USER/stuff                    (09-29 09:20)
[[email protected]:~]$ sudo mount /dev/sdb1  /media/$USER/stuff             (09-29 09:21)
[[email protected]:~]$ cd /media/$USER/stuff                                (09-29 09:21)
[[email protected]:andrew/stuff]$ ls                                        (09-29 09:21)
AAArchLaptop/       etc etc

on my system /media/$USER exists //$USER = andrew
so you can use $USER instead of typing your name on your system and on here , when you are in nome root mode

sudo mkdir /media/$USER/stuff creates a directory for contents of usb/ext hd to mount

/dev/sdb1 is my partition on /dev/sdb



so yours should be :

Code:
from normal user $:

sudo mkdir /media/$USER/stuff
sudo mount /dev/sdg2/      /media/$USER/stuff
Here we are assigning the actual HD partition to be mounted to "stuff" at /media/yourUsername so name of Old "space" Stuff doesn't need to come into it
naviage with file manager to your username/stuff and see if anything is there

if you can get it mounted then:

1) we have confirmed the name in terms of udev or whatever- that might change if you add another usb. hd or remove anything
2) if you can mount it, at least we have mounted the right disk.

Next step will be to try to forece a re-mount with write permissions
 
Last edited:


captain-sensible

Well-Known Member
Credits
14,907
Ok, I''l pull all the extra internal HD's and externals except the problems one and report back here later.

sudo mount -t hfpsplus -o remount,force,rw /media/MyName/Old Stuff

returns 'mount: Stuff: mount point does not exist.'

I have only 2 disks now, the internal SSD and an external 5Tb USB disk from the Mac called 'Old Stuff'.
ok on linux best to never have gaps in names
 

stratblue

Member
Credits
368
Ok is that a Space between Old and Stuff or an underscore not showing or something else
ok with that you can create the mount point - lets do it manually lets just mount first , then try to get it in write


just done the same scenario on my laptop :

Code:
[[email protected]:~]$ sudo mount /dev/sdb1  /media/$USER/stuff             (09-29 09:19)
mount: /media/andrew/stuff: mount point does not exist.
[[email protected]:~][32]$ sudo mkdir /media/$USER/stuff                    (09-29 09:20)
[[email protected]:~]$ sudo mount /dev/sdb1  /media/$USER/stuff             (09-29 09:21)
[[email protected]:~]$ cd /media/$USER/stuff                                (09-29 09:21)
[[email protected]:andrew/stuff]$ ls                                        (09-29 09:21)
AAArchLaptop/       etc etc

on my system /media/$USER exists //$USER = andrew
so you can use $USER instead of typing your name on your system and on here , when you are in nome root mode

sudo mkdir /media/$USER/stuff creates a directory for contents of usb/ext hd to mount

/dev/sdb1 is my partition on /dev/sdb



so yours should be :

Code:
from normal user $:

sudo mkdir /media/$USER/stuff
sudo mount /dev/sdg2/      /media/$USER/stuff
Here we are assigning the actual HD partition to be mounted to "stuff" at /media/yourUsername so name of Old "space" Stuff doesn't need to come into it
naviage with file manager to your username/stuff and see if anything is there

if you can get it mounted then:

1) we have confirmed the name in terms of udev or whatever- that might change if you add another usb. hd or remove anything
2) if you can mount it, at least we have mounted the right disk.

Next step will be to try to forece a re-mount with write permissions
Maybe I have misunderstood but the disk is mounted already, the problem is that I can't copy files from it to the internal drive. I can see it the file browser, check the file permissions etc, is that the meaning of 'mounted'?
 

captain-sensible

Well-Known Member
Credits
14,907
Maybe I have misunderstood but the disk is mounted already, the problem is that I can't copy files from it to the internal drive. I can see it the file browser, check the file permissions etc, is that the meaning of 'mounted'?
yes but i wanted to get it confirmed which dev which we have done and preferably with a mount point we define ourselves , so we know exactly what we are playing with i don't like mount point with a gap in it


but try

sudo mount -t hfsplus -o remount,force,rw /media/$USER/'Old Stuff'
 

stratblue

Member
Credits
368
yes but i wanted to get it confirmed which dev which we have done and preferably with a mount point we define ourselves , so we know exactly what we are playing with i don't like mount point with a gap in it
I changed the name by plugging it back into the mac so it's now called OldStuff.
I found a folder with a No Entry sign on it, on opening it I was prompted for my password twice, I looked at some of the files, they all had user 99, some could be viewed, some not. Some had functional drop down menus, others were greyed out.
 

stratblue

Member
Credits
368
Is post 21 where I should be looking? It might need some clarification...
 

stratblue

Member
Credits
368
I have just been reading about the su command, there was something similar on the Mac. Is it possible just to log in as an end of level boss character, change all the permissions that I need and job done?
 

stratblue

Member
Credits
368
yes but i wanted to get it confirmed which dev which we have done and preferably with a mount point we define ourselves , so we know exactly what we are playing with i don't like mount point with a gap in it


but try

sudo mount -t hfsplus -o remount,force,rw /media/$USER/'Old Stuff'
Ok done that.
 

captain-sensible

Well-Known Member
Credits
14,907
I have just been reading about the su command, there was something similar on the Mac. Is it possible just to log in as an end of level boss character, change all the permissions that I need and job done?
with sudo my understanding is that what can actually be done depends on how the user is set up in /etc/sudoers file- i may be wrong . But when i set up my account on sudoers i added myslef to "wheel"

you can also see what happens if you type "sudo su" at the command line and if you get a # at command prompt
 

stratblue

Member
Credits
368

captain-sensible

Well-Known Member
Credits
14,907
you would navigate to /media/yourUsrname using dolphin or other file manager or

give output of : ls /media/yourUsrname
if you see 'OldStuff' then

ls /media/yourUsername/OldStuff and see if there are any files
 

stratblue

Member
Credits
368
Hey Captain.

Tentatively, I think I have resolved the issue, I looked at the permissions on OldStuff on the Mac and 'Everyone: Read only' was missing from the problems files. Once I changed that I could copy them on the Linux box no problem. Thank you for your help!

Cheers.
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Members online


Top