Your physical device can be a raw partition or any UFS file system. However, for simplicity we go for a file system.
1) identify where you want the device file to be, obviously somewhere with enough space. Let us say you have identified directory /data1 on UNIX as a place you want to create the device.
2) create a subditectory in the name of your dataserver <SERVER_NAME> there Sybase UNIX login requires full read and write to this sub-directory. The file must not exist!
3)do
/********************************************/
/*------------ device01 -------------*/
/********************************************/
use master
go
select " Started creating device01 device at " +convert(char(30),getdate(),9)
go
disk init
name = "device01",
physname = "/data1/<SERVER_NAME>/device01.dat",
vdevno = 10,
size = 1024000 -- 2GB device (512*2000MB)
go
select " Finished creating device01 at " +convert(char(30),getdate(),9)
go
exit
So I have create a sybase device "device01" on UFS file system "/data1/<SERVER_NAME>/decice01.dat" with a size of 2GB.
If you want a raw partition then you need to set up a raw partion device. Conceptually similar but different from file system. You can use "fdisk" utility on Linux to create a raw partition and use it as a raw device.
I hope this helps