mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* 2.5.66 Unable to update partition table
@ 2003-04-08 17:12 Badari Pulavarty
  0 siblings, 0 replies; 2+ messages in thread
From: Badari Pulavarty @ 2003-04-08 17:12 UTC (permalink / raw)
  To: linux-kernel

Hi,

I am not able to update partition table with 2.5.66.
I get following error message when I try to create a
new partition.

WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.

Any ideas on why ? Is this expected ?

Thanks,
Badari

[root@elm3b78 root]# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda6               381139    322588     38873  90% /
/dev/sda1                46636     43116      1112  98% /boot
none                   1941612         0   1941612   0% /dev/shm
/dev/sda2              9890888   8442076    946380  90% /usr
/dev/sdb5             16476952  10891916   4748052  70% /home
/dev/sda7               256667     80265    163150  33% /var


[root@elm3b78 root]# fdisk /dev/sdb

The number of cylinders for this disk is set to 2212.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/sdb: 255 heads, 63 sectors, 2212 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sdb2           129      2212  16739730    5  Extended
/dev/sdb5           129      2212  16739698+  83  Linux

Command (m for help): n
Command action
   l   logical (5 or over)
   p   primary partition (1-4)
Partition number (1-4): 1
First cylinder (1-2212, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-128, default 128):
Using default value 128

Command (m for help): p

Disk /dev/sdb: 255 heads, 63 sectors, 2212 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sdb1             1       128   1028128+  83  Linux
/dev/sdb2           129      2212  16739730    5  Extended
/dev/sdb5           129      2212  16739698+  83  Linux

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: 2.5.66 Unable to update partition table
@ 2003-04-10  4:31 etienne.lorrain
  0 siblings, 0 replies; 2+ messages in thread
From: etienne.lorrain @ 2003-04-10  4:31 UTC (permalink / raw)
  To: linux-kernel

> I am not able to update partition table with 2.5.66.
> I get following error message when I try to create a new partition.
>
> WARNING: Re-reading the partition table failed with error 16: Device or
> resource busy.
> The kernel still uses the old table.
> The new table will be used at the next reboot.
> Syncing disks.
>
> [root@elm3b78 root]# df
> Filesystem           1k-blocks      Used Available Use% Mounted on
> ...
> /dev/sdb5             16476952  10891916   4748052  70% /home
> ...
>
> [root@elm3b78 root]# fdisk /dev/sdb
>
> Any ideas on why ? Is this expected ?

 Aren't you trying to modify the partition table of a hard disk
 while some of its partition are still mounted, are you?

  Etienne.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-04-10  9:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-08 17:12 2.5.66 Unable to update partition table Badari Pulavarty
2003-04-10  4:31 etienne.lorrain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®