LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
 
LinkBack Search this Thread
Old 02-13-2007, 12:03 PM   #1
fultron
LQ Newbie
 
Registered: Apr 2005
Posts: 27

Rep: Reputation: 15
Mounting Hard drive partition as writable with -rw swich using mount command


I've been having problesm mounting /dev/hda2 as a read/write filesystem. I am pretty sure i am doing this right, and I have read the man file and googled for more information. Here is what i tried:

sudo mkdir /mnt/hda2
sudo mount /dev/hda2 /mnt/hda2 -rw
sudo chmod 777 /mnt/hda2

When I run the third command, I am told that the filesystem is mounted read only. Didn't the -rw switch mount it as read/write? What am I doing wrong?
 
Old 02-13-2007, 12:22 PM   #2
nirmaltom
Member
 
Registered: Jun 2005
Location: India
Distribution: Redhat,Fedora,DSL,Ubuntu
Posts: 238

Rep: Reputation: 30
hi,
-r switch for read only
-w switch for read/write

dont give both
so either give -w or -o rw

regards,
Tom.
 
Old 02-13-2007, 12:28 PM   #3
fultron
LQ Newbie
 
Registered: Apr 2005
Posts: 27

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by nirmaltom
hi,
-r switch for read only
-w switch for read/write

dont give both
so either give -w or -o rw

regards,
Tom.

Thanks for the response tom.

However, mount /dev/hda2 /mnt/hda2 -w still only mounts the partition read only. same with -o rw

Is there any UI in UBUNTU to do this?

Last edited by fultron; 02-13-2007 at 12:41 PM.
 
Old 02-13-2007, 12:47 PM   #4
nirmaltom
Member
 
Registered: Jun 2005
Location: India
Distribution: Redhat,Fedora,DSL,Ubuntu
Posts: 238

Rep: Reputation: 30
hi,
is the filesystem ntfs?
if not,give the mount command as

mount -t <fstype> -o rw <devicename> <mountpoint>

if ntfs,u have to download ntfs-3g driver.
regards,
Tom.
 
Old 02-13-2007, 12:47 PM   #5
oskar
Senior Member
 
Registered: Feb 2006
Location: Austria
Distribution: Ubuntu 8.04
Posts: 1,130

Rep: Reputation: 45
system - administration - disks.

Most of the time the auto detection feature works, but when in doubt specify the filesystem, like:
mount -t vfat ...
for example
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting USB drive as writable via Samba connections. SkipDaddy Slackware 1 10-03-2006 05:05 AM
Making a hard drive only writable to certain users, ro to everyone else. jon_k Linux - Software 3 05-23-2005 05:42 AM
mounting hard drive partition write for normal users jojotx0 Linux - Hardware 1 04-19-2005 12:10 PM
Having trouble mounting a vfat partition on my slave hard drive eyebrowsoffire Linux - General 27 10-10-2004 08:45 PM
Troubles with mounting hard-drive. Cannot even mount or access in root. eBopBob Linux - Hardware 4 08-19-2004 06:09 AM


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