LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 08-15-2009, 07:06 AM   #1
elghosto
LQ Newbie
 
Registered: Aug 2009
Posts: 2

Rep: Reputation: 0
accessing other partions/ drives, linux and ntfs


hi everyone, glad to be aboard.
i have tried linux a few times over years with little success. i'm not quitting and need help.

i started because i used to run a lot of boxen on dc projects and fooled around to see how fast i could get clients to run on different installs. also windows activation problems.

i have searched and read and worked and cannot mount or access ntfs drives or partitions. if the os does not do this for me at start i'm done. usually movie players do not work.(ahh, it's working this time)(just urpmi vlc and seems to have broken sound) updates break system. i want to get this system usable and disable updates! i used the knoppix live dvd the other day and it was great. accessed files, played movies and music.
==========================================================
situation: new mandriva 2009.0 powerpack. installed tonight. custom package selection- everything but servers. before reboot ran install updates. after install i urpmi fdisk, ntfs, and the latest smp kernel. installed ntfs-3g.
========================================================
here are some of my settings
Code:
fdisk -l
Disk /dev/sda: 122.9 GB, 122941242880 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xfa93e1ff

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        5291    42499926    7  HPFS/NTFS
/dev/sda2            5292       10424    41230822+   7  HPFS/NTFS
/dev/sda3           10425       14946    36322965    5  Extended
/dev/sda5           10425       10436       96358+  83  Linux
/dev/sda6           10437       14946    36226543+  83  Linux

Disk /dev/sdb: 1000.2 GB, 1000203804160 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xe424474f

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1          13      104391   83  Linux
/dev/sdb2            2679      121601   955248997+   f  W95 Ext'd (LBA)
/dev/sdb3              14        2563    20482875   83  Linux
/dev/sdb5            2679        5100    19454683+   7  HPFS/NTFS
/dev/sdb6            5101      121601   935794251    7  HPFS/NTFS

Partition table entries are not in disk order

Disk /dev/sdc: 8019 MB, 8019509248 bytes
255 heads, 63 sectors/track, 974 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x43b56f4a

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1         974     7823623+  83  Linux

(i'm running off of sda5,sda6)
=========================================================
ls -lh /mnt
Code:
ls -lh /mnt
total 120K
dr-x------ 1 root root 104K 2009-08-11 14:51 ntfs/
drwxr-xr-x 2 root root 4.0K 2009-08-14 19:01 win_c/
drwxr-xr-x 2 root root 4.0K 2009-08-14 19:01 win_c2/
drwxr-xr-x 2 root root 4.0K 2009-08-14 19:01 win_d/
drwxr-xr-x 2 root root 4.0K 2009-08-14 19:01 win_d2/
[root@c-76-99-223-230 fold]# 


[mike@phenom_II ~]$ ls -lh /mnt
total 120K
drwxrwxrwx 1 root root 104K 2009-08-11 14:51 ntfs/
drwxr-xr-x 2 root root 4.0K 2009-08-14 19:01 win_c/
drwxr-xr-x 2 root root 4.0K 2009-08-14 19:01 win_c2/
drwxr-xr-x 2 root root 4.0K 2009-08-14 19:01 win_d/
drwxr-xr-x 2 root root 4.0K 2009-08-14 19:01 win_d2/
the second list changed i believe after installing ntfs-3g
i see permissions changed for ntfs

=========================================================

i just edited fstab to:
Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>

#Entry for /dev/sda6 :
UUID=11220179-ba20-4ee3-8396-df23a65f8b05	/	ext3	relatime	1	1
#Entry for /dev/sda5 :
UUID=ef9f2319-11fd-4c55-9e53-3b4fd4b897c5	/boot	ext3	relatime	1	2
/dev/sda1	/mnt/ntfs	ntfs-3g	auto,user,locale=en_US.UTF-8	0	0
/dev/sda2	/mnt/ntfs	ntfs-3g	defaults,locale=en_US.UTF-8	0	0
/dev/sdb5	/mnt/ntfs	ntfs-3g	user,rw  locale=en_US.UTF-8	0	0
/dev/sdb6	/mnt/ntfs	ntfs-3g	user,rw  locale=en_US.UTF-8	0	0
/dev/sdb5	/mnt/win_c	ntfs-3g user,rw  locale=en_US.UTF-8	0	0
/dev/sda1	/mnt/win_c2	ntfs-3g	user,rw  locale=en_US.UTF-8	0	0
/dev/sdb6	/mnt/win_d	ntfs-3g	user,rw  locale=en_US.UTF-8	0	0
/dev/sda2	/mnt/win_d2	ntfs-3g	user,rw  locale=en_US.UTF-8	0	0
/dev/cdrom	/media/cdrom	auto,rw	umask=0,users,iocharset=utf8,noauto,ro,exec	0	0
none	/proc	proc	defaults	0	0
==========================================================

and i got this:
Code:
Unable to mount ntfs
mntent]: line 11 in /etc/fstab is bad
[mntent]: line 12 in /etc/fstab is bad
[mntent]: line 13 in /etc/fstab is bad
[mntent]: line 14 in /etc/fstab is bad
[mntent]: line 15 in /etc/fstab is bad; rest of file ignored
ntfs-3g-mount: mount failed: Operation not permitted
User doesn't have privilege to mount. For more information
please see: http://ntfs-3g.org/support.html#unprivileged
i looked at suggested site and it says:
Unprivileged block device mounts work only if all the below requirements are met:

1. ntfs-3g is compiled with integrated FUSE support
2. the ntfs-3g binary is at least version 1.2506
3. the ntfs-3g binary is set to setuid-root
4. the user has access right to the volume
5. the user has access right to the mount point

The root user can make an ntfs-3g binary setuid-root as shown below

chown root $(which ntfs-3g)
chmod 4755 $(which ntfs-3g)

In such case the driver will also be able

* to fix common FUSE kernel module loading problems
* to create the required but sometimes incorrectly removed or missing FUSE device file

Please note that using setuid-root can result unforeseen privilege escalation and its usage is discouraged. Only the absolutely trusted users must be granted such access. Below is an example how this can be done for users in the ntfsuser group to be able to mount any NTFS volume if they have also the needed volume access rights.

chown root.ntfsuser $(which ntfs-3g)
chmod 4750 $(which ntfs-3g)

=========================================================

is it supposed to be this difficult?

=======================================================
fstab-ntfs-config-save:

Code:
# Entry for /dev/sdb6 :
UUID=11220179-ba20-4ee3-8396-df23a65f8b05 / ext3 relatime 1 1
# Entry for /dev/sdb5 :
UUID=ef9f2319-11fd-4c55-9e53-3b4fd4b897c5 /boot ext3 relatime 1 2
/dev/cdrom /media/cdrom auto umask=0,users,iocharset=utf8,noauto,ro,exec 0 0
# Entry for /dev/sda5 :
UUID=55E704C6F071BBC4 /mnt/win_c ntfs-3g user,noauto 0 0
# Entry for /dev/sdb1 :
UUID=24F08654F0862C5C /mnt/win_c2 ntfs-3g user,noauto 0 0
# Entry for /dev/sda6 :
UUID=C147CACA0A493A19 /mnt/win_d ntfs-3g user,noauto 0 0
# Entry for /dev/sdb2 :
UUID=CAFC71FEFC71E4DB /mnt/win_d2 ntfs-3g user,noauto 0 0
none /proc proc defaults 0 0
==========================================================

mtab:

Code:
/dev/sda6 / ext3 rw,relatime 0 0
none /proc proc rw 0 0
/dev/sda5 /boot ext3 rw,relatime 0 0
/dev/sda1 /mnt/ntfs fuseblk rw,allow_other,blksize=4096 0 0
/dev/sda2 /mnt/ntfs fuseblk rw,allow_other,blksize=4096 0 0
/dev/sdb5 /mnt/ntfs fuseblk rw,allow_other,blksize=4096 0 0
/dev/sdb6 /mnt/ntfs fuseblk rw,allow_other,blksize=4096 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
none /sys/fs/fuse/connections fusectl rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
gvfs-fuse-daemon /home/mike/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,user=mike 0 0
/dev/sr1 /media/cdrom iso9660 ro,nosuid,nodev,users,iocharset=utf8 0 0
=======================================================

from 'computer' i see,win_ c, win_c2, win_d, win_d2.
click and get- unable to mount location ntfs-3g-mount: user has no write access to mountpoint /mnt/win_c. (thought write access was default for ntfs-3g)



i do not see- ntfs.
click on filesystem then mnt and click on win_c and folder opens but is empty. click on ntfs folder in mnt and i have access to files on probably sdb6.

i do not see linux ext2 or ext3 fs. i have a gentoo install on sdb1, sdb3. i would like to be able to edit configuation files from mandriva if possible

during install i set user and rw to everything. i used ntfs configuration tool from system-administration to grant access. ????????

(edit) now i can see other linux partions. can't edit though. i need to edit grub.conf on gentoo.

