Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Hardware & Laptops
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Hardware & Laptops
Problems with hardware & laptops not being detected or supported during or after install.

 
 
Thread Tools Display Modes
Old March 22nd, 2007   #1
Netzilla
First Cup of Ubuntu
 
Join Date: Mar 2007
Beans: 7
Drives Mount Read-Only

I recently re-formatted two of my drives, one internal and one external from FAT32 to ext2 and ext3. However, now both of these drives will only mount read-only. If anyone can help me, I would be very greatful. The drives in question are /dev/hdd1 (internal, ext3) and /dev/sda6 (external, ext2)

******* Contents of /etc/fstab ********
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hdb3 / ext3 defaults,errors=remount-ro 0 1
/dev/hda1 /media/hda1 ntfs defaults,nls=utf8,umask=007,gid=46 0 1
/dev/hda5 /media/hda5 vfat defaults,utf8,umask=007,gid=46 0 1
/dev/hdb1 /media/hdb1 vfat defaults,utf8,umask=007,gid=46 0 1
/dev/hdd1 /media/hdd1 ext3 rw,suid,dev,exec,auto,nouser,async 0 1
/dev/hdb2 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
**************************************

******* Results of fdisk -l ********
Disk /dev/hda: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1216 9767488+ 7 HPFS/NTFS
/dev/hda2 1217 4998 30378915 f W95 Ext'd (LBA)
/dev/hda5 1217 4998 30378883+ b W95 FAT32

Disk /dev/hdb: 6480 MB, 6480101376 bytes
255 heads, 63 sectors/track, 787 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 255 2048256 b W95 FAT32
/dev/hdb2 724 787 514080 82 Linux swap / Solaris
/dev/hdb3 256 723 3759210 83 Linux

Partition table entries are not in disk order

Disk /dev/hdd: 20.4 GB, 20491075584 bytes
255 heads, 63 sectors/track, 2491 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdd1 1 2491 20008926 83 Linux

Disk /dev/sda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 2 4862 39045982+ f W95 Ext'd (LBA)
/dev/sda5 2 2551 20482843+ b W95 FAT32
/dev/sda6 2552 4862 18563076 83 Linux
**************************************
Netzilla is offline  
Old March 22nd, 2007   #2
taurus
Run, little guy, run...
 
taurus's Avatar
 
Join Date: Oct 2005
Location: Jacksonville, FL
Beans: 29,273
Ubuntu 9.04 Jaunty Jackalope
Re: Drives Mount Read-Only

How do you mount those two drives, /dev/hdd1 & /dev/sda6? You can edit /etc/fstab

Code:
gksudo gedit /etc/fstab
and add these two lines to the end of it.

Code:
/dev/hdd1   /media/hdd1   ext3   defaults   0   1
/dev/sda6   /media/sda6   ext2   defaults   0   1
Save the changes. Then, create two mount points and mount them.

Code:
sudo mkdir /media/hdd1 /media/sda6
sudo mount -a
df -h
Now, if you want to be able to write to them, then just change the ownership of those two mount points from root to your login name, assuming it's netzilla.

Code:
sudo chown -R netzilla:netzilla /media/hdd1
sudo chown -R netzilla:netzilla /media/sda6
ls -la /media
__________________
In the world of Linux, who needs Windows and Gates...

Got most of my golden beans at an auction on eBay (with a couple of free drinks).
taurus is offline  
Old March 22nd, 2007   #3
Netzilla
First Cup of Ubuntu
 
Join Date: Mar 2007
Beans: 7
Re: Drives Mount Read-Only

Quote:
Originally Posted by taurus View Post
How do you mount those two drives, /dev/hdd1 & /dev/sda6?
In the case of hdd1, it's just mounted on bootup from the fstab parameters. For the sda6 (my external drive), it's auto-detected by Ubuntu. Prior to the re-format, both of these drives mounted as Read/Write.

Quote:
You can edit /etc/fstab

Code:
gksudo gedit /etc/fstab
and add these two lines to the end of it.

Code:
/dev/hdd1   /media/hdd1   ext3   defaults   0   1
/dev/sda6   /media/sda6   ext2   defaults   0   1
Save the changes. Then, create two mount points and mount them.

Code:
sudo mkdir /media/hdd1 /media/sda6
sudo mount -a
df -h
I've tried various edits of the fstab file, including using the "defaults" setting and while the drives mount, they were still read-only.

Quote:
Now, if you want to be able to write to them, then just change the ownership of those two mount points from root to your login name, assuming it's netzilla.

Code:
sudo chown -R netzilla:netzilla /media/hdd1
sudo chown -R netzilla:netzilla /media/sda6
ls -la /media
Hmmm. Looking at the drive's properties, it does say that "root" is the owner, so this is probably my problem. Will I have to do this manually every time I boot into Ubuntu or is there a way I can configure it to do this automatically?

Thanks for the help.
Netzilla is offline  
 

Bookmarks

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

Forum Jump


All times are GMT -4. The time now is 06:01 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry