Segmentation fault when mounting from a bash script
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Segmentation fault when mounting from a bash script
Hi all, I am running RedHat 9.0 and I'm trying to mount a usb storage device (actually an external hard drive) using a shell script. I use this command to mount from bash shell:
mount -t ext3 /dev/sdc mnt/backup
This command works perfectly as is should; the drive is mounted at /mnt/backup and I can read/write files fine. However, I have a bash script that I want to run to automate this, and when I run it, it pauses for a bit then comes back with "Segmentation fault". I execute the exact same command that I do from the command line. Other commands that are executed in the script work fine, such as a cd and a case switch block. Any ideas as to what could be wrong?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.