LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-23-2008, 02:17 AM   #1
kaiwan
Member
 
Registered: Sep 2006
Posts: 52

Rep: Reputation: 15
usb mounting error: "TODO: have to rethink extra options"


Hi!
I have takeMS usb memory stick, 8gb, ntfs formated.
When I plug it in, my openSuse 11 (kde3) gives me this error message:
"TODO: have to rethink extra options" and refuses to mount it. I tried to format the stick but didnt help. The stick works fine under XP, and worked fine with Ubuntu 8.04. Must be ntfs cause I often exchange files with win computers. My other ntfs usb sticks work fine on suse, only thie one fails.
 
Old 07-23-2008, 07:46 PM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
yes its the format....see if suse has the ntfs-3g package installed please?
 
Old 07-23-2008, 08:01 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Sounds like a dodgy udev rule. Should be a comment methinks.
 
Old 07-23-2008, 09:32 PM   #4
sm4rk0
LQ Newbie
 
Registered: Aug 2007
Location: Serbia
Distribution: slackware-current, linux-2.6.latest-stable :)
Posts: 4

Rep: Reputation: 0
I've just solved the same problem by following this thread.
Please come back here and add "SOLVED:" to the thread title if it works for you.
 
Old 07-24-2008, 01:49 AM   #5
kaiwan
Member
 
Registered: Sep 2006
Posts: 52

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by aus9 View Post
yes its the format....see if suse has the ntfs-3g package installed please?
yes it is installed...
 
Old 07-24-2008, 01:55 AM   #6
kaiwan
Member
 
Registered: Sep 2006
Posts: 52

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by sm4rk0 View Post
I've just solved the same problem by following this thread.
Please come back here and add "SOLVED:" to the thread title if it works for you.
as I can see they are doing HAL paching on Arch. I am not sure how will it work on suse, and as I am newbie it is not a good idea to patch anything myself...
 
Old 07-24-2008, 03:22 AM   #7
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
ok if you have ntfs-3g try amending with root powers your /etc/fstab after making a new mount folder

Code:
mkdir /mnt/8g
then it fstab new line pls...depending on whether you already have sda sdb...etc

/dev/sda1 /mnt/8g ntfs-3g users,rw 0 0

change sda1 to some other thing depending on what you have got....if problems post your current fstab file and make a backup pls
 
Old 07-24-2008, 03:55 AM   #8
kaiwan
Member
 
Registered: Sep 2006
Posts: 52

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by aus9 View Post
ok if you have ntfs-3g try amending with root powers your /etc/fstab after making a new mount folder

Code:
mkdir /mnt/8g
then it fstab new line pls...depending on whether you already have sda sdb...etc

/dev/sda1 /mnt/8g ntfs-3g users,rw 0 0

change sda1 to some other thing depending on what you have got....if problems post your current fstab file and make a backup pls

This worked:
Code:
mount -t ntfs-3g /dev/sdb1 /home/miroslav/sdb1 -o force
This is my fstab:
Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>

proc	/proc	proc	defaults	0	0
sysfs	/sys	sysfs	noauto	0	0
usbfs	/proc/bus/usb	usbfs	noauto	0	0
devpts	/dev/pts	devpts	mode=0620,gid=5	0	0
/dev/disk/by-id/scsi-SATA_Hitachi_HDP7250_GEB531RE021UKB-part3	/	ext3	acl,user_xattr	1	1
/dev/sda7	/media/Data	ntfs-3g	defaults,locale=en_US.UTF-8	0	0
/dev/sda5	/media/Multimedia	ntfs-3g	defaults,locale=en_US.UTF-8	0	0
/dev/sda6	/media/Personal	ntfs-3g	defaults,locale=en_US.UTF-8	0	0
/dev/sda1	/media/XP_disk	ntfs-3g	defaults,locale=en_US.UTF-8	0	0
/dev/disk/by-id/scsi-SATA_Hitachi_HDP7250_GEB531RE021UKB-part4	swap	swap	defaults	0	0
debugfs	/sys/kernel/debug	debugfs	noauto	0	0


