> > Hello, > > is there an easy (or canonical) way of (auto)detecting whether a disk is > partitioned, please? > > What I have is a SCSI magneto-optical disk drive (230MB removable disks) > and a bunch of disks. With some of the disks, I need to mount /dev/sda1, > with others /dev/sda directly. > > (The disks have existing data on them, written under DOS, obviously various > versions of either DOS or the driver.) > > Any suggestions?
You can do this with `fdisk -l /dev/sda'. You either have to be a member of group disk, or be root, or mess with the default permissions (not advisable) to issue this command. HTH, Eric -- E.L. Meijer ([EMAIL PROTECTED]) Eindhoven Univ. of Technology Lab. for Catalysis and Inorg. Chem. (SKA)