LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 04-26-2007, 09:57 PM   #1
dvlchd3
LQ Newbie
 
Registered: Apr 2007
Posts: 6

Rep: Reputation: 0
mount usb harddrive


I am having trouble mounting my usb harddrive. It is at /dev/sdb1 and i have edited /etc/fstab so it includes:

/dev/sdb1 /media/usb1 auto noauto,users,rw 0 0

I can mount it fine, however, I cannont write to the disk. I am running Debian with kernel: 2.6.18-4-486.

I have tried a chmod +w, however, it says that it is a read-only filesystem. How do I go about mounting my harddrive so I can write to it?

Thanks in advance

DAN
 
Old 04-26-2007, 10:34 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You didn't mention what the filesystem is used on the partition, so I will assume that it is fat32. If that is the case, you can't use the chmod command.

Instead add the option "uid=<yourusername>" and optionally "gid=<yourgroup>".
This will make you the owner and give you access that way.
Using "fmask=111" and dmask="000" will do the same thing, allowing you to access the drive as an "other" user.
The second option is similar to "umask=000" which gives "rwx" permissions for everyone, but for mass storage devices, using "rw" for files is a better policy. But the decision is yours.
 
  


Reply



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
Cannnot mount USB HardDrive in a certain computer mmCC Linux - Hardware 6 03-09-2007 03:15 PM
Cannot mount/find USB external harddrive Jac01 Linux - Hardware 3 12-03-2006 08:47 PM
installing slackware to usb harddrive...no /dev/sda2 on disk to mount for cfdisk surfbass Slackware 7 05-09-2006 07:37 AM
can't mount external usb ntfs harddrive etienne.navarro Mandriva 1 10-27-2005 12:54 PM
mount usb external harddrive, probably HFS format kr!s Linux - Hardware 2 02-02-2005 12:36 AM

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

All times are GMT -5. The time now is 02:29 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
Open Source Consulting | Domain Registration