Home > Uncategorized > Mount a new partition automatically (at boot time)

Mount a new partition automatically (at boot time)

Problem

By resizing a partition, you create a new (e.g. ext3 or ext4) partition that you want to mount automatically at each boot.

Solution

Follow the steps at https://help.ubuntu.com/community/InstallingANewHardDrive.

In short:

As root, create a directory for the drive (e.g. /media/mynewdrive).

Edit /etc/fstab and add this line:

/dev/sdb1    /media/mynewdrive   ext3    defaults     0        2

Of course, you need to adjust /dev/sdb1 to your case. Run “sudo fdisk -l” to figure out the path to the new partition. If you created an ext4 partition, change ext3 too.

Mount the drive manually or restart the system (in this latter case, it will be mounted automatically). Then, make it writable for yourself:

sudo chown -R USERNAME:USERNAME /media/mynewdrive

Where USERNAME is the name of the user that you use for everyday work.

Advertisements
Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Please log in using one of these methods to post your comment:

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: