[SWLUG] mounting ext3 partition

Jonathan Wright mail at djnauk.co.uk
Fri Feb 2 10:59:23 UTC 2007


Richard Rogers wrote:
> I'm pretty new to Linux and have managed most things by trawling the net
> and playing. But I'm having difficulty moving my home dir on ubuntu.
> I've re-sized the main partition and have a 40 gig /dev/hda4 partition
> formatted ext3 (qtparted). The problem is it doesn't show up anywhere on
> the system to allow me to move /home in the user settings. 

Unless the partition has been specifically created as a primary 
partition (which is never the case), the last partition on any drive is 
usually the extended partition, with hda5 and onwards it's logical 
inhabitants. Therefore you can have it skip numbers.

Can you run (from root, or via sudo) the following:

fdisk -l /dev/hda

so show the partition layout of the drive. For example:

jonathan on jonathan [ ~ ] --> sudo fdisk -l /dev/hda

Disk /dev/hda: 251.0 GB, 251000193024 bytes
255 heads, 63 sectors/track, 30515 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1           9       72261   83  Linux
/dev/hda2              10        1834    14659312+  83  Linux
/dev/hda3            1835       30515   230380132+   5  Extended
/dev/hda5            1835        6090    34186288+  83  Linux
/dev/hda6            6091       30515   196193781   83  Linux

(hda3 is my extended partition, with hda1 and hda2 the primary, while 
hda5 and hda6 are the logical inhabitants of hda3). You can also look at 
dmesg to see the structure:

jonathan on jonathan [ ~ ] --> dmesg | grep hda
   [snip]
  hda: hda1 hda2 hda3 < hda5 hda6 >
   [snip]

-- 
  Jonathan Wright                                 mail at djnauk.co.uk
                                                http://djnauk.co.uk

  cat /dev/random (you never know, you may see something you like!)

  2.6.17-gentoo-r3-djnauk-b1 AMD Athlon(tm) XP 2100+
  up 11:30, 1 user, load average: 0.17, 0.61, 0.69



More information about the Swlug mailing list