Sign in with
Sign up | Sign in
Your question
Solved

can't read/write to newly installed HDD

Last response: in Linux/Free BSD
Share
June 26, 2013 4:37:18 PM

Gents:

WEhen I installed a new 1-T boot HDD in a systems build, I repurposed the removed 250G sata boot-drive to my legacy system mas the 3rd HDD. After install, I formatted and partitioned . Though I pushed-the-keys it is still strangely **owned** by root ... and like #2 HDD(owned by "me" somehow) in that system is manually mounted as needed.

Now I cannot read/write to that newly installed drive, though it appears in system tools to be functioning properly. To read/write I imagine I need to take ownership of that 3rd drive, but I have failed using the incantation:

sudo chown me /dev/sdc1

But that does nothing .... please advise

Best solution

June 26, 2013 6:43:50 PM

Apart from partitioning, you have to mount this drive somewhere on your file system. As root:
  1. # mkdir /myolddrive
  2. # mount /dev/sdc1 /myolddrive
  3. # chown -R <yourusername>.<yourgroupname> /myolddrive
Share
June 26, 2013 7:57:14 PM

Yes I have done all that and it **fails**:

the HDD device is " /dev/sdc1" and mounted at: "/media/Third Volume"

chown: cannot access `/media/Third': No such file or directory
chown: cannot access `Volume': No such file or directory

My 2nd HDD is mounted at /media/Next Volume" and works-a-charm.


Alabalcho said:
Apart from partitioning, you have to mount this drive somewhere on your file system. As root:
  1. # mkdir /myolddrive
  2. # mount /dev/sdc1 /myolddrive
  3. # chown -R <yourusername>.<yourgroupname> /myolddrive


m
0
l
Related resources
June 27, 2013 8:45:40 AM

Put second parameter of mount command in quotes (or press <TAB> after typing Third)
  1. # mount /dev/sdc1 "/media/Third Volume"

Better yet - make the folder without spaces, you will safe yourself lot of headache ;) 
m
0
l
June 27, 2013 9:40:26 AM

Yes I see, including the space was a terrible blunder (even tho it works by happenstance? for New Volume). The question now is: how do I **change** the name of the mount-point from:
/media/Third Volume ... to
/media/ThirdVolume ??

My disk-tools do not display an obvious remedy ... the task is never considered in the way of a string-change. I've GOOGLED ... and been unable to find addressed that issue of mount point name-change.

Nothing resides on that 3rd HDD except a lost/found fyle, so I **could** reformat and re-partition if that is the easiest way. Then I presume I get to rename the mount-point using a connected string. Do you think this is the best try?

Alabalcho said:
Put second parameter of mount command in quotes (or press <TAB> after typing Third)
  1. # mount /dev/sdc1 "/media/Third Volume"

Better yet - make the folder without spaces, you will safe yourself lot of headache ;) 


m
0
l
June 27, 2013 9:57:41 AM

If you are just mounting manually, simply unmount the drive with #umount /mnt/mountpoint
Then remove the created directory and make a new one with the correct path name.

If you are letting your file manager auto mount and you are having this issue you likely you need to rename your partition label. You can do this via software 'gparted'

Open gparted
unmount drive
right click on drive -> select 'label' option
m
0
l
June 27, 2013 11:28:59 AM

BigS:

You have my brain boiling. I **cannot write-to**, but I can already mount/unmount the 3rd disk from DISK UTILITY or PLACES without issue. There exists **NO** directory on that 3rd HDD. The lost/found fyle automagically appeared after I re-formatted that old disk to reuse. It **used** to be the boot-disk for my new-built system, but got replaced by a 1-T.

All that may not be relevant, but I assure you I made no directory and placed no data on that newly reformated/partitioned disk. It simply came-up as /dev/sdc1 ... and got(?) a mount-point named as /media/Third Volume. I'm not sure whether it was cli FDISK alone that I used or that and Ubunty DISK UTILITY. After I wired up the hardware I knew I needed to whipe clean the disk, but Linux instructions never strike me as clear or unambiguous. Stuff got pretty confusing for me ... anyrate I hacked around till "sudo fdisk -l" and gui DISK UTILITY seemd to look like my working HDDs ... but no notion of-course whether the disk was writeable or not. It wasn't !

BTW: What does (the command?) **lable** do? I remember that term from the GUI tool.


skittle said:
If you are just mounting manually, simply unmount the drive with #umount /mnt/mountpoint
Then remove the created directory and make a new one with the correct path name.

If you are letting your file manager auto mount and you are having this issue you likely you need to rename your partition label. You can do this via software 'gparted'

Open gparted
unmount drive
right click on drive -> select 'label' option


m
0
l
June 27, 2013 2:49:40 PM

Skittle & Alabalcho: thanks for your patience. Between advice from the two of you I can now access my 3rd hard-drive. I never knew that GPARTED allowed you to change the mount-point ... and I surely would never imagine that:

sudo chown -R me.me /media/ThirdVolume .....

...would change ownership of the HDD. You both deserve credit for my system working. But, I must pick one "solution" ... so ... I flipped a coin and Alabalcho won. Thanks again to both for your skill & patience.
m
0
l
!