Ubuntu hard drive question.

boggom

Well-Known Member
Joined
Jan 18, 2009
Messages
261
Reaction score
61
Location
George
I have two 80Gb hard drives in my system - one bootable with Windows XP and the other one bootable with Ubuntu 9.04. I installed the Ubuntu out of Windows on a 9Gb partition. Windows now still recognise the remaining 70 (odd) Gb but Ubuntu only sees the 80Gb Windows drive and the 9Gb it is installed on. Any ideas on how to get Ubuntu to see the remaining 70Gb?
 
Here it is.

boggom@ubuntu:~$ ls /dev/s*
/dev/scd0 /dev/sdb /dev/sequencer /dev/sg2 /dev/sr0
/dev/sda /dev/sdb1 /dev/sequencer2 /dev/sg3 /dev/stderr
/dev/sda1 /dev/sdc /dev/sg0 /dev/snapshot /dev/stdin
/dev/sda5 /dev/sdc1 /dev/sg1 /dev/sndstat /dev/stdout

/dev/shm:
pulse-shm-297684892

/dev/snd:
controlC0 hwC1D0 pcmC0D0c pcmC0D1c pcmC0D2c pcmC1D0p pcmC1D2c seq
controlC1 midiC1D0 pcmC0D0p pcmC0D1p pcmC1D0c pcmC1D1p pcmC1D2p timer
boggom@ubuntu:~$
boggom@ubuntu:~$ sudo fdisk -l

Disk /dev/sda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xc5528510

Device Boot Start End Blocks Id System
/dev/sda1 2 9964 80027797+ f W95 Ext'd (LBA)
/dev/sda5 2 9964 80027766 7 HPFS/NTFS

Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4290428f

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 9729 78148161 7 HPFS/NTFS

Disk /dev/sdc: 4005 MB, 4005560320 bytes
21 heads, 21 sectors/track, 17740 cylinders
Units = cylinders of 441 * 512 = 225792 bytes
Disk identifier: 0x7b692e56

Device Boot Start End Blocks Id System
/dev/sdc1 19 17741 3907648 c W95 FAT32 (LBA)
boggom@ubuntu:~$
boggom@ubuntu:~$
boggom@ubuntu:~$ sudo /etc/fstab
sudo: /etc/fstab: command not found
boggom@ubuntu:~$ sudo ls /etc/fstab
/etc/fstab
boggom@ubuntu:~$ /etc/fstab
bash: /etc/fstab: Permission denied
boggom@ubuntu:~$

The 4GB drive is my flash drive for the record....
I can't get the /etc/fstab/ one to return some output, maybe I'm doing something wrong...?
 
cat /etc/fstab

Okay, it is recognized by your system, just give us the output of the above command and you should be set in no time.
 
Here it is. (hopefully)

boggom@ubuntu:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/host/ubuntu/disks/root.disk / ext3 loop,errors=remount-ro 0 1
/host/ubuntu/disks/boot /boot none bind 0 0
/host/ubuntu/disks/swap.disk none swap loop,sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
boggom@ubuntu:~$
 
You can make yourself a permanent mount point all via gui if you prefer, as a windows user you may still be wary of the command line, although using linux you will be using it quite a bit wether you like it or not :)

Go to synaptic package manager, make sure your repositories are up to date by refreshing the list in the manager. Search for a package named gparted and install it and its dependencies. Once installed you can find the package under 'Administration' > 'Partition Editor'. The editor will pick up all partitions, you will need to figure out which one it is you want mounted.

There's loads of info on this in the ubuntu forums.
 
Not solved yet

I have installed GParted but I'm a bit hesitant om doing anything yet. I see the drive with Gparted but the option to change the size is unavailable. Somehow I think I need to "register" the partition for it to show up in the /computer/ directory or places but I don't really know how to do that. It's also an "extended" partition now consisting of an unallocated part and a NTFS part - somehow the sizes doesn't make sense either. So I'm still searching for answers. Also I would like to understand what I'm doing instead of just following orders blindly...
So no solution as yet.
I read somewhere that I can use the install (live) disk as well but I haven't tried that yet.
Any ideas...?
I want the disk with the Ubuntu installation to show the remaining 71GB (80GB less the 9GB Ubuntu installation) in both Ubuntu and Windows on the other disk.
 
Do me a favour, open up a terminal and type the following (enter your password if asked.)

cd ~
mkdir temp
sudo mount /dev/sda5 temp

I'm creating a temporary directory in your home folder and mounting your hard disk there. You can then browse there using the File Manager. If this worked, get back to me cause we need to make it permanent. If not, post any error messages you got.
 
From what I see in the fstab he is using Wubi (I think that is what it is called) and I have no idea how it works or handles partitions.
:(
 
Fixed up. (sort of)

@ MyWorld you are quite right I was using Wubi, because I installed from Windows.
After several format and re-installations I finally got it right. I had to format the drive NTFS then I had to install Ubuntu from the option of "choosing partition" - reduce the partition size to 60GB and tell it not to use partition - add two other partitions, one for installation and one for swab (18GB and 2.5GB respectively).
I know it's not that complicated but at least I learned something.
Thanks everybody for all the help, I'm sure I'll be back...
 
Top
Sign up to the MyBroadband newsletter
X