Re: partitioning mounted devs?!?

H. Peter Anvin (hpa@transmeta.com)
14 Oct 1998 16:58:46 GMT


Followup to: <Pine.A41.3.95.981014082431.17942A-100000@stud2.tuwien.ac.at>
By author: Peter-Paul Witta <e9525748@student.tuwien.ac.at>
In newsgroup: linux.dev.kernel
>
> >
> > > hi!
> > > why can i delete MOUNTED partitions?
> >
> > If you mean
> >
> > mount -t ext2 /dev/hda4 /usr
> > rm /dev/hda4
>
> nope, i meant
>
> mount -t ext2 /dev/hda4 /mnt
> fdisk
> p
> d
> 4
> w
> q
> (print p-table, delete partition 4, write, wuit). imo either the kernel or
> fdisk could check if the partition is mounted...
>
> regards,
> paul.
>

Because the partition is mounted, the disk is busy (in use). Because
the disk is in use, all partition changes are delayed, and will
usually take effect only after reboot.

-hpa

-- 
    PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD  1E DF FE 69 EE 35 BD 74
    See http://www.zytor.com/~hpa/ for web page and full PGP public key
        I am Bahá'í -- ask me about it or see http://www.bahai.org/
   "To love another person is to see the face of God." -- Les Misérables

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/