LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 01-28-2008, 05:11 PM   #1
dM3nt0r
LQ Newbie
 
Registered: Jan 2008
Posts: 6

Rep: Reputation: 0
Help with file transfer question


Im very new to Linux

Im running Topogolinux and I am wondering how to transfer files Ive dl'd from my Linux drive to my windows drive.
My windows drive is mounted under mnt/windows and every time I try to copy a file it says I do not have permission to write to the folder.
Any help or tips would be great.
I love to dl and Ktorrent runs faster than utorrent thats why I want to stick with linux.
 
Old 01-28-2008, 05:14 PM   #2
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
Do you have an entry in your fstab for the partition? If so, what does it say? If not, how (and as what user) did you mount it? What filesystem is it? As what user are you trying to copy/move files?
 
Old 01-28-2008, 05:19 PM   #3
dM3nt0r
LQ Newbie
 
Registered: Jan 2008
Posts: 6

Original Poster
Rep: Reputation: 0
fstab??

is fstab like a permission sheet or something?
Im trying to transfer .avi files
 
Old 01-28-2008, 05:23 PM   #4
dM3nt0r
LQ Newbie
 
Registered: Jan 2008
Posts: 6

Original Poster
Rep: Reputation: 0
um

I cant change the permissions for the windows mnt, it tells me Im not the owner, can I log in as root and change this?
 
Old 01-28-2008, 05:40 PM   #5
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
Okay, how about this:

1) How did you mount the windows share?
2) Can you post what's in your "/etc/fstab" file?
3) What filesystem is the Windows share?
 
Old 01-28-2008, 06:41 PM   #6
dM3nt0r
LQ Newbie
 
Registered: Jan 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Poetics

1. I dont understand
2. Yes Im looking at it.
3. NTFS filesystem running windowsxp sp2
 
Old 01-28-2008, 06:42 PM   #7
dM3nt0r
LQ Newbie
 
Registered: Jan 2008
Posts: 6

Original Poster
Rep: Reputation: 0
fstab

# Format:
# <file system> <mount point> <type> <options> <dump> <pass>

# This is for a loop device as root linux system.
/dev/loop7 / auto defaults 1 1

# the CD and the floppy
/dev/cdrom /mnt/cdrom iso9660 users,defaults,noauto,ro,user 0 0
/dev/fd0 /mnt/floppy auto users,defaults,noauto,user 0 0

# proc file system:
proc /proc proc defaults 0 0

# Unix98 devpts filesystem:
none /dev/pts devpts gid=5,mode=666 0 0

# This is a loop device swap file
/dev/loop6 none swap sw 0 0

#sysfs
none /sys sysfs defaults 0 0

#if you have other partitions you want like windows partitions
#add it below here
 
Old 01-29-2008, 07:36 AM   #8
rikijpn
Member
 
Registered: Jun 2007
Location: Japan
Distribution: Debian lenny, DSL, Solaris 10
Posts: 157

Rep: Reputation: 33
So you are trying to transfer (copy/move) a file from your Linux partition to your Windows partition. Yeah... the last time I read about the compatibility with NTFS(the filesystem your windows seems to be using), it wasn't "safe" to write files there. And I don't know whether that has changed (it is being developed I heard), but for the time being I don't think you can/should write to a NTFS directly from Linux. You could force to write a file, but you might end up with a damaged filesystem or something.

If you REALLY want to write to the filesystem windows is in (so you can read it with windows), you could change the filesystem of your windows partition to FAT32, etc (the default for win98). If you like the idea you should google around searching for some partition software.
Another idea would be to create another partition, with a FAT32 filesystem, so that Linux and windows both can write and read any file in there.

But being that what you seem to be wanting to copy is just a avi file, why don't just see it with Linux? Mplayer would be a good choice to watch movies if that's what you are really looking for.
 
Old 01-30-2008, 11:35 PM   #9
delta48
LQ Newbie
 
