Mounting a partition / hard drive in XFCE

Ive recomended the Mint XFCE CE so i guess i should at least provide a how-to or two to help if i can 🙂

The breakdown, first we will look for the hard drive / partition you want to mount. Then we need to make a folder to mount it into. Then we mount it into the folder.

So, step 1, looking for the had drive / partition. Open terminal and type (or copy/paste) the following line.

sudo fdisk -l

This will show you all of the hard drives and partitions on them. It should look like this:

Device Boot Start End Blocks Id System
/dev/sda1 12749 18789 48524332+ 83 Linux
/dev/sda2 18790 19032 1951897+ 82 Linux swap / Solaris
/dev/sda3 19033 38913 159694132+ 83 Linux
/dev/sda4 * 1 12748 102398278+ 83 Linux

Now the bit we need to look at is on the left. The ‘/dev/sda’ bit. Find the partition you want to mount and note down the ‘/dev/sda’ bit. Got it? Good! On a brief note, if your new to Linux and are looking to bring stuff over from your windows drive, but arnt sure which one it is. Windows partitions will normally be NTFS. So any line with NTFS instead of linux written on the right, will be a windows partition.

So, part 2, nice and easy. You need to make a directory to mount the partition into. Now, the following command makes a directory on your hard drive.

sudo mkdir

Youll want to make a directory in your media file, what you name it is up to you. I wanted to name my file Ubuntu, as i wanted to mount an Ubuntu partition. So, put the following code into terminal, with the last part as whatever you want the directory to be named.

sudo mkdir /media/Your_file_name_here

eg : sudo mkdir /media/ubuntu

Oki, got it? If you want to check its there, go to your desktop. Open the File System icon. Open the file called media. Do you see your file there? Great! Now on to the 3rd and final bit.

Now, the code to mount a partition into a folder is as follows.

sudo mount Location_of_partition Destination_folder

The location of partition is what we found out in the first step 1 (/dev/sd-something depending on your PC). You can always ‘sudo fdisk -l’ again if you need to. The destination folder is what we made in step 2 (/media/name_of_folder). In my case it was ‘/media/ubuntu’. Are you with me? Good!

So, assuming the partition i want to mount is ‘/dev/sda3’ and the folder i made was ‘/media/ubuntu’ i will need to enter the following line into terminal.

sudo mount /dev/sda3 /media/ubuntu

Now, that should be it. Open File System from your desktop, then open the folder media, and your partition should be inside the folder in there.

To clump it together, these are the lines i enterd into terminal to mount my Ubuntu partition.

sudo fdisk -l
sudo mkdir /media/ubuntu
sudo mount /dev/sda3 /media/ubuntu

Well, i hope you found this usefull. Take care!

Advertisements

2 Comments

  1. NorthenCyclist said,

    October 9, 2008 at 9:51 pm

    Heya,

    Thanks for that.

    NC.

  2. bob said,

    October 28, 2008 at 8:12 am

    kinda silly how-to with out mentioning fstab


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: