Page 1 of 1

My Book name space problem

Posted: 17 Sep 2010, 00:29
by viking60
I am green here but this My Book auto mounts nicely in Arch. Under df it looks like this:

Code: Select all

/dev/sdd1            1952827388    147424 1952679964   1% /media/My Book

The disk works perfectly fine in the GUI but it can translate the space in the name - I can not :Doh:

cd /media/My Book
does not work because of the space in the name.
How do I write the name?
Or how can I rename it?

Re: My Book name space problem  Topic is solved

Posted: 17 Sep 2010, 00:37
by viking60
viking60 wrote:The disk works perfectly fine in the GUI but it can translate the space in the name - I can not :Doh:

How do I write the name?


I found out :dance:

Code: Select all

cd /media/My?Book

Will work

Re: My Book name space problem SOLVED

Posted: 17 Sep 2010, 02:08
by dedanna1029

Code: Select all

ls -R '/media/My Book'


Code: Select all

chown -R dedanna: '/media/My Book'


I have one too. It's a matter of putting a single quote around it, just like any other path name that has spaces... :mrgreen:

Re: My Book name space problem SOLVED

Posted: 17 Sep 2010, 11:13
by viking60
I use it with rsync and ssh from my box to the server where the My Book is connected.

Code: Select all

rsync --delete --size-only -azvv -e ssh /home/thomas thomas@viking60-server:/media/My?Book/thomas-pc_backup

Testing it "your way" now.....

Code: Select all

rsync --delete --size-only -azvv -e ssh /home/thomas thomas@viking60-server:'/media/My Book/thomas-pc_backup'
opening connection using: ssh -l thomas viking60-server rsync --server -vvlogDtprze.isf --delete --size-only . "/media/My Book/thomas-pc_backup"
thomas@viking60-server's password:
sending incremental file list
rsync: mkdir "/media/My" failed: Permission denied (13)
rsync error: error in file IO (code 11) at main.c(577) [Receiver=3.0.7]
rsync: connection unexpectedly closed (9 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(601) [sender=3.0.7]

:snooty: Nope it will not work in this context.

Anyway when ' ' does not work ? will, so this is solved and we are all confused at a higher level. +1

Re: My Book name space problem SOLVED

Posted: 17 Sep 2010, 18:06
by dedanna1029
viking60 wrote:so this is solved and we are all confused at a higher level. +1

LMAOOOOOOOOO Yup!

That's great. I like that

Re: My Book name space problem SOLVED

Posted: 04 Jul 2011, 09:35
by dedanna1029
Oh gods, now it's my turn with this. Going from one external usb drive to another. I'm so glad you posted this thread. It wasn't working with the single quotes, like you said, replaced with a ? and got it (yeah, this time it didn't mount as /media/My_Book, like it usually does; it left a space):

Code: Select all

rsync -avvh /media/FreeAgent_Drive/Albums/ /media/My?Book/Albums/


I'm going to let it run overnight - I have to transfer my music library to a larger drive (a 1Tb); the rest of what's on the 1 Tb drive (miscellaneous "stuff") will go back to the Free Agent Drive tomorrow. Wish me luck. This transfer will be 320 Gbs, the other will be some 500 Gbs. Oh boy.

Thanks again.

Re: My Book name space problem SOLVED

Posted: 04 Jul 2011, 13:53
by viking60
Great stuff! I always like stories about the tips actually working. It helps in documenting the practical use of them. And good luck! :-D
I often go back here to ti find solutions to my problems. This is becoming a valuable database for stuff like that.

Re: My Book name space problem SOLVED

Posted: 04 Jul 2011, 16:36
by dedanna1029
Yep. Woke up about 5 hours from the time I went to sleep, and am double-checking that it got it all on the first operation now. It was done.

This is a good place to write stuff down.

Now, if one can please tell me why wget operations always fall short, I'd be grateful. It seems to go about 2/3 of the way, then quits, even though you've told it to get the whole way through (yes I have already started another thread on this).