LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-17-2009, 04:42 AM   #1
Iwantslack
Member
 
Registered: Dec 2008
Posts: 31

Rep: Reputation: 2
Mounting Problems (Localized)


Hy Slackers,

I got a small Problem. I build a friend of mine a new PC and Put slackware on it (what else ). He got an External USB HDD with lots of Photos on it. The Problem is that only 11.2GB of 19.7GB are shown in Konqueror. I found out that its a Prob with german "Umlaute" (Ř÷ń).
I fount a way to mount the drive Manually with that command: "mount /dev/hdb1 /mnt -o iocharset=iso8859-1". Then everything works fine.
But how can i automate this or how can i use the mount command as a normal user?
I changed LC_ALL and/or LANG option to iso8859-1, but mounting is unaffected.


PS: an automated Solution (like kde uses the iso8859-1 option for the automount) is prefered


Sry for my english
 
Old 05-17-2009, 05:23 AM   #2
ozanbaba
Member
 
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 14.1
Posts: 671

Rep: Reputation: 94
check documentation of fstab
 
Old 05-17-2009, 06:11 AM   #3
Iwantslack
Member
 
Registered: Dec 2008
Posts: 31

Original Poster
Rep: Reputation: 2
Already tried to edit fstab...but no luck
 
Old 05-17-2009, 06:22 AM   #4
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
something like:

Code:
/dev/hdb1       /mnt       auto        noauto,users,iocharset=iso8859-1  0   0
You may also want to add yourself to the right groups such as 'plugdev' so that you can mount it as user via HAL.
 
Old 05-17-2009, 07:50 AM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware«
Posts: 11,281
Blog Entries: 3

Rep: Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446
Hi,
Quote:
Originally Posted by Iwantslack View Post
Already tried to edit fstab...but no luck
You edit '/etc/fstab' as root.

Quote:
excerpt from 'man fstab';

fstab - static information about the filesystems
SYNOPSIS
#include <fstab.h>
DESCRIPTION
The file fstab contains descriptive information about the various file systems. fstab is only read by programs, and not written; it is the duty of the system administrator to properly create and maintain this file. Each filesystem is described on a separate line; fields on each line are separated by tabs or spaces. Lines starting with '#' are comments. The order of records in fstab is important because fsck(8), mount(8), and umount(8) sequentially iterate through fstab doing their thing.
 
Old 05-22-2009, 08:39 AM   #6
Iwantslack
Member
 
Registered: Dec 2008
Posts: 31

Original Poster
Rep: Reputation: 2
Ok... so far so good
I did the fstab edeting like texmex told me (yes, i know that only root can edit it )
The user is in the group plugdev too, but /mnt is not accessable for the normal user.
so i put the path in fstab from /mnt to /media/zip0 (just for testing). As soon as the drive is mounted the user go no permission to access the /media/zip0 folder. Before mounting the drive it was accessable....

Any suggestions ?
 
Old 05-22-2009, 08:43 AM   #7
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Not sure what the problem is, maybe see here:
http://www.linuxquestions.org/questi...ml#post2916940
 
Old 05-22-2009, 08:57 AM   #8
Iwantslack
Member
 
Registered: Dec 2008
Posts: 31

Original Poster
Rep: Reputation: 2
The Prob is, that the user cant access the folder that i edit into the fstab line. As soon as the drive is mounted the user cant access the folder where it is mounted to. Only root can access the drive.
 
Old 05-22-2009, 09:14 AM   #9
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Well, try following the guide I posted, it might solve the problem.
 
Old 05-22-2009, 11:13 AM   #10
Iwantslack
Member
 
Registered: Dec 2008
Posts: 31

Original Poster
Rep: Reputation: 2
i did a fresh reinstall of slackware 12.2 on my testing machine. installed all updates, nvidia drivers and my SlackPack (couple of packages like games, codecs etc. ).
with adduser i made an user with all groups that you mention in your post. then i edit fstab like you told me.
When the drive isnt mounted, i can access the /mnt folder.
When the drive is mounted, i cant access the /mnt folder.

As soon as i mount the USB drive, every Folder, even when i create a new one as a normal user and use it in fstab to mount the drive into it, it becomes unaccessable. the small lock appears at the folder . With the root account i can access the folder. I really dont know what else i can do......
 
Old 05-22-2009, 11:23 AM   #11
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware«
Posts: 11,281
Blog Entries: 3

Rep: Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446
Hi,

Post your '/etc/fstab' and your 'groups' for the user in question;

Code:
example groups user;

users floppy audio video cdrom plugdev
 
  


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
Cannot get Thunderbird 1.0.6 localized in nl-NL (FC4) znerd Fedora 0 08-15-2005 03:18 PM
Best way to put localized/personal commands kaon Slackware 1 11-07-2004 11:12 AM
to build a localized desktop scng Linux - Newbie 0 09-07-2004 11:13 AM
what would you use for localized chat LinuxLala Linux - Software 0 08-29-2004 02:03 PM
console is localized to Chinese --how do I turn it off ?? KWTm Linux - Software 0 08-19-2004 06:54 PM


All times are GMT -5. The time now is 06:38 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration