Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi:
I would like to back up some data files on an Ubuntu install to a WinXP machine and preserve the date/time stamp of the files. I can use the copy command to make a copy between drives in the same machine after mounting the second drive but don't know how to either mount the networked drive or name in for the copy command. If I use the graphic interface ( Nautilus ) the time/date stamps for the files are not preserved.
To go copy from one drive to another in the same machine I use:
sudo mount -t ext3 /dev/sdb1 /backup
then:
sudo cp -r -p /var/www/twiki /backup/twiki
If I view the directory on the networked machine, with Nautilus, where I want to copy files to it displays:
smb://htpc-wmce/backup%20(d)/Twiki
In the Nautilus file browser location area. Can I Mount this networked drive and copy to it or can I make Nautilus copy and preserve the time/date stamp?
I can use cp with the -p toggle ok within the same machine but do not know how to specify the drive/directory on the networked machine. I am not familiar with rsync but it looks like I will still need to learn how to name the server where I want to send my files.
Thanks for the initial replies.
Scott
I think SBFree is in the same boat as me. Nautilus/Gnome will open server shares graphically but does not seem to mount them within the file system so that they can be found and used within the terminal. Any advice would be gratefully recieved. So far i have learnt that I need to use smbmount but I am struggling to resolve my share name.
currently the command should be:
sudo smbmount //server/share /mountpoint/directory (then some options and password stuff that I'm still figuring out)
Once that works then cp/scp from the terminal will work nicely (as will my problem of using Picasa to search my network drive for photos)
My current problem is that although clicking through Nautilus will nicely mount an external drive attached via a BT Homehub, when I use smbmount to get it within the filesystem so I can find it I get the error which is paraphrased along the lines of "no ICP address". If I give the IP address of my Homehub the thing just times out without connecting.
Any clues? Or does Nautilus secretly mount the drive deep within the filesystem in a non-obvious place making the whole thing very straightforward if I could only get the right directory to reference?
(Using a wireless network setup on a laptop, with Ubuntu 9.04)
I managed to solve what I wanted by adding winbind to my system and amending another file (which I think was nssconf but I may be wrong) to add WINS to the lookup mechanisms. I have lost the website link but will post when I find it again.
This enabled me to find my share without having to resort to IP addresses - which aren't clear when you're trying to connect to the BT HomeHub. I was then able to add it to fstab so that it is now automaticallly mounted at startup.
(My Fstab line reads:
//Thomson/BT_7G /media/lacie smbfs guest,rw,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0)
I still can't get any of the linux tools to preserve date and time (despite using the relevant options) which seems to be down to the way CIFS/SAMBA work - which have been built from the ground up to approximate the Windows networking system as best as the developers can guess at. I can get the windows copy function to preserve date and time in that environment but my reason for using linux is that the tools are better (especially rsync for updating files).
Anybody know any workaround to get rsync to be able to update modified dates and times? Or is there a similar tool that is good for updating files/directories (I have a massive 55GB directory of photos I want to copy onto a rather slow share (My share is a FAT32 USB drive attached to my wireless network via a BTHomeHub) which I want to do in several sessions rather than leave my laptop powered up for a week or more.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.