PDA

View Full Version : [SOLVED] Reset Extra HD From Root to ME?



sandman3838
June 24th, 2009, 01:45 AM
Hello

I think that with the latest core update the other day my HD's were reset to root.

I have a Dual boot system with Winxp and Ubuntu 910 each on there own hd.
There are also an additional two HDs the have data that the two Os's share. It was working fine the other day. I could save files back and forth from either os.

The drives are mounted, NTFS Config, and Samba are installed.

Now the owner and group for the files and folder are set to ROOT!
Is that right? I don't think it is? If I remember correctly.

If you need more info like the two Hd names or device designations please let me know?

Thanks

sandman3838
June 24th, 2009, 02:54 AM
Hey here is some more info! it should help!
The TWO HD that I'm interested in giving access to for both WinXP and Ubuntu are ARCHIVE and IDE FILES.

NOTE - ARCHIVE, IDE FILES, SATA GAMES, and WINXP are all NTFS!


ls -l /media/
cat /etc/fstab
mount

********************
kevin@KJ-Linux:~$ ls -l /media/

total 52
drwxrwxrwx 1 root root 8192 2009-06-10 16:45 ARCHIVE
lrwxrwxrwx 1 root root 6 2009-05-04 00:22 cdrom -> cdrom0
drwxr-xr-x 2 root root 4096 2009-05-04 00:22 cdrom0
lrwxrwxrwx 1 root root 7 2009-05-04 00:22 floppy -> floppy0
drwxr-xr-x 2 root root 4096 2009-05-04 00:22 floppy0
drwxrwxrwx 1 root root 12288 2009-06-10 16:45 IDE_FILES
drwxrwxrwx 1 root root 12288 2009-06-10 16:45 SATA_GAMES
drwxrwxrwx 1 root root 12288 2009-06-21 10:36 WIN_XP
kevin@KJ-Linux:~$

*******************
kevin@KJ-Linux:~$ cat /etc/fstab

# /etc/fstab: static file system information.
#
# -- This file has been automaticly generated by ntfs-config --
#
# <file system> <mount point> <type> <options> <dump> <pass>

proc /proc proc defaults 0 0
# Entry for /dev/sdb1 :
UUID=7a303972-2c9e-44b0-9904-dedeefdc6cf8 / ext3 relatime,errors=remount-ro 0 1
# Entry for /dev/sdb5 :
UUID=e22175bd-2dbe-4e5f-a7fa-69914bfb7efe none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
/dev/sdd1 /media/ARCHIVE ntfs-3g defaults,locale=en_US.UTF-8 0 0
/dev/sde1 /media/IDE_FILES ntfs-3g defaults,locale=en_US.UTF-8 0 0
/dev/sdc1 /media/SATA_GAMES ntfs-3g defaults,locale=en_US.UTF-8 0 0
/dev/sda1 /media/WIN_XP ntfs-3g defaults,locale=en_US.UTF-8 0 0
kevin@KJ-Linux:~$

*********************
kevin@KJ-Linux:~$ mount
/dev/sdb1 on / type ext3 (rw,relatime,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,nosuid,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
lrm on /lib/modules/2.6.28-13-generic/volatile type tmpfs (rw,mode=755)
/dev/sdd1 on /media/ARCHIVE type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sde1 on /media/IDE_FILES type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sdc1 on /media/SATA_GAMES type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sda1 on /media/WIN_XP type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
securityfs on /sys/kernel/security type securityfs (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/kevin/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=kevin)
kevin@KJ-Linux:~$

drs305
June 24th, 2009, 03:03 AM
It looks like the partitions you are concerned about are NTFS. These partitions always take ownership at the time of mounting. Since fstab is mounting them as root and you haven't specified an owner, they are owned by root.

NTFS partitions are normally mounted with root as the owner but with rw access to users. You can make yourself the owner at mounting by including this in the options: uid=1000 if you are user 1000. Change it if you have a different user id.


/dev/sda1 /media/WIN_XP ntfs-3g defaults,uid=1000,locale=en_US.UTF-8 0 0


You can also set a group id if you wish, as well as umask, and other settings.

Here are a couple of good references on fstab and mounting:
https://help.ubuntu.com/community/Fstab
http://ubuntuforums.org/showthread.php?&t=283131