Registered: Jan 2008
Location: Mexico
Distribution: gentoo
Posts: 5

Rep: Reputation: 0
Wink ntfs-3g

You can tried installing ntfs-3g, it works fine to write ntfs partitions.

and adding a line like this in your fstab

/dev/hda1 /mnt/winXP ntfs-3g defaults,uid=1000,umask=002 0 0

only change the uid by your's and the mount point to whatever you want.

Last edited by delta48; 01-31-2008 at 01:20 AM.
 
Old 01-31-2008, 01:41 AM   #10
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Rep: Reputation: 37
I use ntfs-3g all the time. All of my mp3s are on ntfs and I play them on amarok.
Read the following:
http://www.linux-ntfs.org/doku.php?id=ntfs-en
Install fuse and ntfs-3g.
Once installed, follow the examples for the fstab or just mounting windows in the above link.

You may want change permissions in your fstab to rw for all users.
Mine looks like this:
/dev/hdc1 /win ntfs-3g rw,auto,user,exec 0 0

Last edited by okos; 01-31-2008 at 01:48 AM.
 
Old 01-31-2008, 04:56 PM   #11
dM3nt0r
LQ Newbie
 
Registered: Jan 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Ok so Ive installed ntfs-3g and I want to add the line
/dev/hda1 /mnt/winXP ntfs-3g defaults,uid=1000,umask=002 0 0
but how do I find out the uid for my drive?
 
Old 01-31-2008, 10:58 PM   #12
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Rep: Reputation: 37
Quote:
Originally Posted by dM3nt0r View Post
Ok so Ive installed ntfs-3g and I want to add the line
/dev/hda1 /mnt/winXP ntfs-3g defaults,uid=1000,umask=002 0 0
but how do I find out the uid for my drive?
Uid refers to the user identification or group identification.
I am not totally sure about uid for I also am a noob and I am not sure about your distro. However, try the following to see all of the uids.
Code:
less /etc/group
I did not have to determine the uid when I entered the fstab as I had stated above.

update:
you can also find the uids as follows
Code:
less /etc/passwd
Hope this helps
okos

Second update:
Here is an excerpt from the link I previously gave on how to mount your windows.

Quote:
4.5 How do I mount an NTFS Volume?

First of all, it might be an idea to check that your kernel understands NTFS. The command below will give a list of all the filesystems that Linux understands. If you see ntfs, then you are OK. Also it might be a good idea to read the mount manual, man 8 mount.

cat /proc/filesystems

Next you need to create a place to mount the NTFS Volume. Then you can mount it.

mkdir /mnt/windows
mount /dev/hda1 /mnt/windows -t ntfs -r

If this gives you the error “The device /dev/hda1 doesn't exist”, see Section 4.3

To alter the permissions of the mounted filesystem, see the umask option in Section 4.6. If you would like to have the volume mounted automatically at boot time, see Section 4.10.

When you have finished, you can unmount the partition with either of:

umount /mnt/windows
umount /dev/hda1

Last edited by okos; 01-31-2008 at 11:27 PM.
 
Old 02-01-2008, 03:53 PM   #13
delta48
LQ Newbie
 
Registered: Jan 2008
Location: Mexico
Distribution: gentoo
Posts: 5

Rep: Reputation: 0
The command id will give your id number
Code:
id -u

Last edited by delta48; 02-01-2008 at 04:03 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Gnome/Nautilus issues Beagle-Tracker, file transfer info, replace file info, popup. Mysticle31 Linux - Software 0 01-08-2008 06:30 PM
File Transfer linux_2007_ Linux - General 2 03-17-2007 06:22 PM
transfer dvds from ogg file to vod file kingfish217217 Linux - Software 3 02-19-2007 07:19 PM
Newbie question file transfer/ndiswrapper legatoblue Linux - Software 2 04-03-2005 12:01 PM
File transfer Joe47 Linux - Newbie 2 02-09-2003 05:12 AM


All times are GMT -5. The time now is 03:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration