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 made a clean install of Linux Mint 13 LTS on my SSD which is in the optical drive bay.

Now, I will use the HDD for data storage and I don't want the old data there where I just have installed the original Win 7 which cames with the laptop (ThinkPad T530) and Linux Mint (mint4win). The laptop is new and there is not any personal data on the HDD. So, I have to format it from NTFS to Ext4 and also I want to mount it automatically on startup. For now I have access to the data there but I have to mount the drive manually each time. The standard software which cames with Mint is Disk Utility (installed GParted, too) but I'm not sure what to do.

Any idea how to do this?

Note: I asked here because Mint 13 LTS is based on Ubuntu 12.04 LTS, so there shouldn't be something different.

share|improve this question

closed as off-topic by mikewhatever, Seth, fossfreedom Aug 14 '13 at 18:52

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – mikewhatever, Seth, fossfreedom
If this question can be reworded to fit the rules in the help center, please edit the question.

Actually there are important differences. Most questions about non-official Ubuntu derivatives are classified as off-topic. This isn't the correct Stack Exchange site to ask questions about non-official Ubuntu distributions (see the FAQ). However, it would be on-topic at the Unix & Linux Stack Exchange. – Braiam Aug 14 '13 at 15:08
You want to format your HDD so that it contains only 1 ext4 partition of full disk size, and you want to automount it at startup, right? – Aaditya Bagga Aug 14 '13 at 15:08
@AadityaBagga, yes, exactly. Actually I should make a 4GB swap partition, too, but this could be done later. – enenen Aug 14 '13 at 16:10
up vote 3 down vote accepted

To format your HDD you would need the Gparted application.

Open the Gparted application, and select your device (HDD) from the top right corner (it would be labelled as /dev/sdb or /dev/sda). Verify that its correct before proceeding furthur.

There would now be a number of partions displayed which are present on your HDD. Right click on each , and select Delete. This would Delete all the partitions. Click on the accept icon /button in the menu to make the changes permanent.

Now you would have only a single block of unallocated space.

;and you can create your desired partitions.

right click on the unallocated space, click on new.

Just change the type to ext4 instead of ext2, rest all options as is.

This would create your desired ext4 partition. Click on accept button to write the changes to disk.

P.S.will post more later.

How to automount a partition on startup

1.) First you will need to create a mount point, that is, a location/folder where the mounted partition will appear.

For example you want the ext4 partition to appear as the folder Data in your home directory, for that you would have to create the folder using-

sudo mkdir /home/<your user name>/Data

Data is the name of the folder, you could choose any like MyData or LinuxData etc

2.)Now you need to find out the UUID of the partition you want to automount.For that,

In a terminal, type

sudo blkid

This would list all your partitions and their UUIDs. From here you need to copy the UUID of your desired partition (the data partition that you have just now created).Copy it.

3.)Now we need to make changes to /etc/fstab, so that your partition is mounted at startup automatically.

in the terminal type-

sudo gedit /etc/fstab

Inside this file there will be a list of partitions. Now you need to make entry for your desired partition.

Like this-

UUID=5c563186-c587-4715-b9c1-7044dfa05411   /home/<your user name>/Data     ext4    defaults        0   0

In the same way create the entry as I have created, but remeber to replace my partiton partition UUID with the one that you got using the sudo blkid command, and replace your username with

After this save the file and restart..and after restaring, your partition should now be mounted in your desired Directory!


You can choose any other , more convinient mount point like /media/Data if it suits you. But remember to make the directory Data under the media folder!

A little Useful information-

This is what the options that are being edited in /etc/fstab stand for

<file system>                   <dir>                    <type>      <options>         <dump>      <pass>


UUID=5c563186-c587-4715-b9c1-7044dfa05411   /media/Data     ext4    defaults        0   0

so file system is the UUID, dir is the directory where partition is being mounted, type is the type of file system, eg ext4, options are for specifying options like ro (readonly), and dump and pass are for checking the filesystem during startup

Thank You!

share|improve this answer
I created two new partitions: 4GB for swap and the rest for data storage. Everything looks ok but I have some questions. How to make the data storage partition auto-mountable on startup? Is it from /etc/fstab as for the swap partition? What should I write in the columns where I wrote swap swap sw for the swap partition for auto-mounting the data storage partition? Probably it would be ext4 but not sure for the last column (sw) before the integers (0 0). – enenen Aug 14 '13 at 18:30
for help with the swap part follow this link-… i will post about automounting as well...and if you think my answer helped you, please mark it solved :) – Aaditya Bagga Aug 14 '13 at 18:37
yes the data partitoned will also be set up for automounting through the /etc/fstab – Aaditya Bagga Aug 14 '13 at 18:39

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