Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > Debian Linux Help
Reload this Page fstab issue, permissions issue with mount
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Debian Linux Help Discussions related to Debian GNU/Linux.

Reply
 
Thread Tools Display Modes
Old 01-11-2007   #1 (permalink)
Just Joined!
 
Join Date: Jan 2007
Posts: 11
fstab issue, permissions issue with mount

hey guys,

i just formatted my maxtor hard drive and added it to my linux computer. It is in ext3 format. I mounted it by modifying my fstab. I can't seem to be able to write to it. It gives a permission error. Here is my fstab part for the new maxtor drive.

/dev/hdc1 /mnt/maxtor ext3 rw,user,auto 0 0
hyeteck is offline   Reply With Quote
Old 01-11-2007   #2 (permalink)
Linux Guru
 
bryansmith's Avatar
 
Join Date: Nov 2004
Location: /Ontario/Canada
Posts: 2,616
Try this:
Code:
/dev/hdc1	/mnt/maxtor	ext3	rw,user,auto,umask=000	0	0
Bryan
__________________
Looking for a distro? Look here.
"There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
Queen's University - Arts and Science 2008 (Sociology)
Registered Linux User #386147.
bryansmith is offline   Reply With Quote
Old 01-11-2007   #3 (permalink)
Just Joined!
 
Join Date: Jan 2007
Posts: 11
hmm...now i get the following error when i try to click on the drive from my system:/media

mount: wrong fs type, bad option, bad superblock on /dev/hdc1,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
hyeteck is offline   Reply With Quote
Old 01-11-2007   #4 (permalink)
Just Joined!
 
Join Date: Jan 2007
Posts: 11
When i have the following set in the fstab, it lets me write to it as root but not as a regular user.

/dev/hdc1 /mnt/maxtor ext3 rw,user,auto 0 0

any ideas what i can do?
hyeteck is offline   Reply With Quote
Old 01-11-2007   #5 (permalink)
tpl
Linux Newbie
 
Join Date: Jan 2007
Location: catskill, NY
Posts: 210
have you looked at the permissions of /mnt/maxtor?
who has permissions to write?
tpl is offline   Reply With Quote
Old 01-11-2007   #6 (permalink)
Super Moderator
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, INDIA
Posts: 18,411
post the output of fdisk -l command.







Casper
__________________
New Users: Read This First


devils casper is offline   Reply With Quote
Old 01-11-2007   #7 (permalink)
Just Joined!
 
Join Date: Jan 2007
Posts: 11
this is the output of the fdisk -l command for the drive i want to mount

Disk /dev/hdc: 122.9 GB, 122942324736 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 1 14946 120053713+ 83 Linux
hyeteck is offline   Reply With Quote
Old 01-11-2007   #8 (permalink)
Super Moderator
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, INDIA
Posts: 18,411
add this code in /etc/fstab file.
Code:
/dev/hdc1     /mnt/maxtor    ext3    defaults 0 0
execute 'mount -a' after editing fstab file.







Casper
__________________
New Users: Read This First


devils casper is offline   Reply With Quote
Old 01-11-2007   #9 (permalink)
Just Joined!
 
Join Date: Jan 2007
Posts: 11
same situation. I can read and write with root and can only read with my user and not write
hyeteck is offline   Reply With Quote
Old 01-11-2007   #10 (permalink)
Super Moderator
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, INDIA
Posts: 18,411
okk ! add uid and gid in the mount line.
Code:
/dev/hdc1        /mnt/maxtor     ext3   defaults,uid=<user_id>,gid=<group_id> 0 0
check user's id and gid though 'id' command.




Casper
__________________
New Users: Read This First


devils casper is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
 

Free Magazines
Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe
Systems Management News, the newspaper for IT systems administration and data center managers!
Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 02:11 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0