i guess i just need to set right mount points and permissions. i'm getting numb. can some one make this easy for me?

Last edited by elghosto; 08-25-2009 at 11:32 AM. Reason: clean up
 
Old 08-16-2009, 09:32 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Posts: 3,366
Blog Entries: 33

Rep: Reputation: 216Reputation: 216Reputation: 216
Hi, Welcome to LQ!

LQ has a fantastic search function that may save you time waiting for an answer to a popular question.

With over 3 million posts to search it's possible the answer has been given.

/etc/fstab
access to my windows partitions, 1 ntfs, 3 vfat (fat32)
Code:
# Entry for /dev/sda1 :
UUID=E098342C98340416 /mnt/win_c ntfs-3g defaults 0 0
# Entry for /dev/sdb8 : utf8 is case sensitive with fat32
UUID=4807-901A /mnt/win_c2 vfat iocharset=utf8 0 0
# Entry for /dev/sda11 :
UUID=4807-8FD4 /mnt/win_d vfat iocharset=utf8 0 0
# Entry for /dev/sdb9 :
UUID=49A7-8385 /mnt/win_d2 vfat iocharset=utf8 0 0
access to my other linux installs on sdc*
I don't want these auto mounted, or in the search tree (locate, etc)
To get read/write access by a normal user, I move the mount points to my home dir.

you need to create the directory path (just empty folders) then change the mount points.

you will end up with the stale folders still on the system in /mnt, but you can delete those later.

It does not change the sdc* system, but I can edit the files easily. What you want!
Code:
# Entry for /dev/sdc1 :
UUID=3ad51d2e-2dac-4228-92bf-19109dd80978 /home/glenn/local/sdc/sdc1 ext3 noauto 1 2
# Entry for /dev/sdc6 :
UUID=54fb2088-152e-4377-a4f6-e8ad778a4858 /home/glenn/local/sdc/sdc6 ext3 noauto 1 2
# Entry for /dev/sdc7 :
UUID=b1c9ad38-1e0d-4da1-8d3e-533ca3ec300c /home/glenn/local/sdc/sdc7 ext3 noauto 1 2
to clean up, run from a cli (shell) as root...
Code:
rm -rf /mnt/(name of dir)
Warning, rm -rf is very dangerous, wait till you are sure first....
edit..

to mount the linux partitions...
Code:
glenn@GamesBox:~$ mount /dev/sdc1 /home/glenn/local/sdc/sdc1 -t ext3
mount: only root can do that
glenn@GamesBox:~$ sudo mount /dev/sdc1 /home/glenn/local/sdc/sdc1 -t ext3
glenn@GamesBox:~$
change the drive letters to those you use.
end edit..

See how you go, btw thanks for an informational post, details, we love details.

regards Glenn

Last edited by GlennsPref; 08-16-2009 at 09:42 PM. Reason: Warning, rm -rf is very dangerous
 
Old 08-16-2009, 10:15 PM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,601
Blog Entries: 25

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
Hi,

Welcome to LQ!

I would like to add to what 'Glen' stated. When you create a post of your type of content you should use the vbcode tags # or Quote. These are at the top of the reply window, # is code while the Quote is the balloon at the left of the #. By using the vbcode tags your post will be cleaner therefore easier to follow.

I suggest that you also look at the next two links;
 
Old 08-18-2009, 01:54 AM   #4
elghosto
LQ Newbie
 
Registered: Aug 2009
Posts: 2

Original Poster
Rep: Reputation: 0
thanks for replies, onebuck and glennspref.

i think the steps i took should have worked.

had a lot of problems adding package and updating.

now am on fedora core 11. one desktop. installed packages and updates. set system-preferences-authorizations to grant me access to everything and all is good.

installed vlc, updated mplayer, installed win32 codecs and rebooted and have video. i'm on my way!
 
Old 08-18-2009, 10:06 AM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,601
Blog Entries: 25

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
Hi,

Glad to hear things are joy.

You can mark the post as [SOLVED] via the 'Thread Tools'.
 
  


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
Crash when accessing LVM2 partions using SAMBA Enyo Linux - Software 3 03-23-2009 05:03 PM
accessing ntfs file system drives swarnimsoni Linux - Newbie 7 10-14-2007 07:10 AM
accessing my other partions pungvarg Linux - Newbie 6 09-21-2006 05:47 PM
Accessing NTFS drives through Slackware punksoul257 Slackware 21 05-16-2006 03:30 AM
Accessing my ntfs drives Cheese Linux - Software 2 12-02-2001 03:28 PM


All times are GMT -5. The time now is 07:02 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