LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-21-2012, 12:41 PM   #1
OliverSarmy
LQ Newbie
 
Registered: Aug 2012
Posts: 8

Rep: Reputation: Disabled
newbie mount error?


I've just bought a NAS, and wanted to backup my linux server to it and after much fiddling around I've succeeded with that. Along the way I tried all sorts of different things and I don't understand if I've done something wrong or not.

As a result of trying to mount the NAS disk, a directory has been created on my linux machine, like this:-

/home/<my username>/.gfs on W.X.Y.Z
(where W.X.Y.Z is the IP address of the NAS)

Is this the normal result of mount?

Also, should there be files within that directory? (I see them being copied from there when using rsync)

Thanks in advance for any help.
 
Old 08-21-2012, 02:02 PM   #2
mpapet
Member
 
Registered: Nov 2003
Location: Los Angeles
Distribution: debian
Posts: 548

Rep: Reputation: 72
Your message doesn't have enough information to help you.

post the output of "mount -l" as root or use sudo if that's how your distro works. How is the NAS device formatted?

What was the stanza used to mount the share?
 
Old 08-22-2012, 03:16 AM   #3
OliverSarmy
LQ Newbie
 
Registered: Aug 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
the output of 'mount -l' is

Code:
/dev/mapper/vg_nrg2011-lv_root on / type ext4 (rw) [_Fedora-14-i686-]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda1 on /boot type ext4 (rw)
/dev/mapper/vg_nrg2011-lv_home on /home type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
I've no idea what sudo is?

The NAS is formatted as ext4 - tho I'm not sure if that's of any relevance, because the 'rouge directory' (if it is that) has been created on the linux server, and then is copied by rsync to the NAS (which says to me it must be a physical directory and not a mount point. But then again I don't understand mount so perhaps I've drawn a wrong conclusion).

Last edited by OliverSarmy; 08-22-2012 at 03:18 AM.
 
Old 08-22-2012, 03:18 AM   #4
OliverSarmy
LQ Newbie
 
Registered: Aug 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
I've just realised that there's a slight error in my first post.

The directory that's been created is actually this (with a colon on the end):-

/home/<my username>/.gfs on W.X.Y.Z:
(where W.X.Y.Z is the IP address of the NAS)
 
Old 08-22-2012, 03:26 AM   #5
SandsOfArrakis
Member
 
Registered: Apr 2012
Location: Netherlands
Distribution: Linux Mint 21.1 Vera / Zorin Pro 6.2
Posts: 155

Rep: Reputation: Disabled
Nice description of the sudo command

http://linux.about.com/od/commands/l/blcmdl8_sudo.htm

Basically needed to allow users to change their system.
 
Old 08-22-2012, 03:31 AM   #6
OliverSarmy
LQ Newbie
 
Registered: Aug 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by SandsOfArrakis View Post
Nice description of the sudo command

http://linux.about.com/od/commands/l/blcmdl8_sudo.htm

Basically needed to allow users to change their system.
thanks - but not needed by me. If I have need to do stuff as root I log in as root in one way or another.

Now, back to my problem...?
 
Old 08-22-2012, 02:50 PM   #7
mpapet
Member
 
Registered: Nov 2003
Location: Los Angeles
Distribution: debian
Posts: 548

Rep: Reputation: 72
Quote:
Originally Posted by OliverSarmy View Post
The NAS is formatted as ext4 - tho I'm not sure if that's of any relevance, because the 'rouge directory' (if it is that) has been created on the linux server, and then is copied by rsync to the NAS (which says to me it must be a physical directory and not a mount point. But then again I don't understand mount so perhaps I've drawn a wrong conclusion).
Judging by your fdisk -l output my estimation is your NAS isn't mounted. Rsync is a client-server solution, no disk mounting done by rsync.

Presumably the NAS device has some way to share it's storage either through NFS, iSCSI, SAMBA share. What method does your NAS device support? (ex. NFS)
 
Old 08-23-2012, 02:05 AM   #8
OliverSarmy
LQ Newbie
 
Registered: Aug 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by mpapet View Post
Judging by your fdisk -l output my estimation is your NAS isn't mounted. Rsync is a client-server solution, no disk mounting done by rsync.

Presumably the NAS device has some way to share it's storage either through NFS, iSCSI, SAMBA share. What method does your NAS device support? (ex. NFS)
Yes, I know my NAS isn't mounted. And yes, I (now) know that rsync doesn't require a remote disk mounting outside of rsync. And nothing of my NAS set-up is relevant for the question I'm wanting an answer to.

