SOLVED--"object no longer exists" for Windows shares
If you can see a Windows share in the Finder but can't connect to it, or get the error that says the object doesn't exist, I think I've found the answer. I was trying to mount a connected Western Digital USB drive which was shared from a Windows XP machine. It was seen correctly in Finder, but I could never actually connect to it. It wasn't until recently that I discovered that I was also having a problem connecting to it from another Windows machine, and that led me to find this solution.
http://winhlp.com/node/40
If you still have the error after rebooting your Windows machine where the share resides, increase the value of 15, then reboot. I had to go to 25 to make everything work.
Kelly,
Do you do any DDL on EMP table of HR schema?
I guess, if you do any DDL on EMP, you may loose all the grants, you may need to regarnt permission again.
Jaffar
Similar Messages
-
Hi All,
I am using select a query.
For eg.
select columns from a,b
where a.col1=b.col1
and a.col2=b.col2
and a.col3=b.col3
it throws "*ORA-08103: object no longer exists*" error for the first time.
But when i comment a join condition a.col2=b.col2 the query works fine.
When i run the same query again it throws "*ORA-00600: internal error code, arguments: [kcbgtcr_12], [1]* "
Please give some suggestion to solve this problem.
My DB version is -- Release 9.2.0.8.0user13144724 wrote:
Please give some suggestion to solve this problem.a) Upgrade your database to a supported version (i.e. at least 10.2.0.4)
b) Post more information, like table structures, otherwise we won't have a clue
c) Raise your issue with Oracle via metalink as it's showing an internal error (although they'll probably tell you to upgrade first) -
IDCS4:JS- Error Number :30476 - Object no longer exists - Reg.
Dear All,
I created the EventListener for "before Print", Its working fine, but some times its shows the below attached Error.
"Error #:30476
Error String : The requested action could not be completed because the object no longer exist."
I used 3 scripts for "EvenListener"
(1) Main Script [before print]
(2) EventListener On
(3) EventListener Off
I placed the scripts in the below path
C:\Program Files\Common Files\Adobe\Startup Scripts CS4\Adobe InDesign\
I'm unable to find and solve this problem, Some times its working fine and some time its not working.
But this is not affected my hole project, while creating the ".ps" then before its showing the Error.
I checked so many ways and source code also, but I'm unable to solve this problem.
Please any one can suggest or give the solutions.
Thanks in advance
Regards
T.R.Harihara SudhaNThanks Jongware!
I can see that the code is working when integrated into my script, but I don't understand why it's working. Any explanation you can provide is greatly appreciated, or can you point me in the right direction to read up? (I'm a newbie).
I guess I was using cached variables?
The solution you provided, does it use a specific programming concept I can research more?
Thanks again! -
Digital card reader no longer works for Windows 7 Pc, 3yrs old
Help, my digital card reader no longer works for Windows, 32bytes, on my 3 year old pc. HP does not have any any down loads for this. Any suggestions where else I can find them that would not interferre with other functions of my pc
Hi,
What is your machine ? The following devices may help:
http://www.ebay.com.au/bhp/usb-card-reader
Regards.
BH
**Click the KUDOS thumb up on the left to say 'Thanks'**
Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem. -
ORA-08103: object no longer exists during APEX 2.2 to 3.0 upgrade
I am trying to upgrade an APEX 2.2 installation on 10.2.0.2 Enterprise Edition on SLES-10 with 400MB shared_pool and 1 GB sga_target. During the upgrade, the session crashes due to ORA-00600: internal error code, arguments: [ktspgfb-1]. I cannot drop the FLOWS_030000 user and 523 corrupt blocks in sys7.dbf including objects source$, argument$ and obj$. So far, I have restored the database and corrupted it 3 times. Each time, I redownloaded apex.zip from technet.oracle.com.
Here are the errors:
...PAGE 1300: Application Comparison
...PAGE 1301: Application Comparison Counts
...PAGE 1400: Report Layouts
...PAGE 1401: Create Report Layout
...PAGE 1402: Create Report Layout
...PAGE 1405: Edit Report Layout
...PAGE 1406: Create Report Query
...PAGE 1500: Application Builder
...PAGE 1550: User Interface Defaults
...PAGE 1552: UI Defaults - Column Defaults LOV
...PAGE 1553: UI Defaults - Column Defaults
...PAGE 1555: UI Defaults - Table Defaults
begin
ERROR at line 1:
ORA-08103: object no longer exists
ORA-06512: at "FLOWS_030000.WWV_FLOW_API", line 7733
ORA-06512: at line 18
ERROR:
ORA-00603: ORACLE server session terminated by fatal error
ERROR:
ORA-03114: not connected to ORACLE
SP2-0359: memory exhausted
Mon Apr 30 11:31:46 2007
Incremental checkpoint up to RBA [0x175.153ac.0], current log tail at RBA [0x175.2e77b.0]
Mon Apr 30 11:32:05 2007
Beginning log switch checkpoint up to RBA [0x176.2.10], SCN: 8173962186001
Thread 1 advanced to log sequence 374
Current log# 1 seq# 374 mem# 0: /lv01/oracle/dev10data/log01.dbf
Mon Apr 30 11:34:24 2007
Errors in file /lv01/oracle/dev10db/10.2.0/admin/dev10_plato/udump/dev10_ora_11590.trc:
ORA-00600: internal error code, arguments: [ktspgfb-1], [], [], [], [], [], [], []
Mon Apr 30 11:34:49 2007
Errors in file /lv01/oracle/dev10db/10.2.0/admin/dev10_plato/udump/dev10_ora_11590.trc:
ORA-00603: ORACLE server session terminated by fatal error
ORA-00600: internal error code, arguments: [ktspgfb-1], [], [], [], [], [], [], []
Mon Apr 30 11:35:02 2007
Errors in file /lv01/oracle/dev10db/10.2.0/admin/dev10_plato/bdump/dev10_pmon_7541.trc:
ORA-00600: internal error code, arguments: [ktspgfb-1], [], [], [], [], [], [], []
Mon Apr 30 11:35:15 2007
Errors in file /lv01/oracle/dev10db/10.2.0/admin/dev10_plato/bdump/dev10_pmon_7541.trc:
ORA-00600: internal error code, arguments: [ktspgfb-1], [], [], [], [], [], [], []
Mon Apr 30 11:37:18 2007
Completed checkpoint up to RBA [0x176.2.10], SCN: 8173962186001
Mon Apr 30 11:37:43 2007
Errors in file /lv01/oracle/dev10db/10.2.0/admin/dev10_plato/bdump/dev10_p000_12471.trc:
ORA-00600: internal error code, arguments: [ktspgfb-1], [], [], [], [], [], [], []
Mon Apr 30 11:37:54 2007
SMON: Parallel transaction recovery slave got internal error
SMON: Downgrading transaction recovery to serial
I now have 523 corrupt blocks in sys7.dbf:
DBVERIFY: Release 10.2.0.2.0 - Production on Mon Apr 30 11:50:21 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
DBVERIFY - Verification starting : FILE = /lv01/oracle/dev10data/sys7.dbf
Page 188161 is marked corrupt
Corrupt block relative dba: 0x01c2df01 (file 7, block 188161)
Completely zero block found during dbv:
Page 188162 is marked corrupt
Corrupt block relative dba: 0x01c2df02 (file 7, block 188162)
Completely zero block found during dbv:
Page 188163 is marked corrupt
Corrupt block relative dba: 0x01c2df03 (file 7, block 188163)
Completely zero block found during dbv:
Page 188164 is marked corrupt
Corrupt block relative dba: 0x01c2df04 (file 7, block 188164)
Completely zero block found during dbv:
Any ideas why this is happening? I see a number of current bugs for ORA-00600: ktspgfb-1, but most knowledge base articles refer to 9.0.1 or 9.2.After upgrading to 10.2.0.3 and doubling the shared_pool_size and sga_target, I was able to upgrade to APEX 3.0 without errors.
-
ORA-08103: object no longer exists
Dear Experts,
I have a very tricky situation here.
A background job runs daily on our Production, which kinds of populates a lot of tables in another database (warehouse).
This morning, the job failed with an error: ORA-08103: object no longer exists
This error came while populating a table through a procedure.
I checked that the procedure and table both are in valid state and there are proper grants in place.
Also, we had faced the same problem few days back for the same table. We did not change anything. Simply re-ran the job and it went fine. Now also, we are re-running teh job and waiting to check if it goes fine.
Any ideaas why this error would come?
Thanks.Leo, Thanks very much for your inputs. The proceudre does not use any views.
Here is the code:
PROCEDURE GS_SKILLS_SP
IS
err_num NUMBER:=0;
err_msg VARCHAR2(100):=null;
status VARCHAR2(1):='Y';
proc_name VARCHAR2(60):='GS_SKILLS_SP';
table_name VARCHAR2(100):='GS_SKILLS_DIM';
BEGIN
RPT_GS.Z_PRO_TRUNCATE_TABLE('GS_SKILLS_DIM');
INSERT INTO GS.GS_SKILLS_DIM
(SKILL_ID,
SKILL_CODE,
SKILL_NAME,
DESCRIPTION,
PARENT_SKILL_ID,
SKILL_PATH,
IS_ACTIVE,
PARENT_SKILL_PATH,
PC_ID,
PC_NAME,
DIS_ID,
DIS_NAME,
LEVEL_ID,
LEVEL_NAME)
SELECT SK.SKILL_ID,
SK.SKILL_CODE,
SK.SKILL_NAME,
SK.DESCRIPTION,
SK.PARENT_SKILL_ID,
SK.SKILL_PATH,
SK.IS_ACTIVE,
SK.PARENT_SKILL_PATH,
null,
null,
null,
null,
null,
null
FROM SKILLS_DIM SK
WHERE UPPER(SK.SKILL_CODE) LIKE 'GS%'
AND SK.IS_ACTIVE = 'Y'
UNION
SELECT SK.SKILL_ID,
SK.SKILL_CODE,
SK.SKILL_NAME,
SK.DESCRIPTION,
SK.PARENT_SKILL_ID,
SK.SKILL_PATH,
SK.IS_ACTIVE,
SK.PARENT_SKILL_PATH,
SK_ASSOC.PC_ID,
SK_ASSOC.PC_NAME,
SK_ASSOC.DIS_ID,
SK_ASSOC.DIS_NAME,
SK_ASSOC.LEVEL_ID,
SK_ASSOC.LEVEL_NAME
FROM SKILLS_DIM SK,
SKILLS_OBS_ASSOC_DIM SK_ASSOC
WHERE SK.SKILL_ID=SK_ASSOC.SKILL_ID
AND UPPER(SK.SKILL_CODE) LIKE 'GS%'
and sk.is_active='Y'
AND SK_ASSOC.LOB_NAME = 'Global Services' ;
COMMIT;
INSERT INTO GS.GS_SKILLS_DIM
(SKILL_ID,
SKILL_CODE,
SKILL_NAME,
DESCRIPTION,
PARENT_SKILL_ID,
SKILL_PATH,
IS_ACTIVE,
PARENT_SKILL_PATH,
PC_ID,
PC_NAME,
DIS_ID,
DIS_NAME,
LEVEL_ID,
LEVEL_NAME)
SELECT SK.SKILL_ID,
SK.SKILL_CODE,
SK.SKILL_NAME,
SK.DESCRIPTION,
SK.PARENT_SKILL_ID,
SK.SKILL_PATH,
SK.IS_ACTIVE,
SK.PARENT_SKILL_PATH,
null,
null,
null,
null,
null,
null
FROM SKILLS_DIM SK
/*WHERE UPPER(SK.SKILL_CODE) LIKE 'GS%'
AND SK.IS_ACTIVE = 'Y'*/
/*changed on 16/04/2008 for RQ34634(PRIME168) */
where sk.is_active='Y'
and exists(select 1 from GS.GS_RES_PROFICIENCY_DIM gs_sk where gs_sk.skill_code=sk.skill_code)
and not exists(select 1 from gs.gs_skills_dim rpt_sk where rpt_sk.skill_code=sk.skill_code)
UNION
SELECT SK.SKILL_ID,
SK.SKILL_CODE,
SK.SKILL_NAME,
SK.DESCRIPTION,
SK.PARENT_SKILL_ID,
SK.SKILL_PATH,
SK.IS_ACTIVE,
SK.PARENT_SKILL_PATH,
SK_ASSOC.PC_ID,
SK_ASSOC.PC_NAME,
SK_ASSOC.DIS_ID,
SK_ASSOC.DIS_NAME,
SK_ASSOC.LEVEL_ID,
SK_ASSOC.LEVEL_NAME
FROM SKILLS_DIM SK,
SKILLS_OBS_ASSOC_DIM SK_ASSOC
WHERE SK.SKILL_ID=SK_ASSOC.SKILL_ID
/*changed on 16/04/2008 for RQ34634(PRIME168) */
and sk.is_active='Y'
and exists(select 1 from GS.GS_RES_PROFICIENCY_DIM gs_sk where gs_sk.skill_code=sk.skill_code)
and not exists(select 1 from gs.gs_skills_dim rpt_sk where rpt_sk.skill_code=sk.skill_code)
AND SK_ASSOC.LOB_NAME = 'Global' ;
COMMIT;
IF (err_num = 0) then
INSERT INTO GS_ERROR
(PROC_NAME,
TABLE_NAME,
ERR_CODE,
ERR_MSG,
CREATED_DATE,
STATUS)
VALUES(proc_name,table_name,err_num,err_msg,SYSDATE,status);
COMMIT;
END IF;
EXCEPTION
WHEN OTHERS THEN
err_num:=SQLCODE;
err_msg:=SUBSTR(SQLERRM,1,100);
status:='N';
ROLLBACK;
INSERT INTO GS_ERROR
(PROC_NAME,
TABLE_NAME,
ERR_CODE,
ERR_MSG,
CREATED_DATE,
STATUS)
VALUES(proc_name,table_name,err_num,err_msg,SYSDATE,status);
COMMIT;
END GS_SKILLS_SP; -
Dear Guru,
Below is the scenario for my problem encountered:
I have created a table EMP at HR schema.
Next, I created a view vw_EMP from EMP table at HR schema.
Next, I grant select privilege to UserA schema on vw_EMP
Next, I logon as UserA and create synonym as follow:
create synonym vw_EMP for hr.vw_EMP;
However, sometimes I do encounter the above error (object no longer exists) when userA trying to access vw_EMP. I am using Oracle 9i. Can you please advice what is the problem? How to overcome or any alternative to avoid this error?
Thank you.
Regards,
KellyKelly,
Do you do any DDL on EMP table of HR schema?
I guess, if you do any DDL on EMP, you may loose all the grants, you may need to regarnt permission again.
Jaffar -
Issue with Materialized View ORA-08103: object no longer exists
I have a materialized view which gets refreshed(COMPLETE Refresh) every 2 minutes. However there are few scheduled programs which queries this materialized view, some of the queries in the scheduled program take longer to run. When the materialized view refresh time overlaps with this query executing from the program i get this error: ORA-08103: object no longer exists.
I know that COMPLETE refresh doing TRUNCATE + INSERT is causing the issue, could someone suggest a workaround for this. But i need to do a COMPLETE refresh.Why would a TRUNCATE cause an "object no longer exists" ?
Which job encounters this error ? The MV Refresh job or the programs that are querying the MV ? How does it resolve ? Automatically -- meaning that the next refresh/query does not raise the error ? -
Java.sql.SQLException: ORA-08103: object no longer exists
hi, Everyone:
i want to insert one colume to a temp table,
so i did the following
1: drop the table
2: recreate the table with the new colume in it.
we i run my application, there is a
"java sql exception ORA-08103: object no
longer exists ". looks like the table
doesn't exist in database any more. but
it is really still there.
thanks
hongjie
nullI was able to resolve this error by using on commit preserve rows, instead of on commit delete.
-
Bogus Object No Longer Exists error
I have a package which is reporting the error "ORA-08103: object no longer exists" on one of the SQL statements. I cannot figure out why though, because i checked all the objects which the SQL statement references and they are all still there, so i thought maybe it was a permissions error as some of the objects are cross-schema, so i tried logging in as the user who runs the job, and ran it myself interactively, and it worked fine.
Has anyone found this before, or know a fix? Thanks in advance,
Aaron.
(sorry if answered, i keep getting the error about an ESI error when i try to search).Make sure that the privileges on all objects are granted EXPILICITLY to the user who is running the job (NOT thru a role). Privileges granted thru roles DO NOT cascade into a procedure. Each select, update, delete & insert required to execute the procedure must be granted explicitly. That could explain why it worked by running each step interactively.
-
Error :Object no longer exists
Hi All,
While executing an update statement on a table which has got more than 40 lac Records im getting an error as Object no longer exists.
i have created an index and tried.But the update is not working.Any suggestions.
Thanks in advance.hi,
my best guess is that there is a trigger associated with your table and this trigger are using some of database objects which may have been dropped from the database. This is just an opinion since we do experience the same problem previously. Maybe you can show the error and the log perhaps? -
Sidebar 'Shared' no longer lists available windows shares
Sidebar 'Shared' no longer lists available windows shares. MacBook Pro (10.6.7) shows up on iMac and vice versa, but Windows 7 machines don't nor an old Buffalo LinkStation. The Windows shares don't show up when browsing the network either. The only way to connect is to use Go > Connect to Server (Command K), smb://ip address or NetBIOS. The shares are then listed in the sidebar, but disappear when disconnected. Is this something that has been introduced by design in an update?
Ok, now you're down to network or permissions issues. An unedited ipconfig /all
of server and problem workstation may help. You could also try setting up some auditing.
https://technet.microsoft.com/en-us/library/dn311489.aspx
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows]
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights. -
Playlists no longer exist for updating??
My playlists on itunes are still listed along with all of the songs that are in them.. i can play the songs from the computer and nothing appears to have changed.... but recently I keep getting a message saying something like " songs cannot be updated because the selected playlists no longer exist" whenever i try to update my ipod and now all of the songs and info on my ipod are gone.
The only odd thing that has happened right before this was that a message came up saying "itunes can automatically create a playlist of songs that it chooses" I accidently agreed and as soon as another playlist was created i deleted it, and ever since i try to update my ipod i keep getting the above statement about the playlists no longer existing. What's the deal?
Dell Windows XPWhat's the deal?
It seem like your iTunes Library now exceeds the size of your iPod and iTunes is (unsuccessfully) looking for the playlist that you accidentally deleted
Have a look at this article in the Apple Knowledge Base for some background.
Your best bet is to recreate that playlist, naming it your iPod's name Selection, and put the music you want transferred over in that playlist.
iTunes should be able to take care of things from there. -
"samba-discovery". An automounter script for windows shares
Hi.
At the last lan party I found it quite annoying to mount samba shares by hand all the time (as I don't use a smb capable browser with fuse like dolphin or the like). So here's what I've come up with. Explenations on how it works are at the start of the script. You can also download it directly from here. Basically you run it and anything available on the lan will be tidily mounted to /mnt/samba-discovery/*.
#!/bin/bash
# Hi and welcome to this samba/windows share automounting script.
# It will:
# - Scan the network for windows/samba hosts.
# - Mount all their available guest shares
# - If rerun it will check if all shares are still accesible
# - Unmount everything if you use the -u option
# It will not:
# - Work on password protected shares. No idea what will happen,
# I guess mount.cifs will spit an error but the script will continue
# Run it without options to mount/rescan, use -u to unmount everything.
# Before running it please specify the options below.
# Post questions on the Archlinux forum: http://bbs.archlinux.org/viewtopic.php?pid=596979#p596979
# MOST IMPORTANTLY: If it eats all your files for breakfast, it's none
# of my responsibility! It should be quite safe though because it's
# always checking if a dir is empty before deleting it.
### Options
# Specify the name of your network adapter (e.g. eth0):
netiface='eth0'
# Specify which range of IPs you're interested in (less is faster)
lowend=1
highend=20
### Code
# Prepare samba-discovery folder
if [[ ! -d /mnt/samba-discovery/ ]]; then
mkdir /mnt/samba-discovery
fi
# Unmount all shares and clean up directories using -u
umountcount=0
uhostcount=0
if [[ $1 == "-u" ]]; then
shopt -s nullglob dotglob
dirs=(/mnt/samba-discovery/*)
(( ${#dirs[@]} )) || sharefolders=1
shopt -u nullglob dotglob
if [[ ! $sharefolders == 1 ]]; then
for i in /mnt/samba-discovery/*/*; do
umount "$i" 2>/dev/null
cd "$i" 2>/dev/null
shopt -s nullglob dotglob
files=(*)
(( ${#files[*]} )) || dirempty=1
shopt -u nullglob dotglob
if [[ ! $dirempty == 1 ]]; then
echo ">>> warning: target directory not empty although share unmounted"
echo ">>> aborting. please investigate directory:"
echo " $i"
exit 1
else
dirempty=0
rm -R "$i"
echo " share on $i unmounted, folder removed."
((umountcount++))
fi
done
for i in /mnt/samba-discovery/*; do
umount "$i" 2>/dev/null
cd "$i" 2>/dev/null
shopt -s nullglob dotglob
files=(*)
(( ${#files[*]} )) || dirempty=1
shopt -u nullglob dotglob
if [[ ! $dirempty == 1 ]]; then
echo ">>> warning: target directory not empty although all shares unmounted"
echo ">>> aborting. please investigate directory:"
echo " $i"
exit 1
else
dirempty=0
rm -R "$i"
echo " parent folder $i removed."
((uhostcount++))
fi
done
echo "-> Removed $umountcount shares and $uhostcount parent folders"
exit 0
else
echo "no parent folder found, nothing to unmount"
exit 0
fi
fi
# Normal run. Scan for shares which are no longer on the network...
if [[ ! $1 == "" ]]; then
echo "Invalid option. Aborted"
exit 1
fi
shopt -s nullglob dotglob
dirs=(/mnt/samba-discovery/*)
(( ${#dirs[@]} )) || sharefolders=1
shopt -u nullglob dotglob
if [[ ! $sharefolders == 1 ]]; then
echo ':: Cleaning up orphaned shares...'
cleancount=0
for i in /mnt/samba-discovery/*/*; do
if [[ ! $(ls $i 2>/dev/null) ]]; then
umount "$i" 2>/dev/null
cd "$i" 2>/dev/null
shopt -s nullglob dotglob
files=(*)
(( ${#files[*]} )) || dirempty=1
shopt -u nullglob dotglob
if [[ ! $dirempty == 1 ]]; then
echo ">>> warning: target directory not empty although share unmounted"
echo ">>> aborting. please investigate directory:"
echo " $i"
exit 1
else
dirempty=0
rm -R "$i"
echo " share on $i no longer accesible, removed."
((cleancount++))
fi
else
if [[ ! $(cat /proc/mounts | grep "cifs" | awk '{print $2}' | grep $i) ]]; then
cd "$i" 2>/dev/null
shopt -s nullglob dotglob
files=(*)
(( ${#files[*]} )) || dirempty=1
shopt -u nullglob dotglob
if [[ ! $dirempty == 1 ]]; then
echo ">>> warning: target directory not empty although nothing mounted there"
echo ">>> aborting. please investigate directory:"
echo " $i"
exit 1
else
dirempty=0
rm -R "$i"
echo " nothing mounted on $i, removed."
((cleancount++))
fi
fi
fi
done
echo "-> Cleaned out $cleancount shares"
fi
# ... and then scan for new hosts and mount shares
echo ':: Scanning for new hosts and shares...'
netaddr=$(ifconfig eth0 | grep "inet addr" | awk '{print $2}' | awk -F ":" '{print $2}' | awk -F "." '{print $1"."$2"."$3}')
hostcount=0
sharecount=0
for ((ip=$lowend; ip<=$highend; ip++)); do
printf " scanning $netaddr.$ip...\r"
if (( $(nmap -PN -p139,445 "$netaddr.$ip" | grep -e "139/tcp open" -e "445/tcp open" | wc -l) == 2 )); then
hostwinname="$( nmblookup -A $netaddr.$ip | grep "<00>" | grep -v "<GROUP>" | awk '{print $1}')"
hostdirname="$(echo $hostwinname | tr [:upper:] [:lower:])"
echo " found $hostwinname on $netaddr.$ip"
IFS=$'\n' shares=($(smbclient -N -gL \\\\$netaddr.$ip\\ 2>&1 | grep -e "Disk|" | grep -v '\$' | awk -F "|" '{print $2}'))
for share in ${shares[*]}; do
sharedir="$(echo $share | sed s/\ /_/g | tr [:upper:] [:lower:])"
if [[ "$(cat /proc/mounts | grep ",unc=\\\\\\\\$netaddr.$ip\\\\$share,")" ]]; then
echo " share "$share" already mounted in /mnt/samba-discovery/$hostdirname/$sharedir"
else
if [[ ! -d "/mnt/samba-discovery/$hostdirname" ]]; then
mkdir "/mnt/samba-discovery/$hostdirname"
#echo "$hostwinname:$hostdirname:$netaddr.$ip" >> /mnt/samba-discovery/$hostdirname/ip.txt
fi
if [[ ! -d "/mnt/samba-discovery/$hostdirname/$sharedir" ]]; then
mkdir "/mnt/samba-discovery/$hostdirname/$sharedir"
else
cd "/mnt/samba-discovery/$hostdirname/$sharedir"
shopt -s nullglob dotglob
files=(*)
(( ${#files[*]} )) || dirempty=1
shopt -u nullglob dotglob
if [[ ! $dirempty == 1 ]]; then
echo ">>> warning: mounting directory not empty although share not mounted!"
echo ">>> aborting. please investigate directory:"
echo " /mnt/samba-discovery/$hostdirname/$sharedir"
exit 1
fi
dirempty=0
fi
mount "//192.168.1.$ip/$share" "/mnt/samba-discovery/$hostdirname/$sharedir" -o guest 2>/dev/null
echo " mounted "$share" in /mnt/samba-discovery/$hostdirname/$sharedir"
((sharecount++))
fi
done
((hostcount++))
fi
done
echo "-> Mounted $sharecount shares from $hostcount hosts."
# Remove samba-discovery folder if it is empty
if [[ -d /mnt/samba-discovery/ ]]; then
cd "/mnt/samba-discovery/"
shopt -s nullglob dotglob
files=(*)
(( ${#files[*]} )) || sambadirempty=1
shopt -u nullglob dotglob
if [[ sambadirempty == 1 ]]; then
rm -R /mnt/samba-discovery/
fi
fi
Here's some sample output of how it will look, including one orphaned share and a new one on a rerun of the script:
[root@Mothership samba-discovery]# /home/medja/scripts/samba-discovery
:: Cleaning up orphaned shares...
share on /mnt/samba-discovery/blackrabbit/conflict_denied_ops no longer accesible, removed.
-> Cleaned out 1 shares
:: Scanning for new hosts and shares...
found BLACKRABBIT on 192.168.1.2
share CD-Images already mounted in /mnt/samba-discovery/blackrabbit/cd-images
share CD-Images2 already mounted in /mnt/samba-discovery/blackrabbit/cd-images2
share Filme already mounted in /mnt/samba-discovery/blackrabbit/filme
share Filme2 already mounted in /mnt/samba-discovery/blackrabbit/filme2
mounted Music Library in /mnt/samba-discovery/blackrabbit/music_library
found MOTHERSHIP on 192.168.1.4
share space already mounted in /mnt/samba-discovery/mothership/space
found EEE on 192.168.1.5
share SharedDocs already mounted in /mnt/samba-discovery/eee/shareddocs
-> Mounted 1 shares from 3 hosts.
Last edited by Shapeshifter (2009-08-07 18:51:05)thanks a lot, i wanted to write that script for a long time, but never got around. one thing though, you shouldn't mount stuff in a subfolder of /mnt because /mnt itself should be kept for such purposes (unix file hierarchy standards, afaik)
but that should be easily fixed by myself
cheers
Phil
Last edited by Heller_Barde (2009-08-07 21:42:46) -
ATM Light no longer available for Windows
I just went to the download page for ATM Light, and found that while the Mac version is still available, there is no longer a link to download ATM 4.1.2 for Windows. All that's there is a note saying that it's not needed for Windows 2000 and the system requirements for installing it. The referencing page has the correct information that ATM is required for earlier versions of windows and if you need to create instances of [the no longer supported] multiple master fonts.
Referencing page:
http://www.adobe.com/products/atmlight/
Download page:
http://www.adobe.com/products/atmlight/download.html
Does anyone know if they've pulled this intentionally and permanently? It's still available on the FTP site, but that's somewhat arcane.
- HerbTry again. I had no problem downloading it just a few minutes ago. Maybe part of the server farm was down when you tried accessing it.
- Dov
Maybe you are looking for
-
After firming planned order, new planned order is generating in MRP run
Hi Experts, I am using SAP AFS. Planning strategy is 21- MTO with Project settlement. MRP type is PD. Lte size is EX. Procurement type is X. We are using the production versions. Individual / collective reqmts is 1. Planning time fence is not maintai
-
Imac 27inch display with laptop
Hi there all, I have a iMac 27inch and would like to know if it is possible to use it as a display when working with my windows work laptop? Cheers Straydingo
-
Itunes 8 install - getting error with 'Bonjour Service'
when trying to install I get the error... "Service 'Bonjour service' (Bonjour Service) failed to start. verify that you have sufficient privileges to start system services." No I have gone into the admin and set it to restart, and apply, but still IT
-
How to Link Published Outlook form in an email?
I created a Service Request feedback form in Outlook 2010 and got it published in Organization Forms Librar. Now anyone in the organization can open th form from the regular way of Choose Forms and selecting this form. My requirement is to have a lin
-
Adobe Reader 8.x Help vs. Windows default browser
Why following any Web link within Adobe Reader 8.1 Help invokes unconditionally start of Internet Explorer ? The fact what browser is set as default one is being ignored during this !!! Strange strategy of Adobe.