Posted on March 8, 2017 9:19 pm
 |  Asked by Ken Kuroiwa
 |  396 views
RESOLVED
0
0
Print Friendly, PDF & Email

Hi there,

I have a question about bash mode. I created shell script file on user home path (under /home/username)

By the way, my script was gone after reload the switch.  Do you know how to keep my script on the my home directory? or it’s limitation for VM?

Do I need to use other file path? would you share your knowledge please.

0
Posted by Alexandru
Answered on March 9, 2017 9:39 am

Hi Ken,

The only filesystem that survives a reboot in vEOS is /dev/sda1 which is mounted in /mnt/flash.
This means the file path would be /mnt/flash/Script_Name.

For a physical switch, the behavior would be the same with the note that some switches have a SSD or you can have a USB memory stick connected in the front-panel.
For more info you could run “df -h” in bash and check the filesystems types and their respective mount points.

Hope this helps.

0
Posted by Jere Julian
Answered on March 9, 2017 11:34 am

Additionally, if you need a persistent filesystem that maintains full linux file properties, etc, you can use /persist/ which will be backed up to a location on Flash:.   What you have experienced is due to the EOS.swi being an image that is expanded into memory on-boot.

0
Posted by Ken Kuroiwa
Answered on March 23, 2017 11:44 pm

Hi there,

Sorry for late reply, Thank you for your help.

We solved our issue. I tried using SSD on real device. everything working well.

Post your Answer

You must be logged in to post an answer.