Is there a way I could autodetect a drive identifier? For example, below I would like to be able to put "disk1s1" into a variable (meaning that every time that the script I am writing runs I would like to be able to figure out the disk number for my BACKUP 1 Partition). I am not an expert, sorry if this is a stupid question, any help appreciated because I am interested in getting better at this.
---------- Post updated at 08:50 AM ---------- Previous update was at 08:27 AM ----------
I used the following code to get the info I want, now I need to store that in a variable. Again, clearly I am not familiar with the convention that should be used.
---------- Post updated at 08:53 AM ---------- Previous update was at 08:50 AM ----------
I have a Dell XPS M1330 laptop. The OS is Windows 10. I had to replace the motherboard because it was bad. After replacing the motherboard I noticed the optical (DVD/CD) drive is neither detected in BIOS and OS nor making any noise at all. Everything else seems to be working fine. The optical drive... (3 Replies)
I have a 320 GB drive which dual boots Windows and Debian:
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal):... (0 Replies)
Hello,
I need a simple script to Auto-detect new files and folders in the directory.
And then I need to zip the new files and bzip2 new folders and move them out of that folder where I am detecting changes to the other folder.
Remember, I need simple one. If anyone could do it fast, I may... (1 Reply)
Hi Guys...
I am using the following codes in my script:
SID_L=`cat /var/opt/oracle/oratab|grep -v "^#"|cut -f1 -d: -s`
SID_VAR=$SID_L
for SID_RUN in $SID_VAR
do
ORACLE_HOME=`grep ^$SID_RUN /var/opt/oracle/oratab | \
awk -F: '{print $2}'` ;export ORACLE_HOME
export... (2 Replies)
Hi everyone.
I have several shares (see smb.conf below). Each setup fairly similarly, and several groups. My end goals are:
1) to have the share automatically map as the P: drive to members of the employees group
2) to have the share automatically map as the t: drive to members of the tech... (0 Replies)
Hi
I have already gone through this topic on this forum, but still i am getting same problem.
I am using solaris 10. my login shell is /usr/bash
i have got a script as below
/home/gyan> cat 3.cm
#!/usr/bin/ksh
export PROG_NAME=rpaa001
if i run this script as below , it works fine... (3 Replies)
Hi,
When I insert a cd to CDROM drive in SF V210 Solaris 10 it took seconds then eject it auto!
How can I solve this issue?
Thanks
Regards :) (8 Replies)