[opensuse] trying to figure out how to share a data drive
Hello all, I am running Suse 11.1 and just installed a dual Windows/ Suse installation on my pc. I am a total newbie at Linux so please bear with me :) I am using the KDE desktop. I have 4 partitions on my hard drive, with my C drive for windows, and my data drive (labeled E in windows, but D in Linux - this is the drive I want to share between operating systems), and then my extended partition in Linux, which has a swap drive, root, and home. when I want to look at the contents of the data drive using the Dolphin navigator, it checks out ok on this path: /windows/D. But I wrote a test document in the open office spreadsheet and saved it in my home directory. Then I tried to copy it into /windows/D, and there is no "paste" option when i right click in D. so I checked the permissions using the "mount" command in a terminal window and this is what I got for the D drive: /dev/sda2 on /windows/D type fuseblk (rw,noexec,nosuid,nodev,allow_other,default_permissions,blksize=4096) Can anyone help me figure out how to enable writing data to this drive/partition? Ultimately I want to install Mozilla Thunderbird in both Windows and Suse, and be able to access the data on this shared drive, so that I can do email in either operating system. But before that, I have to be simply be able to read and write to my shared data partition, which I cannot do right now. Thanks in advance for your help -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
George Olson wrote:
so I checked the permissions using the "mount" command in a terminal window and this is what I got for the D drive:
/dev/sda2 on /windows/D type fuseblk (rw,noexec,nosuid,nodev,allow_other,default_permissions,blksize=4096)
Can anyone help me figure out how to enable writing data to this drive/partition?
Not sure about the mount comand (hardly ever used it). However, you just want to make sure that your user has rights to the drive. I did this on one of my home computers, which currently has SUSE 9.3 and Windows 2000 sharing a drive. -- kai www.perfectreign.com || www.filesite.org a turn signal is a statement, not a request -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 01/17/2009 10:45 AM, George Olson wrote:
so I checked the permissions using the "mount" command in a terminal window and this is what I got for the D drive:
/dev/sda2 on /windows/D type fuseblk (rw,noexec,nosuid,nodev,allow_other,default_permissions,blksize=4096)
Is this line in your /etc/fstab? What does ls -l /Windows/D show you regarding permissions?
Can anyone help me figure out how to enable writing data to this drive/partition? Ultimately I want to install Mozilla Thunderbird in both Windows and Suse, and be able to access the data on this shared drive, so that I can do email in either operating system. But before that, I have to be simply be able to read and write to my shared data partition, which I cannot do right now.
Thanks in advance for your help
I see nothing in the mount output that would give you permission explicitly, so you may need to do some tweaking, just not sure yet where the tweaking needs to be done. Need the answers to the above. -- Joe Morris Registered Linux user 231871 running openSUSE 10.3 x86_64 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 17 January 2009 11:36:45 am Joe Morris wrote:
/dev/sda2 on /windows/D type fuseblk (rw,noexec,nosuid,nodev,allow_other,default_permissions,blksize=4096)
Is this line in your /etc/fstab? What does ls -l /Windows/D show you regarding permissions?
all files in the D directory have the following permissions: drwxr-xr-x That is the right line for permissions, right? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 01/17/2009 02:13 PM, George Olson wrote:
On Saturday 17 January 2009 11:36:45 am Joe Morris wrote:
/dev/sda2 on /windows/D type fuseblk (rw,noexec,nosuid,nodev,allow_other,default_permissions,blksize=4096)
Is this line in your /etc/fstab? What does ls -l /Windows/D show you regarding permissions?
all files in the D directory have the following permissions: drwxr-xr-x
That is the right line for permissions, right?
You didn't include the user info. Best to run ls-l /windows/D in an xterm, then copy and paste the output into the email. i.e. joe@jmorris:~> ls -l / total 140 -rw-r--r-- 1 root root 0 2008-12-21 00:45 1 drwxr-xr-x 2 root root 4096 2009-01-10 18:31 bin drwxr-xr-x 3 root root 4096 2008-12-25 12:16 boot drwxr-xr-x 14 root root 6260 2009-01-17 08:39 dev drwxr-xr-x 134 root root 8192 2009-01-17 14:22 etc drwxr-xr-x 9 root root 4096 2008-12-03 18:23 home drwxr-xr-x 13 root root 4096 2009-01-10 18:32 lib drwxr-xr-x 6 root root 8192 2009-01-11 07:16 lib64 drwx------ 2 root root 16384 2005-05-16 04:59 lost+found drwxr-xr-x 6 root root 4096 2009-01-17 08:35 media drwxr-xr-x 2 root root 4096 2008-12-03 18:23 mnt drwxr-xr-x 6 root root 4096 2008-11-24 20:12 opt dr-xr-xr-x 190 root root 0 2009-01-17 16:33 proc drwx------ 35 root root 4096 2009-01-17 08:37 root drwxr-xr-x 3 root root 8192 2009-01-10 18:33 sbin drwxr-xr-x 4 root root 4096 2008-12-03 18:23 srv drwxr-xr-x 12 root root 0 2009-01-17 16:33 sys drwxrwxrwt 77 root root 53248 2009-01-17 14:23 tmp drwxr-xr-x 15 root root 4096 2008-11-24 20:12 usr drwxr-xr-x 18 root root 4096 2008-12-21 00:57 var This way we can see the command given, and be able to interpret the output with all the info. What you show above is the owner in the only one with write permissions, and that is probably root. -- Joe Morris Registered Linux user 231871 running openSUSE 10.3 x86_64 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Joe Morris wrote:
You didn't include the user info. Best to run ls-l /windows/D in an xterm, then copy and paste the output into the email.
thanks. here is copied from my terminal window: george@linux-8rby:~> ls -l /windows/D total 221 drwxr-xr-x 1 root users 0 2009-01-09 19:06 Bluetooth Exchange Folder drwxr-xr-x 1 root users 16384 2009-01-09 07:20 Cdownloads drwxr-xr-x 1 root users 4096 2009-01-09 07:21 CLASeminar drwxr-xr-x 1 root users 4096 2009-01-09 06:39 CLAware Backups drwxr-xr-x 1 root users 16384 2009-01-09 00:08 CLAware Inbox drwxr-xr-x 1 root users 49152 2009-01-09 07:29 DellDocs drwxr-xr-x 1 root users 12288 2009-01-17 12:18 documents drwxr-xr-x 1 root users 16384 2009-01-17 11:23 Downloads drwxr-xr-x 1 root users 4096 2009-01-09 00:22 EmailArchives drwxr-xr-x 1 root users 8192 2009-01-15 09:37 e-Sword -rw-r--r-- 2 root users 130 2009-01-09 18:53 Files named @.wmv.fnd drwxr-xr-x 1 root users 12288 2009-01-09 00:22 Music drwxr-xr-x 1 root users 0 2009-01-11 16:05 My Music drwxr-xr-x 1 root users 0 2009-01-11 16:05 My Pictures -rw-r--r-- 2 root users 26 2009-01-08 09:52 notes.txt.txt drwxr-xr-x 1 root users 0 2009-01-09 00:22 program files drwxr-xr-x 1 root users 0 2009-01-12 22:21 RECYCLER drwxr-xr-x 1 root users 0 2009-01-09 00:23 ringtones drwxr-xr-x 1 root users 61440 2009-01-15 13:35 Saved Pictures drwxr-xr-x 1 root users 0 2009-01-09 06:39 SuseDnlds drwxr-xr-x 1 root users 4096 2009-01-08 23:42 System Volume Information drwxr-xr-x 1 root users 4096 2009-01-09 06:39 TCLA Internal Data drwxr-xr-x 1 root users 4096 2009-01-13 01:27 TorrentComplete drwxr-xr-x 1 root users 4096 2009-01-13 00:05 TorrentStarted drwxr-xr-x 1 root users 0 2009-01-09 06:39 Windows drwxr-xr-x 1 root users 4096 2009-01-09 07:11 xfer -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Saturday, 2009-01-17 at 17:13 +0800, George Olson wrote:
Joe Morris wrote:
You didn't include the user info. Best to run ls-l /windows/D in an xterm, then copy and paste the output into the email.
thanks. here is copied from my terminal window:
drwxr-xr-x 1 root users 0 2009-01-09 19:06 Bluetooth Exchange Folder -rw-r--r-- 2 root users 130 2009-01-09 18:53 Files named @.wmv.fnd
Ok, it means it has been mounted by root, and only root can write. You have several alternatives: * umount as root, then mount as user. For this you need to add "user" to your fstab line, before the "users": /dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part1 /windows/C ntfs-3g user,users,gid=users,... etc You can also add "noauto" so that you don't need to umount first as root. This is my prefered method. * You can add a "uid=username" (or number), which will define the owner of all files (vfat and ntfs only, I think), regardless of who mounts it. * you can set write permissions for the group. This can be done with "fmask=0117,dmask=0007", for instance. I do this. * I forgot what I was going to suggest now, I'm multitasking with a movie on tv. O:-) - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAklyYvAACgkQtTMYHG2NR9UhsACcCoMwy9UQ5zW4inpYbTQ6ibWV qo8AniIc9ShC5w5Tt/yNMvbM7G4zujK7 =445q -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Saturday, 2009-01-17 at 10:45 +0800, George Olson wrote:
Hello all, I am running Suse 11.1 and just installed a dual Windows/ Suse installation on my pc. I am a total newbie at Linux so please bear with me :)
I am using the KDE desktop. I have 4 partitions on my hard drive, with my C drive for windows, and my data drive (labeled E in windows, but D in Linux - this is the drive I want to share between operating systems), and then my extended partition in Linux, which has a swap drive, root, and home.
when I want to look at the contents of the data drive using the Dolphin navigator, it checks out ok on this path: /windows/D.
But I wrote a test document in the open office spreadsheet and saved it in my home directory. Then I tried to copy it into /windows/D, and there is no "paste" option when i right click in D.
so I checked the permissions using the "mount" command in a terminal window and this is what I got for the D drive:
/dev/sda2 on /windows/D type fuseblk (rw,noexec,nosuid,nodev,allow_other,default_permissions,blksize=4096)
fuseblk? I've never seen it before :-?
Can anyone help me figure out how to enable writing data to this drive/partition? Ultimately I want to install Mozilla Thunderbird in both Windows and Suse, and be able to access the data on this shared drive, so that I can do email in either operating system. But before that, I have to be simply be able to read and write to my shared data partition, which I cannot do right now.
I do not know what type fuseblk is, so I need to know if it is something else by another name. Do this on konsole - probably you need to be root: su - <== it will ask for your root password file -s /dev/sda2 <== this will tell me what type that partition really is. I expect vfat or ntfs. After that, the procedure is to create an entry in /etc/fstab to mount it either manually or automatically, with write permissions, and not via Dolphin, so that any program can access it. I see you are using gmail, so please remember to reply to the list. I'm off to bed, but maybe some other can take it further before I come back. I mention this in case you are also new to this mail list :-) - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAklxUwMACgkQtTMYHG2NR9XF3QCfeGdUruCpPAj7npTTD4i1Bv2Q Lq0An1gfzLqNY4I5yqTtxRdF0SIP9VMq =ISDo -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Carlos E. R. wrote:
I do not know what type fuseblk is, so I need to know if it is something else by another name.
Do this on konsole - probably you need to be root:
su - <== it will ask for your root password file -s /dev/sda2 <== this will tell me what type that partition really is. I expect vfat or ntfs.
Ok, here is copied from my terminal window: linux-8rby:~ # file -s /dev/sda2 /dev/sda2: x86 boot sector I am pretty sure the D drive is NTFS, because I formatted it as that in windows. But the response to the command was x86 boot sector, and I am not quite sure what that means.
After that, the procedure is to create an entry in /etc/fstab to mount it either manually or automatically, with write permissions, and not via Dolphin, so that any program can access it.
Um, can you tell me kind of how to do that? Here are the contents of my /etc/fstab file, copied from Kwrite: /dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part5 swap swap defaults 0 0 /dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part6 / ext3 acl,user_xattr 1 1 /dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part7 /home ext3 acl,user_xattr 1 2 /dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part1 /windows/C ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0 /dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part2 /windows/D ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0 proc /proc proc defaults 0 0 sysfs /sys sysfs noauto 0 0 debugfs /sys/kernel/debug debugfs noauto 0 0 usbfs /proc/bus/usb usbfs noauto 0 0 devpts /dev/pts devpts mode=0620,gid=5 0 0 Thanks George -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 01/17/2009 05:20 PM, George Olson wrote:
Um, can you tell me kind of how to do that? Here are the contents of my /etc/fstab file, copied from Kwrite:
/dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part5 swap swap defaults 0 0 /dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part6 / ext3 acl,user_xattr 1 1 /dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part7 /home ext3 acl,user_xattr 1 2 /dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part1 /windows/C ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0 /dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part2 /windows/D ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
OK, here is the problem. Change the 2 lines above (starting with /dev, watch the word wrap) by changing the fmask and dmask values. dmask is the directory permissions, fmask is the file permissions. If you only want write access to your data partition, only change the second line. They are written in octal, subtracting from the mask value of 111. So zero, would mean 111, i.e read, write, execute. A mask of 022 would give rwxr-xr-x. Make your mask 002, to give rwxrwxr-x. So change the fmask and dmask to 002. To make the change immediately effective (so you do not need to reboot), you would need to enter this command as root, mount -o remount /Windows/D (and mount -o remount /Windows/C if you also change it). The you should see that you have write access. You could see that by ls -l /Windows/D, and it should be a bunch of rwxrwxr-x. HTH. -- Joe Morris Registered Linux user 231871 running openSUSE 10.3 x86_64 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Joe Morris wrote:
On 01/17/2009 05:20 PM, George Olson wrote:
Um, can you tell me kind of how to do that? Here are the contents of my /etc/fstab file, copied from Kwrite:
/dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part5 swap swap defaults 0 0 /dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part6 / ext3 acl,user_xattr 1 1 /dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part7 /home ext3 acl,user_xattr 1 2 /dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part1 /windows/C ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0 /dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part2 /windows/D ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
OK, here is the problem. Change the 2 lines above (starting with /dev, watch the word wrap) by changing the fmask and dmask values. dmask is the directory permissions, fmask is the file permissions. If you only want write access to your data partition, only change the second line. They are written in octal, subtracting from the mask value of 111. So zero, would mean 111, i.e read, write, execute. A mask of 022 would give rwxr-xr-x. Make your mask 002, to give rwxrwxr-x. So change the fmask and dmask to 002. To make the change immediately effective (so you do not need to reboot), you would need to enter this command as root, mount -o remount /Windows/D (and mount -o remount /Windows/C if you also change it). The you should see that you have write access. You could see that by ls -l /Windows/D, and it should be a bunch of rwxrwxr-x. HTH.
/one question - I tried to change the fmask and dmask values in Kwrite, but it would not save because I don't have access permission. How do I set root level access to be able to save in Kwrite, or is there a different editor I should use through the konsole to do that? thanks george / -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 01/17/2009 08:59 PM, George Olson wrote:
Joe Morris wrote:
On 01/17/2009 05:20 PM, George Olson wrote:
Um, can you tell me kind of how to do that? Here are the contents of my /etc/fstab file, copied from Kwrite:
/dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part5 swap swap defaults 0 0 /dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part6 / ext3 acl,user_xattr 1 1 /dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part7 /home ext3 acl,user_xattr 1 2 /dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part1 /windows/C ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0 /dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part2 /windows/D ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
OK, here is the problem. Change the 2 lines above (starting with /dev, watch the word wrap) by changing the fmask and dmask values. dmask is the directory permissions, fmask is the file permissions. If you only want write access to your data partition, only change the second line. They are written in octal, subtracting from the mask value of 111. So zero, would mean 111, i.e read, write, execute. A mask of 022 would give rwxr-xr-x. Make your mask 002, to give rwxrwxr-x. So change the fmask and dmask to 002. To make the change immediately effective (so you do not need to reboot), you would need to enter this command as root, mount -o remount /Windows/D (and mount -o remount /Windows/C if you also change it). The you should see that you have write access. You could see that by ls -l /Windows/D, and it should be a bunch of rwxrwxr-x. HTH.
/one question - I tried to change the fmask and dmask values in Kwrite, but it would not save because I don't have access permission. How do I set root level access to be able to save in Kwrite, or is there a different editor I should use through the konsole to do that?
thanks george /
in kde, hit Alt-F2, and put in the Run dialog box kdesu kwrite and then click on Run. this will prompt for root password, and will let you run the graphical editor as root to give you that permission. HTH -- Joe Morris Registered Linux user 231871 running openSUSE 10.3 x86_64 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
/one question - I tried to change the fmask and dmask values in Kwrite, but it would not save because I don't have access permission. How do I set root level access to be able to save in Kwrite, or is there a different editor I should use through the konsole to do that?
thanks george /
in kde, hit Alt-F2, and put in the Run dialog box kdesu kwrite and then click on Run. this will prompt for root password, and will let you run the graphical editor as root to give you that permission. HTH
Ok, thanks. I got it to work. I could not use the mount/ remount command in the same line, so I tried to do a umount, and then next line 'mount' again. It worked. I have rw permission on the drive now. Also when I used dolphin to copy a file to that drive, a message came up that said "could not change permissions", but the file copied over anyway. thanks george -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday, 2009-01-18 at 10:15 +0800, George Olson wrote:
again. It worked. I have rw permission on the drive now. Also when I used dolphin to copy a file to that drive, a message came up that said "could not change permissions", but the file copied over anyway.
That's to be expected, as you can not change the permissions on windows filesystems, they are fixed by mount options. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAklzvWEACgkQtTMYHG2NR9XJFgCfViux/9VGq0e66PIJgMYhFa3u LwAAniMvjd8oNUtlIiR1YUMY8n1i78Se =5TTq -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 18 January 2009 05:38:08 pm Carlos E. R. wrote:
On Sunday, 2009-01-18 at 10:15 +0800, George Olson wrote:
again. It worked. I have rw permission on the drive now. Also when I used dolphin to copy a file to that drive, a message came up that said "could not change permissions", but the file copied over anyway.
That's to be expected, as you can not change the permissions on windows filesystems, they are fixed by mount options.
You can't change them as there is no place on ntfs where you can write them. The error report can be ignored, or diminish by keeping default fmask and dmask that are in sync with default umask of openSUSE. The other way is to use advice: http://ntfs-3g.org/support.html#unprivileged -- Regards, Rajko -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 17 January 2009 06:59:29 am George Olson wrote:
Joe Morris wrote:
On 01/17/2009 05:20 PM, George Olson wrote:
Um, can you tell me kind of how to do that? Here are the contents of my /etc/fstab file, copied from Kwrite:
/dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part5 swap swap defaults 0 0 /dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part6 / ext3 acl,user_xattr 1 1 /dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part7 /home ext3 acl,user_xattr 1 2 /dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part1 /windows/C ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0 /dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part2 /windows/D ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
OK, here is the problem. Change the 2 lines above (starting with /dev, watch the word wrap) by changing the fmask and dmask values. dmask is the directory permissions, fmask is the file permissions. If you only want write access to your data partition, only change the second line. They are written in octal, subtracting from the mask value of 111. So zero, would mean 111, i.e read, write, execute. A mask of 022 would give rwxr-xr-x. Make your mask 002, to give rwxrwxr-x. So change the fmask and dmask to 002. To make the change immediately effective (so you do not need to reboot), you would need to enter this command as root, mount -o remount /Windows/D (and mount -o remount /Windows/C if you also change it). The you should see that you have write access. You could see that by ls -l /Windows/D, and it should be a bunch of rwxrwxr-x. HTH.
/one question - I tried to change the fmask and dmask values in Kwrite, but it would not save because I don't have access permission. How do I set root level access to be able to save in Kwrite, or is there a different editor I should use through the konsole to do that?
It seems that I have no big need for anything windows, so after your post I was looking my partition and it was set with fmask=133 and dmask=022 which means everything is read only. The correct values to be able to write there are: fmask=113 gives permissions rw-rw-r-- (owner group other) dmask=002 gives permissions rwxrwxr-x (owner group other) r read w write x execute for files, enter for directories I keep windows files without execute bit. It looks all much better in a file manager. -- Regards, Rajko -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Saturday, 2009-01-17 at 18:15 +0800, Joe Morris wrote:
On 01/17/2009 05:20 PM, George Olson wrote:
Ok, here is copied from my terminal window:
linux-8rby:~ # file -s /dev/sda2 /dev/sda2: x86 boot sector
Funny.
I am pretty sure the D drive is NTFS, because I formatted it as that in windows. But the response to the command was x86 boot sector, and I am not quite sure what that means.
Curious, maybe "file" doesn't detect well ntfs partitions. [...] ah, it says the same for my vfat partition: nimrodel:~ # file -s /dev/hda1 /dev/hda1: x86 boot sector nimrodel:~ # file -s /dev/hda6 /dev/hda6: Linux rev 1.0 ext2 filesystem data (mounted or unclean)
Um, can you tell me kind of how to do that? Here are the contents of my /etc/fstab file, copied from Kwrite: ...
/dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part1 /windows/C ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0 /dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part2 /windows/D ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
OK, here is the problem. Change the 2 lines above (starting with /dev, watch the word wrap) by changing the fmask and dmask values. dmask is the directory permissions, fmask is the file permissions. If you only want write access to your data partition, only change the second line. They are written in octal, subtracting from the mask value of 111. So zero, would mean 111, i.e read, write, execute. A mask of 022 would give rwxr-xr-x. Make your mask 002, to give rwxrwxr-x. So change the fmask and dmask to 002. To make the change immediately effective (so you do not need to reboot), you would need to enter this command as root, mount -o remount /Windows/D (and mount -o remount /Windows/C if you also change it). The you should see that you have write access. You could see that by ls -l /Windows/D, and it should be a bunch of rwxrwxr-x. HTH.
You are probably right. I use "fmask=0117,dmask=0007", which yields "-rw-rw----" for files and "drwxrwx---" for directories. I don't like files getting the executable flag. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAklyXBYACgkQtTMYHG2NR9UDlACfTHTmBLzPfprD8QXUgF7W43m2 jpkAnA3aVpa8p7clwxKG+CM7gnNGu7dz =O71u -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 17 January 2009 03:39:41 Carlos E. R. wrote:
I'm off to bed, but maybe some other can take it further before I come back. I mention this in case you are also new to this mail list :-)
After you've been here a while, you'll know everybody's bedtime ;) Bob -- Registered Linux User #463880 FSFE Member #1300 GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E openSUSE 11.1, Kernel 2.6.27.7-9-default, KDE 3.5.10 Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9200GS -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
George Olson wrote:
Hello all, I am running Suse 11.1 and just installed a dual Windows/ Suse installation on my pc. I am a total newbie at Linux so please bear with me :)
I am using the KDE desktop. I have 4 partitions on my hard drive, with my C drive for windows, and my data drive (labeled E in windows, but D in Linux - this is the drive I want to share between operating systems), and then my extended partition in Linux, which has a swap drive, root, and home.
when I want to look at the contents of the data drive using the Dolphin navigator, it checks out ok on this path: /windows/D.
But I wrote a test document in the open office spreadsheet and saved it in my home directory. Then I tried to copy it into /windows/D, and there is no "paste" option when i right click in D.
so I checked the permissions using the "mount" command in a terminal window and this is what I got for the D drive:
/dev/sda2 on /windows/D type fuseblk (rw,noexec,nosuid,nodev,allow_other,default_permissions,blksize=4096)
Can anyone help me figure out how to enable writing data to this drive/partition? Ultimately I want to install Mozilla Thunderbird in both Windows and Suse, and be able to access the data on this shared drive, so that I can do email in either operating system. But before that, I have to be simply be able to read and write to my shared data partition, which I cannot do right now.
Thanks in advance for your help
Whoa George, Your moving kind of fast for a newbie here... First, lets get a little more information about your linux setup so I can make sure we are talking apples-to-apples here. Open konsole and post the output of the following two commands: cat /proc/partitions mount Basically what you are going to need to do is to select an empty partition and then format it in FAT32. That is the only way (absent a couple of tools under development) to share a partition on the same machine between windows and linux. Linux can read NTFS just fine, but writing to it directly from linux is worse than Russian roulette. If the disks are on separate computers, then there is no problem at all with the SAMBA/CIFS set of tools. But to write to a partition that windows can read in a dual-boot scenario, fat32 is the ticket. There is of course the solution of virtualizing windows within linux while running samba on linux, then you can share disk space just as if the operating systems were running on separate boxes. See: http://www.virtualbox.org/wiki/Linux_Downloads Here is a screenshot to whet your couriosity: http://www.3111skyline.com/download/linux/apps/virtualbox/vbox-XP-on-openSuS... Also, if you are new to linux, let me share a couple of must have kde apps with you. (1) basket notepad; (2) keepassx. Both are available for open suse. Also, if you haven't already downloaded and installed webpin (for finding packages for opensuse, the install that first. It will make finding software a breeze. The webpin rpm can be found here: http://download.opensuse.org/repositories/openSUSE:/Tools/ You can use the web interface here: http://packages.opensuse-community.org/ Post the requested information and we'll get your file sharing problem sorted out. -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
David C. Rankin wrote:
Whoa George,
Your moving kind of fast for a newbie here... First, lets get a little more information about your linux setup so I can make sure we are talking apples-to-apples here. Open konsole and post the output of the following two commands:
cat /proc/partitions
/Ok, here it is: george@linux-8rby:~> cat /proc/partitions major minor #blocks name 8 0 244198584 sda 8 1 35840983 sda1 8 2 163838902 sda2 8 3 1 sda3 8 5 2104483 sda5 8 6 17125258 sda6 8 7 25286278 sda7/
mount
/george@linux-8rby:~> mount /dev/sda6 on / type ext3 (rw,acl,user_xattr) /proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) debugfs on /sys/kernel/debug type debugfs (rw) udev on /dev type tmpfs (rw) devpts on /dev/pts type devpts (rw,mode=0620,gid=5) /dev/sda7 on /home type ext3 (rw,acl,user_xattr) /dev/sda1 on /windows/C type fuseblk (rw,noexec,nosuid,nodev,allow_other,default_permissions,blksize=4096) /dev/sda2 on /windows/D type fuseblk (rw,noexec,nosuid,nodev,allow_other,default_permissions,blksize=4096) fusectl on /sys/fs/fuse/connections type fusectl (rw) securityfs on /sys/kernel/security type securityfs (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) /dev/sr0 on /media/SU1110.001 type iso9660 (ro,nosuid,nodev,noatime,uid=1000,utf8) gvfs-fuse-daemon on /home/george/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=george)/
Basically what you are going to need to do is to select an empty partition and then format it in FAT32. That is the only way (absent a couple of tools under development) to share a partition on the same machine between windows and linux. Linux can read NTFS just fine, but writing to it directly from linux is worse than Russian roulette. If the disks are on separate computers, then there is no problem at all with the SAMBA/CIFS set of tools. But to write to a partition that windows can read in a dual-boot scenario, fat32 is the ticket.
/Ok, this gives me a couple of follow up questions. I have a ton of data on the drive I want to share, and everything is NTFS (I am pretty sure). I can back it all up, re-format to FAT32, and then copy it all back on the newly formatted drive again. But the question I have about that is, isn't there a size limit to a drive formatted in FAT32? I am looking at 160 gigs or so. I don't have the whole thing full, but that is the size of the drive I would like, if it is possible./
There is of course the solution of virtualizing windows within linux while running samba on linux, then you can share disk space just as if the operating systems were running on separate boxes. See:
http://www.virtualbox.org/wiki/Linux_Downloads
Here is a screenshot to whet your couriosity:
http://www.3111skyline.com/download/linux/apps/virtualbox/vbox-XP-on-openSuS...
/That looks really cool. It seems like I need to try and get samba running. Can you (or anyone) give me a brief layman's description of how samba works?/
Also, if you are new to linux, let me share a couple of must have kde apps with you. (1) basket notepad; (2) keepassx. Both are available for open suse. Also, if you haven't already downloaded and installed webpin (for finding packages for opensuse, the install that first. It will make finding software a breeze. The webpin rpm can be found here:
/Thanks. I am trying to download that now. This is all so cool./
You can use the web interface here:
http://packages.opensuse-community.org/
Post the requested information and we'll get your file sharing problem sorted out.
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
George Olson wrote:
David C. Rankin wrote:
Whoa George,
Your moving kind of fast for a newbie here... First, lets get a little more information about your linux setup so I can make sure we are talking apples-to-apples here. Open konsole and post the output of the following two commands:
cat /proc/partitions
/Ok, here it is: george@linux-8rby:~> cat /proc/partitions major minor #blocks name
8 0 244198584 sda 8 1 35840983 sda1 8 2 163838902 sda2 8 3 1 sda3 8 5 2104483 sda5 8 6 17125258 sda6 8 7 25286278 sda7/
mount
/george@linux-8rby:~> mount /dev/sda6 on / type ext3 (rw,acl,user_xattr) /dev/sda7 on /home type ext3 (rw,acl,user_xattr) /dev/sda1 on /windows/C type fuseblk (rw,noexec,nosuid,nodev,allow_other,default_permissions,blksize=4096) /dev/sda2 on /windows/D type fuseblk (rw,noexec,nosuid,nodev,allow_other,default_permissions,blksize=4096) fusectl on /sys/fs/fuse/connections type fusectl (rw) /dev/sr0 on /media/SU1110.001 type iso9660 (ro,nosuid,nodev,noatime,uid=1000,utf8) gvfs-fuse-daemon on /home/george/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=george)/
Basically what you are going to need to do is to select an empty partition and then format it in FAT32. That is the only way (absent a couple of tools under development) to share a partition on the same machine between windows and linux. Linux can read NTFS just fine, but writing to it directly from linux is worse than Russian roulette. If the disks are on separate computers, then there is no problem at all with the SAMBA/CIFS set of tools. But to write to a partition that windows can read in a dual-boot scenario, fat32 is the ticket.
/Ok, this gives me a couple of follow up questions. I have a ton of data on the drive I want to share, and everything is NTFS (I am pretty sure). I can back it all up, re-format to FAT32, and then copy it all back on the newly formatted drive again. But the question I have about that is, isn't there a size limit to a drive formatted in FAT32? I am looking at 160 gigs or so.
http://en.wikipedia.org/wiki/File_Allocation_Table#FAT32 FAT32 In order to overcome the volume size limit of FAT16, while still allowing DOS real mode code to handle the format without unnecessarily reducing the available conventional memory, Microsoft implemented a newer generation of FAT, known as FAT32, with cluster values held in a 32-bit field, of which 28 bits are used to hold the cluster number, for a maximum of approximately 268 million (228) clusters. This allows for drive sizes of up to 8 tebibytes with 32KB clusters, but the boot sector uses a 32-bit field for the sector count, limiting volume size to 2 TiB on a hard disk with 512 byte sectors. I think your covered... I don't have the whole thing full, but that is the size
of the drive I would like, if it is possible./
There is of course the solution of virtualizing windows within linux while running samba on linux, then you can share disk space just as if the operating systems were running on separate boxes. See:
http://www.virtualbox.org/wiki/Linux_Downloads
Here is a screenshot to whet your couriosity:
http://www.3111skyline.com/download/linux/apps/virtualbox/vbox-XP-on-openSuS...
/That looks really cool. It seems like I need to try and get samba running. Can you (or anyone) give me a brief layman's description of how samba works?/
Samba uses the smb protocol to provide access to data on 'shares' defined in its /etc/samba/smb.conf file. The smb protocol is how windows machines talk to each other to share data. Since samba does that for linux, windows and linux machines can access common data on a share hosted either on a windows box or a linux box. ** Note: the following quick and dirty howto will get you running, but is no substitute for: http://us6.samba.org/samba/docs/ or http://us6.samba.org/samba/docs/using_samba/toc.html The following will get your linux box sharing data with your other windows boxes or other linux boxes. Where ever you FAT32 drive is now mounted, that will be the path to your 'data' share. (you can call the share name anything you like, but the 'path' must be correct). Do the following to get samba running. As root, from the command line: (1) copy your original config to another file name cp /etc/samba/smb.conf /etc/samba/smb.conf.orig (2) copy and paste the following to /etc/samba/smb.conf (read the comments below and make changes for your system. The comments start with a ';'. (you can also use '#' as comments for samba) For the following config, I have ASSUMED your user name is 'george' If it's not, change it. If your having trouble copying this information to the smb.conf, just select the text below with your mouse and then do: [global] use sendfile = No disable spoolss = yes ; Change the workgroup to your workgroup workgroup = rb_law server string = Samba %v disable spoolss = yes printing = cups printcap name = cups printcap cache time = 750 cups options = raw map to guest = Bad User include = /etc/samba/dhcp.conf usershare allow guests = No admin users = george smb ports = 139 time server = yes ; Change 192.168.1. to your local subnet hosts allow = 127. 192.168.1. domain logons = yes security = user encrypt passwords = yes smb passwd file = /etc/samba/smbpasswd ; If you have no other wins server, leave as is, if you do, then ; uncomment the second line and give it the right IP and then ; comment out the 'wins support = yes' wins support = yes ; wins server = 192.168.1.17 [homes] comment = Home Directories browseable = No read only = No inherit acls = Yes [data] comment = Alchemy Config ; change the path to where your FAT32 data is path = /home/data admin users = george ; Note: you can also designate a group as valid users with @groupname ; just delete everything after george if you don't have other users valid users = george, user2, @yourgroup force group = users browseable = no writeable = Yes [printers] comment = All Printers path = /var/tmp printable = Yes create mask = 0600 browseable = No echo ' {now paste the text by pressing your middle mouse button} ' {type the closing ' and then hit return} {if you don't have a middle mouse button shift+insert will paste} (3) If the directory in the path = statement above doesn't exist, create it. The permissions on the directory must be 0755 (that's drwxr-xr-x) Remember the x or execute bit controls your ability to 'descend' into that directory. (the files permissions can be adjusted to tailor security, but that's beyond this discussion) So: mkdir /path/to/your/FAT32/files chmod 0755 (make that 0775 if you want to give group write permission) (4) Test the /etc/samba/smb.conf for errors and see your share definitions: testparm or, if using an alternate config: testparm /path/to/config/file (5) now create a smbpasswd entry (samba user and samba password) that you will use to access the samba shares: smbpasswd -a george {enter your password at the prompts} do the same thing for any more users you want to give access to. ** Note: I recommend using the same username/password combinations for windows users that they use to log in to windows. That way windows will automatically authenticate for access to your samba shares in network neighborhood. It's not required, you can use something different, but be aware your users will be prompted for a username and password (Which usually fries their brains on the spot) () start nmbd (the netbios nameservice daemon) and smbd (the samba daemon). openSuSE splits the startup scripts, other distros don't. So to get things running: rcnmb rcsmb Your samba is now up and running (7) To make sure samba starts at boot (or any other system process you want to start at boot) use chkconfig: chkconfig smb on chkconfig nmb on to look at all the process you can turn on at boot: chkconfig --list ***** DO NOT TURN kbd OFF -- you will have no keyboard forevermore... ** You can also use yast -> system -> system services to turn things on at boot, but why waste the time clicking the mouse. -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday, 2009-01-19 at 23:42 -0600, David C. Rankin wrote:
the newly formatted drive again. But the question I have about that is, isn't there a size limit to a drive formatted in FAT32? I am looking at 160 gigs or so.
http://en.wikipedia.org/wiki/File_Allocation_Table#FAT32
FAT32
In order to overcome the volume size limit of FAT16, while still allowing DOS real mode code to handle the format without unnecessarily reducing the available conventional memory, Microsoft implemented a newer generation of FAT, known as FAT32, with cluster values held in a 32-bit field, of which 28 bits are used to hold the cluster number, for a maximum of approximately 268 million (228) clusters. This allows for drive sizes of up to 8 tebibytes with 32KB clusters, but the boot sector uses a 32-bit field for the sector count, limiting volume size to 2 TiB on a hard disk with 512 byte sectors.
I think your covered...
What about filesize? FAT usually limits to two GiB... Ah, the wikipedia says "4 GiB minus 1 byte (2³²−1 bytes)". That's not enough, a DVD iso image is larger. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkl1oIsACgkQtTMYHG2NR9VPigCdG5RoRVpONVevAu9No+HlDJDJ laEAniEjrskAHdZgAtdZ79bcLqhkdZyG =P9g0 -----END PGP SIGNATURE-----
Carlos E. R. wrote:
On Monday, 2009-01-19 at 23:42 -0600, David C. Rankin wrote:
the newly formatted drive again. But the question I have about that is, isn't there a size limit to a drive formatted in FAT32? I am looking at 160 gigs or so.
FAT32
In order to overcome the volume size limit of FAT16, while still allowing DOS real mode code to handle the format without unnecessarily reducing the available conventional memory, Microsoft implemented a newer generation of FAT, known as FAT32, with cluster values held in a 32-bit field, of which 28 bits are used to hold the cluster number, for a maximum of approximately 268 million (228) clusters. This allows for drive sizes of up to 8 tebibytes with 32KB clusters, but the boot sector uses a 32-bit field for the sector count, limiting volume size to 2 TiB on a hard disk with 512 byte sectors.
I think your covered...
What about filesize? FAT usually limits to two GiB...
Ah, the wikipedia says "4 GiB minus 1 byte (2³²1 bytes)". That's not enough, a DVD iso image is larger.
-- Cheers, Carlos E. R.
Hmmm, didn't think about it from that standpoint. I thought George was worried about a size limit for the drive. I overlooked the file size issue. But isn't that a file size limit that applies to some processes, but not a limit to the actual physical file size on disk? I'm still fuzzy about that one. -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Content-ID: <alpine.LSU.2.00.0901210233470.30007@nimrodel.valinor> On Tuesday, 2009-01-20 at 18:29 -0600, David C. Rankin wrote:
What about filesize? FAT usually limits to two GiB...
Ah, the wikipedia says "4 GiB minus 1 byte (2³²1 bytes)". That's not enough, a DVD iso image is larger.
Hmmm, didn't think about it from that standpoint. I thought George was worried about a size limit for the drive. I overlooked the file size issue. But isn't that a file size limit that applies to some processes, but not a limit to the actual physical file size on disk? I'm still fuzzy about that one.
I don't know why there is a file size limit; let me think. It can't be cluster count, because cluster size varies. Ahhhh! I think know why: the read functions in MsDOS will be a word, and 2³² is precisely 4 GiB. AH, reading the wikipedia article, I see more limitation places: the filesize is stored as four bytes in the directory entry (search for "file size" in the wikipedia article). So... it is both a limitation of the filesystem and of the functions used to read it in Dos/Windows. We are stuck with it, unless they release another specification, and I think it would not be compatible with existing tools (changed directory entry format). - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkl2fOAACgkQtTMYHG2NR9U6XwCfQ4YCNRRTGkrObafTu0zfZjQ0 S8oAni4zIyphJtQeJzzoPGpsplbT1Mvf =ddjM -----END PGP SIGNATURE-----
participants (7)
-
Bob Williams
-
Carlos E. R.
-
David C. Rankin
-
George Olson
-
Joe Morris
-
Kai Ponte
-
Rajko M.