Adding a drive
Alan Dacey Sr.
grokit at ajinfosearch.com
Fri Apr 2 16:05:22 UTC 2010
On Friday 02 April 2010 09:17:24 am Basil Chupin wrote:
> I am using Kubuntu Karmic.
>
> If I was to add another HD to my system, how do I go about doing this
> especially formatting it and giving it a mount point for fstab (eg, /data)?
>
> As far as I can see there is no partitioner in Kubuntu. (I had to format
> a flash memory stick yesterday and had to use another distro to do this,
> but can this be done in Kubuntu?)
>
> Thanks for any advice.
>
> BC
First, BACKUP anything you do not want to lose. One mistake while formatting
new drives could lead to a bad thing. Then turn off your computer, pull out the
power plug and install the drive.
After your drive is installed download gparted. That is the partitioner you want to
use. First make a new partition table on the drive, highlight the unformatted
partition and click the 'New' icon. This is where you can split up your drive or
keep it as one big one. If you want to make partitions that windows can see
download the ntfsprogs package.
To have your new partitions auto-mount you will have to edit the file /etc/fstab
and add them manually. Of course the folders have to exist so make them before
you start this. I like to have everything mount under my /home folder
since I am the only one using my computer. If you have multiple users this may
not work for you. Since the folder /etc is owned by root and not your user name
you will have to edit the file as root. To do this open up the terminal and type
the following:
kdesudo kate /etc/fstab
This will open up kate as root so give your password. (we use kdesudo instead
of sudo because it is a graphical program). Then you can add the partition(s)
to the folders of your choice. The following is an example of what is on my system:
# /dev/sdc1 - Movies - 429Gb
UUID=8be978b0-1143-4b51-a90a-fa0254a1370a /home/alan/Movies ext4 nouser,relatime,atime,auto,rw,dev,exec,suid 0 0
# /dev/sda3 - Backups - 278 Gb
UUID=035e3def-ec56-4cad-a0f6-1bff6d52acd4 /home/alan/Documents/Backups ext3 nouser,relatime,atime,auto,rw,dev,exec,suid 0 0
# /dev/sda2 - Windows back door - 100 GB
UUID=69B5EECB097BA772 /home/alan/Documents/Distros/BackDoor ntfs nouser,relatime,auto,rw,users,quiet 0 0
# /dev/sdc5 - Test Distro 1 - 50 Gb
/dev/sdc5 /home/alan/Documents/Distros/d1 ext4 nouser,relatime,atime,auto,rw,dev,exec,suid 0 0
I suggest that you copy this and change the UUID and folders since the options
work fine for me. Notice after the folder name is the format type (ext3, ext4, ntfs)
you do not want to mix them up since it probably won't mount if you do.
You can tell your Kubuntu what partition you are talking about using the UUID or
the device info so in my case Movies could have been mounted using either
"/dev/sdc1" or "UUID=8be9...." in the beginning of the line. I have three hard drives
so that is why there are devices /dev/sda, sdb, & sdc. I expect you to have /dev/sda
& /dev/sdb.
To find out your device name you can use two different methods from the command
line. I usually use both because I want to see everything.
The first is simple, type the following:
ls -al /dev/disk/by-uuid
This will give you the UUID and the device name like this:
lrwxrwxrwx 1 root root 10 2010-03-29 14:42 8be978b0-1143-4b51-a90a-fa0254a1370a -> ../../sdc1
The second way is to use the blkid command
sudo blkid
This will give you the device name, UUID and format type such as this
/dev/sdc1: LABEL="Movies" UUID="8be978b0-1143-4b51-a90a-fa0254a1370a" TYPE="ext4"
Hope this helps!
--
"Now no one has to tell an old Aberdeene pub-crawler how to applaud, captain."
Montgomery Scott
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/kubuntu-users/attachments/20100402/acc2b8ab/attachment.html>
More information about the kubuntu-users
mailing list