PDA

View Full Version : [ubuntu] Can't write to my new harddrive



dcsii
August 2nd, 2009, 05:28 PM
Ok first I'll say I apologize if this is somewhere else but I can't find it cause I'm new to posting and searching here. I've been getting by with just googling and leaving things as is and this is a big change that I hadn't done yet.

I use Hardy Heron, but only can't find anything that helps. I'd tried working with this:
https://help.ubuntu.com/community/InstallingANewHardDrive

I'm not sure if I did this right


# /etc/fstab: static file system information.
#
# -- This file has been automaticly generated by ntfs-config --
#
# <file system> <mount point> <type> <options> <dump> <pass>

proc /proc proc defaults 0 0
# Entry for /dev/sda1 :
UUID=dda34dd6-3e59-4e43-91ee-90024fd9616e / ext3 relatime,errors=remount-ro 0 1
# Entry for /dev/sda5 :
UUID=e83b4a91-c7f1-4e6c-ba0e-b19bc6f47b91 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
/dev/sdb1 /media/other vfat(rw,nosuid,nodev,uhelper=hal,shortname=mixed,u id=1000,utf8,umask=077,flush) 0 0
Since at one point I had mounted it but was unable to write, I wrote in some code from here: http://ubuntuforums.org/showthread.php?t=217009
Specifically:


sudo apt-get update
sudo apt-get upgrade
sudo apt-get install ntfs-config
gksu ntfs-config
Then when trying to write in terminal


sudo mount -a
I get the following error:


sudo: unable to resolve host Media-System
mount: unknown filesystem type 'flush)'
I really think I'm over my head and it'd be helpful if explained in a way that's so easy a caveman could do it.

LinuxRules1
August 2nd, 2009, 05:45 PM
Try typing this in terminal


sudo blkid

you should see a list like this


/dev/sda1: UUID="e8d5cb93-5baf-41e5-b904-3c9721052e9e" TYPE="ext3"
/dev/sda5: TYPE="swap" UUID="e0a34d98-9ae4-4a51-a24a-d2acf1007be2"

look for /dev/sdb and copy the UUID to the /etc/fstab file like this



#/dev/sdb
UUID=uuid of drive /media/drive ntfs-3g defaults,locale=en_US.utf8 0 0

Then it should be able to be mounted

Also make sure you install ntfs-3g by typing this into terminal


sudo apt-get install ntfs-3g

dcsii
August 2nd, 2009, 06:21 PM
I'm not sure what information I need to give but after following all that and doing a reboot to make sure I get the same message when trying to access the drive.

It's in a pop-up window that says:
"Cannot mount volume.
You are not privileged to mount this volume"

LinuxRules1
August 2nd, 2009, 06:47 PM
try going into terminal and typing in



sudo mount /media/(your drive)

dcsii
August 2nd, 2009, 07:15 PM
Ok so I typed:


sudo mount /media/drive
and it output the following:


NTFS signature is missing.
Failed to mount '/dev/sdb1': Invalid argument
The device '/dev/sdb1' doesn't have a valid NTFS.
Maybe you selected the wrong device? Or the whole disk instead of a
partition (e.g. /dev/hda, not /dev/hda1)? Or the other way around?
I'm not sure what else to add and want to say thanks for the help so far

LinuxRules1
August 2nd, 2009, 07:16 PM
Make sure that you put a # before /dev/sdb

aslo, what type of partition did you put on the drive?

dcsii
August 2nd, 2009, 07:26 PM
This is what the new /etc/fstab looks like:


# /etc/fstab: static file system information.
#
# -- This file has been automaticly generated by ntfs-config --
#
# <file system> <mount point> <type> <options> <dump> <pass>

proc /proc proc defaults 0 0
# Entry for /dev/sda1 :
UUID=dda34dd6-3e59-4e43-91ee-90024fd9616e / ext3 relatime,errors=remount-ro 0 1
# Entry for /dev/sda5 :
UUID=e83b4a91-c7f1-4e6c-ba0e-b19bc6f47b91 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
#/dev/sdb1
UUID=4A75-22FF /media/drive ntfs-3g defaults,locale=en_US.utf8 0 0


The partition is set as fat32

merlinus
August 2nd, 2009, 07:46 PM
If formatted as fat32, then that line will not work.

Try this

#/dev/sdb1
UUID=4A75-22FF /media/drive vfat uid=1000,umask=022 0 0

dcsii
August 2nd, 2009, 08:22 PM
Ok so that seems to have worked.

Thanks a lot, both of you

merlinus
August 2nd, 2009, 08:33 PM
Excellent! Have fun...