Mailing List Archive

Unable to add a partition on my sparc...
I've got an ultra5 happily running gentoo.
Since I have extra space on its hard drive, I'm trying to add a new partition
but fdisk keeps telling me this strange message:

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.

...And after the reboot, the new partition is gone...
(and I know that you normally don't need to reboot to add a new partition
under linux)

Any idea of what is going wrong with my sparc box?

Below is a transcript of the operation:
cloud root # fdisk /dev/hda

Command (m for help): p

Disk /dev/hda (Sun disk label): 16 heads, 255 sectors, 57459 cylinders
Units = cylinders of 4080 * 512 bytes

Device Flag Start End Blocks Id System
/dev/hda1 0 980 1999200 83 Linux native
/dev/hda2 u 980 1470 999600 82 Linux swap
/dev/hda3 0 57459 117216360 5 Whole disk
/dev/hda4 1470 6372 10000080 83 Linux native
/dev/hda5 6372 7352 1999200 83 Linux native

Command (m for help): n
Partition number (1-8): 6
First cylinder (7352-57459): 7352
Last cylinder or +size or +sizeM or +sizeK (7352-57459, default 57459): 57459

Command (m for help): p

Disk /dev/hda (Sun disk label): 16 heads, 255 sectors, 57459 cylinders
Units = cylinders of 4080 * 512 bytes

Device Flag Start End Blocks Id System
/dev/hda1 0 980 1999200 83 Linux native
/dev/hda2 u 980 1470 999600 82 Linux swap
/dev/hda3 0 57459 117216360 5 Whole disk
/dev/hda4 1470 6372 10000080 83 Linux native
/dev/hda5 6372 7352 1999200 83 Linux native
/dev/hda6 7352 57459 102218280 83 Linux native

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.
cloud root #
cloud root # uname -a
Linux cloud 2.4.30-sparc #1 Tue Apr 26 13:10:43 CEST 2005 sparc64 sun4u TI
UltraSparc IIi (Sabre) GNU/Linux
cloud root #



.-..-.__
/` |\_( "\__ "Smile! Tomorrow will be worse."
| / __/`'--)
| / | | -->-->-{@ Fab @}-<--<--
/_/ _/_/ fabien.gaurand@usa.net
jgs `|/))))



--
gentoo-sparc@gentoo.org mailing list