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? |
hi,
-r switch for read only -w switch for read/write dont give both so either give -w or -o rw regards, Tom. |
Quote:
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? |
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. |
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 |
just a note about mounting sd cards
I was having nothing but trouble for the longest time mounting my sd cards with my usb card reader and thought it was either my internal hardware or just Linux to blame. Even after I switched to a newer motherboard (to take advantage of hardware virtualization) the usb card reader didn't work well. I also often suspected the usb hub I use was to blame but then trying bypassing it I could still have trouble.
So what hasn't giving me any trouble at all with the card reader is I got an internal 3.5" card reader which includes a usb port on it, and every single time I plug my card reader into the usb port on the internal card reader it picks it up in a matter of seconds. Still, though on this new internal card reader, the actual sd card reader included on it doesn't seem to want to read any sd cards. Still, I am happy, no more toying for minutes to hours trying just to access my files, and yes I was trying to mount command and the different switches, and chown and chmod and ls /dev | grep sd and df and getting pretty frustrated. This is on Ubuntu Lucid 64bit. |
I'm trying to do the same thing and keep getting read-only file system
Have mounted the drive with: mount -t hfsplus -o rw /dev/sde2 /mnt/machd mount -t hfsplus /dev/sde2 /mnt/machd -rw (The MAN documents specify rw as for read/write not w by itself under the 'Mount Options') I've tried chmod 777 the mounted drive and still get a read-only directory. Logged in as root, Debian 6. Any solution that doesn't involve using fstab? Thanks Brian |
I don't use Debian but you might take a look at the link below. It's more likely a matter of not having the right programs installed to do this as Apple is notoriously proprietary. If the link below doesn't do it, I got a number of results from google with "hfsplus filesystem debian linux".
http://raamdev.com/2008/mounting-hfs...ess-in-debian/ |
Quote:
what type of drive is this? hda is typically IDE connection. what is the file system type? ext2/3/4, NTFS, FAT32, other? answer those questions and we will be more then happy to help troubleshoot what is going on. also have you verified that the device is labeled /dev/hda# either via fdisk -l or by monitoring /var/log/messages as you connect the drive if it is external, if it is internal you will still find it there, but you will have to dig much deeper to locate the data. |
Hfs+ formatted 2.5" usb external drive
|
Quote:
As you have not stated the flavor of linux you are using but you are issuing sudo commands im guessing you are running Ubuntu: Code:
1) sudo apt-get install hfsplus hfsprogs hfsutils |
Quote:
Already tried the -o force option and even though it worked. It killed SSH and couldn't connect after. |
Quote:
|
All times are GMT -5. The time now is 07:33 AM. |