mounting a harddisk partition

Asked by hallenrm

I recently encountered problems while connecting to the internet using my broadband connection, when everything failed a reinstalled lucid lynx. It is now installed on a fresh partition. I want to access my files in the earlier installation that is on sda1. How can I do that?

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Aruna Hewapathirane
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
Aruna Hewapathirane (aruna-hewapathirane) said :
#1

The command: mount

Is responsible for mounting file-systems. The syntax for this command is quite simple (remember that mount must be run with super user privileges to change the system) so:

sudo mount /dev/sda1 /mnt

Will mount the file-system on /dev/sda1 (which may be a USB drive, a SATA drive or a SCSI drive) into the folder /mnt. That means that going into /mnt will show you the file-system which is on /dev/sda1.

Reference -> https://help.ubuntu.com/community/Mount

Revision history for this message
hallenrm (hallenrm-yahoo) said :
#2

I had already tried that, but I cannot locate /mnt anywhere. Where can I find that?

Revision history for this message
hallenrm (hallenrm-yahoo) said :
#3

I accidently pressed the "That answered my question", which is not the case!

Revision history for this message
Marc Stewart (marc.stewart) said :
#4

If it exists, /mnt can be found by going to:
Places > Computer
then click "mnt".

If the folder doesn't exist, you will first have to create it. It doesn't have to be /mnt either; you can use any location you like. For example, to mount it in a directory named "oldstuff" in your home directory, use:
mkdir ~/oldstuff
sudo mount /dev/sda1 ~/oldstuff

Revision history for this message
hallenrm (hallenrm-yahoo) said :
#5

 I tried bot I cannot create a folder in Places > Computer!!

Revision history for this message
hallenrm (hallenrm-yahoo) said :
#6

My question is still open!

Revision history for this message
Marc Stewart (marc.stewart) said :
#7

Sorry, forgot to put "Filesystem" between Computer and mnt.
But you won't be able to create a folder there (if it needs to be created) from an ordinary file browser window anyway. You need superuser privileges. That is what "sudo" is for. So if you don't already have mnt under Computer > Filesystem, open a terminal and type:
sudo mkdir /mnt
Then try the mount command again.
Then when you open the mnt directory in your file browser you should see your old partition.

Revision history for this message
hallenrm (hallenrm-yahoo) said :
#8

Sorry but the response is as follows:
[sudo] password for rakesh:
mkdir: cannot create directory `/mnt': File exists
rakesh@MTNL:~$
While i still cannot locate the /mnt anywhere!

Revision history for this message
hallenrm (hallenrm-yahoo) said :
#9

Not yet!

Revision history for this message
Marc Stewart (marc.stewart) said :
#10

So /mnt does already exist, and it is under Filesystem, which is an alias for "/". Therefore,
Places > Computer > Filesystem > mnt
as I've already explained, is where you will find it—that's what /mnt means.
You can avoid all that clicking however with a little typing. Open your file browser, and press Ctrl+L. Then in the location bar, type /mnt and press Enter.

Revision history for this message
Sam_ (and-sam) said :
#11

Please open a terminal and post output of:
sudo fdisk -l

## where l is lower case of L

ls /dev/disk/by-uuid -al

Copy and paste file content of fstab:
gedit /etc/fstab

Before a partiton can be mounted you need to create a mount point.
Gathered information needs to be written into /etc/fstab.
When finished either reboot or:
mount -a

In case user needs permission to access mount point.
e.g.:
sudo chown -R user:group /path/of/mountpoint

Reference.
https://help.ubuntu.com/community/Fstab
https://help.ubuntu.com/community/DrivesAndPartitions

Revision history for this message
Best Aruna Hewapathirane (aruna-hewapathirane) said :
#12

Please click Places->Home Folder
Then select File system on the left pane.
You will see your directories on the right pane and a mnt directory.
If you see the mnt directory please try to use sudo mount /dev/sda1 /mnt again and your files will be under the mnt directory.

Revision history for this message
hallenrm (hallenrm-yahoo) said :
#13

Thanx a lot, it indeed solved my problem

--- On Thu, 9/9/10, Aruna Hewapathirane-අරැණ හේවාපති <email address hidden> wrote:

From: Aruna Hewapathirane-අරැණ හේවාපති <email address hidden>
Subject: Re: [Question #124564]: mounting a harddisk partition
To: <email address hidden>
Date: Thursday, 9 September, 2010, 7:10 AM

Your question #124564 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/124564

Aruna Hewapathirane-අරැණ හේවාපතිරණ proposed the following answer:
Please click Places->Home Folder
Then select File system on the left pane.
You will see your directories on the right pane and a mnt directory.
If you see the mnt directory please try to use sudo mount /dev/sda1 /mnt again and your files will be under the mnt directory.

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/ubuntu/+question/124564/+confirm?answer_id=11

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/ubuntu/+question/124564

You received this question notification because you are a direct
subscriber of the question.

Revision history for this message
Sam_ (and-sam) said :
#14

When your question is solved, please go to it directly via web browser
https://answers.launchpad.net/ubuntu/+question/124564
and click the answer from Aruna Hewapathirane to mark the question as solved.

Revision history for this message
hallenrm (hallenrm-yahoo) said :
#15

Sorry, i didn't know that! cSo here I formally declare that my question has been answered to my satisfaction!

Revision history for this message
hallenrm (hallenrm-yahoo) said :
#16

Thanks Aruna Hewapathirane-අරැණ හේවාපතිරණ, that solved my question.