*nix Thread, Simple question (you might think) in Technical; Ok to those in the know this is probably the simplest thing in the world but the answer is eluding ...
22nd March 2011, 09:49 AM #1
Simple question (you might think)
Ok to those in the know this is probably the simplest thing in the world but the answer is eluding me.
I have a linux box with a mounted windows share on called say "share1"
i can get to in Gnome, it says its mounted and all is good
Question: how do i get to it in terminal? Basically i want to copy some stuff from it using a scripted command line.
Thanks in advance
IDG Tech News
22nd March 2011, 09:51 AM #2
which version of linux are you using?
22nd March 2011, 09:56 AM #3
Open your favorite terminal....btw this works in gnome and kde.
[user@localhost user]$ cd /mnt1/ <-as user cd yourself to the mnt1 folder and become root to create directory
[user@localhost mnt1]$ su
[root@localhost mnt1]# mkdir copyfile <- this created a directory in the mnt1 folder
[root@localhost mnt1]# ls /mnt1/ <-this command listed all my directories the mnt folder
[root@localhost mnt1]# mount /dev/sda1 /mnt1/copyfile <-this is the command to mount copyfile folder so you can copy between mounts
Log into windows, drop what you need into the copyfile folder.
[root@localhost mnt1]# ls copyfile <-lists everything there.
then i just copied it all to my home folder and i was done!
This worked under Fedora 14.
in terminal type as root: gedit /etc/fstab and NOW YOU CAN ADD THIS LINE TO FSTAB to auto mount it:
Code: /dev/sda1 /mnt1/copyfile vfat noauto,users,rw,umask=0 0 0
22nd March 2011, 09:57 AM #4
Debian, Installed about 1 half years ago
22nd March 2011, 04:50 PM #5
look in /etc/fstab and find out where you mounted the share to.
23rd March 2011, 04:11 PM #6
In modern Gnome remote Windows shares are mounted with gvfs, which doesn't interact with the real filesystem so it won't show up in /media or in /etc/fstab. gvfs-fuse fixes that, and it's packaged in gvfs-bin.
Originally Posted by danbuntu
Older Gnome uses gnome-vgs, and if that's the case you're SOL.
Try looking in ~/.gvfs first, it might have just done the Right Thing™.
Last edited by powdarrmonkey; 23rd March 2011 at 04:17 PM.
30th March 2011, 12:39 PM #7
- Rep Power
Not sure how your windows shares appear.
From a command line, does 'mount' show the file system you have mounted ?
If so, and if 'share1' is the only mount named like that, from a script
cd `mount | grep share1 | cut -d' ' -f3`
should put your script in that directory, in preparation for whatever copy or other commands you want to run.
By rocknrollstar in forum Windows
Last Post: 22nd May 2011, 06:52 PM
By M0MST in forum Windows
Last Post: 25th November 2010, 12:02 PM
By Blue_Cookeh in forum Licensing Questions
Last Post: 23rd June 2010, 12:42 AM
By Little-Miss in forum Jokes/Interweb Things
Last Post: 7th January 2009, 12:59 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)