[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[OS:N:] Adding a partition



At least in 2.4, fdisk changes are not seen by the kernel until the disk
is closed and reopened.  This means that all existing filesystems on the
disk must be unmounted.  With most setups, in practice this means that you
cannot repartition without a reboot.  I would guess that you haven't
rebooted since running fdisk, and that sda1 and sda2 are still in use.

I would complain (about not being able to add a partition without a reboot),
but using LVM instead of partitions lets you do that and more.

On Sun, 16 Oct 2005 open-source-now-list-request redhat com wrote:

> This is a SCSI drive.  And I got my same error trying sbin/mkfs
> /sbin/mkfs /dev/sda3
> mke2fs 1.35 (28-Feb-2004)
> mkfs.ext2: No such device or address while trying to determine
> filesystem size

> linuxls02 wrote:
> > Here is the fdisk,
> > 
> > Disk /dev/sda: 4293 MB, 4293632000 bytes
> > 255 heads, 63 sectors/track, 522 cylinders
> > Units = cylinders of 16065 * 512 = 8225280 bytes
> > 
> >    Device Boot      Start         End      Blocks   Id  System
> > /dev/sda1   *           1           6       48163+  83  Linux
> > /dev/sda2               7          30      192780   82  Linux swap /
> > Solaris
> > /dev/sda3              31         522     3951990   83  Linux

-- 
	      Stuart D. Gathman <stuart bmsi com>
    Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flamis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]