Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have just added a second 1TB HD to my Ubuntu box and I can see it listed when I run blkid. But how do I

  1. reference it so I can use it as local storage
  2. share it on my LAN
share|improve this question
have you created a filesystem and partitions on it? – Kempe May 6 '12 at 20:27
No I don't think so. I formatted it as mac journalled and it is visible in Ubuntu but I dont know do I have to mount it or something? Perhaps reformat it? – travega May 6 '12 at 20:42
up vote 8 down vote accepted

Here's what you want to do:

First, open up disk utility and select your hard drive in the sidebar:

enter image description here

Now, click the little "Create Partition" icon. Make sure you're selecting the right drive, this is the dangerous part!

enter image description here

Now, lets get this drive mounted on our computer.

enter image description here

Click that, and then it will mount on your computer. Navigate to it and then right click on it, then select Properties. Navigate to the "Sharing" tab:

enter image description here

Then, check the "Share This Folder" box.

enter image description here

Select "Install Service".

enter image description here

Select "Install".

enter image description here

Then you will see that - enter in your password and follow the rest of the prompts.

When its done, it will ask you to install another piece of software, and then when that is done it will ask to restart your session - to do that, save any of your other work, and then click "Yes".

Come back in, and then find the directory (folder) that you want to share, and then share it like we did above (it might already be shared, I had two different computers and I had to check it on one computer, and on the other it was already done. shrug)

Anyway, to connect to it on your other computer, click the "Browse Network" item in the Nautilus sidebar:

enter image description here

And then find the share that we want to connect to, and then just go from there! Enjoy the shared networking goodness! :)

share|improve this answer
  1. launch gparted. (if its not installed "sudo apt-get install gparted")

  2. select the disk from the drop-down menu to the right.

  3. right click on the disk and select new if available, else select format to and select ext4 or someother linux format
  4. press the green checkmark at the top to commit your changes

enter image description here enter image description here enter image description here enter image description here

Or you could keep it as HFS, but i would guess that if you going to have it in your ubuntu box it might be wiser to have it formatted to a Linux format. link

After you have created the partition you will have to make sure that it get mounted every time, first create a mountpoint

  1. eg. sudo mkdir /media/newname and setup wanted permissions eg. sudo chmod 777 /media/newname
  2. open up fstab and add a line to it: "sudo gedit /etc/fstab" and add something like /dev/sdbX /media/newname ext4 defaults 0 2 (you can see the sdbX part in gparted)
  3. remount with "sudo mount -a" and make sure it worked

fstab help

After that is done and if samba is installed you should be able to just right click the new folder and select share. a link on how to setup samba

share|improve this answer
So once I have reformatted it who do I share it over my network? I hear talk of Samba?? – travega May 6 '12 at 21:04
If I format the disk as ext4 will is be writable when I mount it in OS X? – travega May 7 '12 at 1:23
if you mean as a network resource sure. if you mean physically mount the disk in a osx it is possible… – Kempe May 7 '12 at 7:06
chmod 777: nonononono! Never ever run chmod 777. It is practically never required! Not even for "testing purposes". If the file is readable, then it's readable. If it's writable by the user or group that need to write to it, then it's writable. There is absolutely zero need to give everyone write permissions, and forgetting to chmod it back to something sane is exactly how multinationals get hacked. Just don't do it. Ever. I wrote an introduction of Unix permissions. Please read it! – Carpetsmoker Mar 13 at 6:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.