/dev/sda4            /data2               ext3       defaults              1 1
/dev/sda4            /data3               ext3       defaults              1 1
There is something strange in it on these lines:
Code:
/dev/sda4            /data2               ext3       defaults              1 1
/dev/sda4            /data3               ext3       defaults              1 1
[/CODE]

Can I remove it ?

Than I could add this for usb:
Code:
mount -t ntfs-3g /dev/sdb1 /home/miroslav/sdb1 -o force
 
Old 07-24-2008, 08:29 AM   #9
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
I am not familar with the force parameter but what you have is a manual mount command and the syntax changes a little if to a fstab entry so try

/dev/sdb1 /home/miroslav/sdb1 ntfs-3g users,rw 0 0

and see if that works pls

2) can you remove it? well is there a partition called /dev/sda4? and do you have those data folders?

Can you remember if you created both or what?.

Maybe your opensuse has got confused but only you know if there should be 2 folders or one.

if 2 folders correct the fstab entry....if 1 folder delete the incorrect fstab entry
 
Old 07-24-2008, 08:41 AM   #10
kaiwan
Member
 
Registered: Sep 2006
Posts: 52

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by aus9 View Post
I am not familar with the force parameter but what you have is a manual mount command and the syntax changes a little if to a fstab entry so try

/dev/sdb1 /home/miroslav/sdb1 ntfs-3g users,rw 0 0

and see if that works pls

2) can you remove it? well is there a partition called /dev/sda4? and do you have those data folders?

Can you remember if you created both or what?.

Maybe your opensuse has got confused but only you know if there should be 2 folders or one.

if 2 folders correct the fstab entry....if 1 folder delete the incorrect fstab entry
I have fixed my parition table. Suse was confused.

I followd your advice and got error message:
Code:
/dev/sdb1 /home/miroslav/sdb1 ntfs-3g users,rw 0 0
Code:
Error opening '/dev/sdb1': Permission denied
Failed to mount '/dev/sdb1': Permission denied
Please check '/dev/sdb1' and the ntfs-3g binary permissions,
and the mounting user ID. More explanation is provided at
http://ntfs-3g.org/support.html#unprivileged
 
Old 07-24-2008, 05:13 PM   #11
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
from the last error link>>>>ALL quoted work not mine.
Why don't the 'user' and 'users' options work in /etc/fstab?
The 'mount' command doesn't invoke the ntfs-3g binary with the needed privilege after it has checked and approved the user is entitled to mount a given device on a specified mount point, hereby the user can't open the device he got the approval in /etc/fstab. This is a problem in the 'mount' utility.

Solution: Use at least NTFS-3G 1.2506 with setuid-root set and make sure the user has access rights to the volume and mount point.

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.

Code:
chown root.ntfsuser $(which ntfs-3g)
chmod 4750 $(which ntfs-3g)
The setuid-root ntfs-3g driver applies the principle of least privilege during its lifetime as a safety measure.
 
Old 07-24-2008, 05:14 PM   #12
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
if setuid causes you any concern....then only let root mount your device pls
 
  


Reply

Tags
ntfs


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
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 7 12-19-2015 01:03 AM
Apply "Advanced Search" options to "My LQ" searches PTrenholme LQ Suggestions & Feedback 22 03-10-2007 08:30 AM
KDE says "An unknown error has occurred" when mounting usb stick with HAL KingPhillius Linux - Hardware 4 12-08-2006 02:18 AM
"Extra" moderators in the "Distro-forums" : Just curious... Megamieuwsel LQ Suggestions & Feedback 3 07-10-2004 04:18 AM
How to modify dial options ( From "pulse" to "tone" ) nykey Linux - Newbie 3 11-24-2003 01:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:41 AM.

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
Open Source Consulting | Domain Registration