(On my linux server; not my NAS) I'm wanting to know what the directory ...

/home/<my username>/.gfs on W.X.Y.Z:
(where W.X.Y.Z is the IP address of the NAS)

...is. And I'm wanting to know if it's safe to remove, and how I can remove it as...

rm -rf "./home/<my username>/.gfs on W.X.Y.Z:"

... doesn't succeed in removing it.

Last edited by OliverSarmy; 08-23-2012 at 02:08 AM.
 
Old 08-24-2012, 12:57 AM   #9
mpapet
Member
 
Registered: Nov 2003
Location: Los Angeles
Distribution: debian
Posts: 548

Rep: Reputation: 72
Ok,

Try this then. Is there anything in the directory now? Who owns the directory? ex. ls -lh ./whatever

Why are you so focused on one directory?

Last edited by mpapet; 08-24-2012 at 01:10 AM.
 
Old 08-24-2012, 02:01 AM   #10
OliverSarmy
LQ Newbie
 
Registered: Aug 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by mpapet View Post
Why are you so focused on one directory?
because I'm aware I messed up, and I'm aware that the directory has more than 50GB of data within it that shouldn't be there - and I want to put right what I messed up.


Quote:
Originally Posted by mpapet View Post
Ok,
Try this then. Is there anything in the directory now? Who owns the directory? ex. ls -lh ./whatever
Yes, there's lots of stuff in the directory - I see it being transfered to my NAS when I do an rsync of '/home/' to my NAS (I haven't as yet finished an rsync [I keep cancelling it] because of that data being there).

The owner is <my username> (the same username that is within "/home/<my username>/.gfs on W.X.Y.Z:").

If I try to move into that directory to try and see its contents with "cd "/home/<my username>/.gfs on W.X.Y.Z:" " it says no such file or directory.

(I'm away for a few days now. I'll pick up on this on Monday or Tuesday).
 
Old 08-24-2012, 11:48 AM   #11
mpapet
Member
 
Registered: Nov 2003
Location: Los Angeles
Distribution: debian
Posts: 548

Rep: Reputation: 72
Quote:
Originally Posted by OliverSarmy View Post
If I try to move into that directory to try and see its contents with "cd "/home/<my username>/.gfs on W.X.Y.Z:" " it says no such file or directory.
1. You didn't mess up.
2. if you are on the command line, the cd stanza would be "cd /home/<my username>/.gfs\ on\ W.X.Y.Z\:" no quotes. You should be able to do "cd .gfs<tab>" and then auto-complete should escape it out for you.
3. Are you using rsync on the command line or a gui-helper app? Or maybe an rsync-like application? If it's rsync proper, then I'd let rsync run to conclusion and see what happens. What's the worst that could happen? A home partition gets full and the OS keeps running. No big deal.

I don't ever recall having this issue and I use rsync for biiiig jobs from one near-full expensive array to other storage. The way I do it is mount the remote storage locally, then use the path to that device instead of rsync's server though.

Last edited by mpapet; 08-24-2012 at 11:56 AM.
 
Old 08-28-2012, 08:27 AM   #12
OliverSarmy
LQ Newbie
 
Registered: Aug 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
1. oh, I did.

2. thanks, but that doesn't work.

3. As I'm actually successfully using rsync now, on the command line. But I tried a variety of GUI interfaces to it, all without success (their failure was probably my doing).

I've just started rsync running now, so that it works thru that rouge directory. And yep, the worst that could happen is a full disk - which is the last thing I'm wanting, seeing as this new NAS is cos I was filling the disk with my previous (and not-adequate) backup regime.

I guess you don't recall having this issue cos you're not a linux numptie like me who doesn't know what he's doing with rsync, mount, and lots of other stuff .... and while I'm a linux numptie, I've worked with computers long enough to know that I messed up and created this as a real directory on my linux machine.
 
Old 08-30-2012, 02:57 AM   #13
OliverSarmy
LQ Newbie
 
Registered: Aug 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
I've now managed to access that rouge directory, and delete the 50GB+ of content that was there. So I've got it sorted as good as I need to.

Thanks for the suggestions here all the same.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to NFS mount .ERROR (mount: RPC: Remote system error - Connection timed) pabba Linux - Networking 3 05-06-2010 12:09 PM
manual mount cifs works but srcipt mount cifs has mount error (13): Permission denied CADIT Linux - Newbie 6 11-20-2009 02:48 PM
Why unable to mount my nas in fstab get "mount error(5) Input/output error fi5ban Linux - Networking 0 04-01-2009 10:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration