My Book name space problem Topic is solved

Need help with your Linux distro? All questions are good - not all answers are -but we try

Moderator: jkerr82508

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

My Book name space problem

Postby viking60 » 17 Sep 2010, 00:29

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?
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: My Book name space problem  Topic is solved

Postby viking60 » 17 Sep 2010, 00:37

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
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8784
Joined: 14 Mar 2010, 20:29
Contact:

Re: My Book name space problem SOLVED

Postby dedanna1029 » 17 Sep 2010, 02:08

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:
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: My Book name space problem SOLVED

Postby viking60 » 17 Sep 2010, 11:13

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
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8784
Joined: 14 Mar 2010, 20:29
Contact:

Re: My Book name space problem SOLVED

Postby dedanna1029 » 17 Sep 2010, 18:06

viking60 wrote:so this is solved and we are all confused at a higher level. +1

LMAOOOOOOOOO Yup!

That's great. I like that
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
dedanna1029
Sound-Berserk
Posts: 8784
Joined: 14 Mar 2010, 20:29
Contact:

Re: My Book name space problem SOLVED

Postby dedanna1029 » 04 Jul 2011, 09:35

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.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: My Book name space problem SOLVED

Postby viking60 » 04 Jul 2011, 13:53

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.
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8784
Joined: 14 Mar 2010, 20:29
Contact:

Re: My Book name space problem SOLVED

Postby dedanna1029 » 04 Jul 2011, 16:36

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).
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html


Return to “Help”