Discussion:
Accessing remote partition
(too old to reply)
Davey
2024-02-01 12:21:48 UTC
Permalink
I have a laptop that is my daily working PC, and a desktop that serves
as the CCTV Zoneminder host, daily file backup device, etc. It has three
partitions. My daily backup uses rsync, and copies any changed files on
the laptop to a partition on the desktop called 'samsung'. Both PCs use
Ubuntu, of differing ages.
Using the standard ssh connection to the desktop goes automatically to
the partition with zoneminder, called 'Davey'. That's what I want to
happen.
Occasionally, I need to do some file manipulation on the 'samsung'
partition, but I cannot find how to access that partition from the
laptop. The rsync language (---:/samsung/) only works with rsync, and
outside rsync, all my attempts to change the working active partition
fail. Either it cannot be done, or it can, but I don't know the right
command. I have searched the Ubuntu Wiki, with no success. If the only
way is to go physically to the desktop and mount the partition from
there, then so be it.
If the answer is easy, great, but I can't find it. I see references to
sshfs, but I would need to install and configure that, and I am hoping
to do it with what is already available. The desktop does not talk to
the internet.
Any help very welcome. Hopefully the answer is simple.
--
Davey.
Theo
2024-02-01 17:22:08 UTC
Permalink
Post by Davey
I have a laptop that is my daily working PC, and a desktop that serves
as the CCTV Zoneminder host, daily file backup device, etc. It has three
partitions. My daily backup uses rsync, and copies any changed files on
the laptop to a partition on the desktop called 'samsung'. Both PCs use
Ubuntu, of differing ages.
Using the standard ssh connection to the desktop goes automatically to
the partition with zoneminder, called 'Davey'. That's what I want to
happen.
Occasionally, I need to do some file manipulation on the 'samsung'
partition, but I cannot find how to access that partition from the
laptop. The rsync language (---:/samsung/) only works with rsync, and
outside rsync, all my attempts to change the working active partition
fail. Either it cannot be done, or it can, but I don't know the right
command. I have searched the Ubuntu Wiki, with no success. If the only
way is to go physically to the desktop and mount the partition from
there, then so be it.
If the answer is easy, great, but I can't find it. I see references to
sshfs, but I would need to install and configure that, and I am hoping
to do it with what is already available. The desktop does not talk to
the internet.
Any help very welcome. Hopefully the answer is simple.
Run:

$ df

It will give you a list of partitions and the places they are mounted, as
well as their size and free space (in blocks, if you add -h it gives them in
GB). [df = 'disc free', -h for 'human']

The mount point is what you need to use for rsync, ie probably something
like:

rsync afile mypc:/media/yourusername/Davey/
or
scp afile mypc:/media/yourusername/Davey/

The default location ('mypc:') goes to your home directory, wherever that is
located.

If you SSH in to run commands, you'd need to:

cd /media/yourusername/Davey

to get in the right place

Theo
Davey
2024-02-01 19:11:09 UTC
Permalink
On 01 Feb 2024 17:22:08 +0000 (GMT)
Post by Theo
Post by Davey
I have a laptop that is my daily working PC, and a desktop that
serves as the CCTV Zoneminder host, daily file backup device, etc.
It has three partitions. My daily backup uses rsync, and copies any
changed files on the laptop to a partition on the desktop called
'samsung'. Both PCs use Ubuntu, of differing ages.
Using the standard ssh connection to the desktop goes automatically
to the partition with zoneminder, called 'Davey'. That's what I
want to happen.
Occasionally, I need to do some file manipulation on the 'samsung'
partition, but I cannot find how to access that partition from the
laptop. The rsync language (---:/samsung/) only works with rsync,
and outside rsync, all my attempts to change the working active
partition fail. Either it cannot be done, or it can, but I don't
know the right command. I have searched the Ubuntu Wiki, with no
success. If the only way is to go physically to the desktop and
mount the partition from there, then so be it.
If the answer is easy, great, but I can't find it. I see references
to sshfs, but I would need to install and configure that, and I am
hoping to do it with what is already available. The desktop does
not talk to the internet.
Any help very welcome. Hopefully the answer is simple.
$ df
It will give you a list of partitions and the places they are
mounted, as well as their size and free space (in blocks, if you add
-h it gives them in GB). [df = 'disc free', -h for 'human']
The mount point is what you need to use for rsync, ie probably
rsync afile mypc:/media/yourusername/Davey/
or
scp afile mypc:/media/yourusername/Davey/
The default location ('mypc:') goes to your home directory, wherever
that is located.
cd /media/yourusername/Davey
to get in the right place
Theo
Thanks for that. I'll try tomorrow. My rsync routines work fine, it's
the moving around amongst the remote partitions that I can't get.
Hopefully, your suggestions will work for me. I will report progress.
Your last idea sounds appropriate.
--
Davey.
Davey
2024-02-02 16:33:19 UTC
Permalink
On 01 Feb 2024 17:22:08 +0000 (GMT)
Post by Theo
$ df
It will give you a list of partitions and the places they are
mounted, as well as their size and free space (in blocks, if you add
-h it gives them in GB). [df = 'disc free', -h for 'human']
Check, worked as described.
Post by Theo
The mount point is what you need to use for rsync, ie probably
rsync afile mypc:/media/yourusername/Davey/
or
scp afile mypc:/media/yourusername/Davey/
The default location ('mypc:') goes to your home directory, wherever
that is located.
cd /media/yourusername/Davey
to get in the right place
This gave a 'No such file or directory' response, when trying to get
to 'samsung' partition.

However, simply typing 'cd /samsung' worked. I would have sworn that I
tried that yesterday or the day before.

Whatever, your prompts have got me where I need to be, many thanks for
that.
--
Davey.
Loading...