second hard disk partitioning

Asked by sandra.bodkin

I have two hard disks on my computer. The first one ,C: has 10 gig and I installed Ubuntu on this one. Now I need the second one E: for more storage space (documents, music , images). The partition manager tells me that this disk space is unallocated. My question is: Do I have to partition this disk before mounting it. And if so, how do I do this? Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
naufal
Solved:
Last query:
Last reply:
Revision history for this message
Sébastien Corriveau (sebcor-deactivatedaccount) said :
#1

No, you don't have to partition the disk to mount an existing partition.

First, let's see what your partition tables look like. Then, I will need to see if the "E:" partition is already mounted somewhere. Finally, we should make sure that the partition is not already referenced in your fstab file.

From a terminal window ("Applications" -> "Accessories" -> "Terminal"), type the following commands and send me the output:

    sudo fdisk -l
    mount
    cat /etc/fstab

Revision history for this message
sandra.bodkin (lotus1s) said :
#2

Hi Sébastien! Thanks for answering. Here is what I get in terminal:

sandra@snoopy:~$ sudo fdisk -l
[sudo] password for sandra:

Disk /dev/sda: 10.0 GB, 10005037056 bytes
255 heads, 63 sectors/track, 1216 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x64956495

   Device Boot Start End Blocks Id System
/dev/sda1 * 1 1158 9301603+ 83 Linux
/dev/sda2 1159 1216 465885 5 Extended
/dev/sda5 1159 1216 465853+ 82 Linux swap / Solaris

Disk /dev/sdb: 20.4 GB, 20490559488 bytes
255 heads, 63 sectors/track, 2491 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x380e380d

   Device Boot Start End Blocks Id System
sandra@snoopy:~$ mount
/dev/sda1 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
lrm on /lib/modules/2.6.22-14-generic/volatile type tmpfs (rw)
securityfs on /sys/kernel/security type securityfs (rw)
sandra@snoopy:~$ cat/etc/fstab
bash: cat/etc/fstab: No such file or directory
sandra@snoopy:~$

Revision history for this message
Best naufal (musp-student) said :
#3

hello,
or you can try from Partition Editor.
System ---> Administration ---> Partition Editor
Search for second harddisk { /dev/sdb }
but be carefull..you cannot mistake when formatting the disk....

Revision history for this message
sandra.bodkin (lotus1s) said :
#4

Hello naufal: Yes, that's what I thought, but I wasn't sure. I looked in partition and it said the second disk was unallocated, so I assumed it wasn't formatted for linux. Thanks, I'll try that and I'll be careful. Thanks for answering my question.