Upg. to kubuntu 10.10 – Add a second disk

As I said in my post earlier I have upgraded to Kubuntu 10.10 from 9.10. One of the first thing I needed to do was to add my second disk. The laptop I have has 2 500 GB disk and the second one was not installed/used during the install. So I need to add that one.

There are 2 ways of doing this. You can install and run the gparted graphical program, or you can use the command line.

First thing to do is locating you new disk. if you dont know what name it has you can run the command:

This will produce a list of disk in you system and show the names:

The Logical name is what you need for the following parts.

Gparted

if you want to do the work you can use gparted. If you havent installed this you probably need to install it with:

This will install it and some libraries with it.

There is some things to mentione with this. If you start it from the menu system (application->settings->gparted)  it will ask for a password, and it is the root password. By default kubuntu system will not set a usable root password and you will not be able to use it. You can run it from the command line (sudo gparted) or you can set a password for root.

But remember – do not ever login as root. just use sudo.

When you then start up gparted you will see:

In the top-right corner of the window, choose your new hard drive from the drop-down list, referring back to the “logical name” from earlier. The window should refresh and show you a representation of the new drive.

if you – like me – have a dos file system on you you probably want to remove it first, by clicking on the bad representing the dos file system, and select delete.

Then you can start and create the new filesystem:

  1. Right-click on the white bar and choose “New.”
  2. For “New Size” the number should be the maximum allowable, to fill the entire disk.
  3. Choose “Primary Partition”
  4. Now select a filesystem. Use “ext4” for kubuntu.
  5. Now click Add to compute the partition. The graphical display should update to show a new partition covering the entire disk.
  6. To finish, click “Apply,” or Edit > Apply. The disk will then be partitioned and formatted.

You may now close gparted.

Making filesystem from command line.

First use fdisk to delete the old filesystem and create a new partition:

Now the partition is created. You now need to use the mkfs command to create the filesystem:

The /CD/ is where you want to mount the drive

Mount the filesystem

Now we need to make a mountpoint and edit fstab so that the system will mount the drive automatically on boot.

First create the dirctory:

The set the ownership to plugdev group, those who are meant to be able to mount removable disks, desktop users.

Now we need to edit the /etc/fstab file

Fire up your favourite editor:

And add a line:

and then save it.

You can now test it by using the mount command:

And the new drive should be mounted.

One thought on “Upg. to kubuntu 10.10 – Add a second disk

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.