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.
Even i'm facing the same problem, but in my case i've a drive tht is being mounted on /mnt/ which readily gets mounted without any trouble using the command below.
Code:
mount /dev/sdb /mnt
i've also written a script to copy data and then remove it followed by umnounting and remounting the same dev_entry on /mnt/, After some iterations, while remounting the error msg comes up and further iterations are stopped
You are replying to a 7 year old thread. Start a new thread for new problems.
Quote:
to copy data and then remove it followed by umnounting and remounting the same dev_entry on /mnt/,
Why are you doing that? Mount a drive and leave it mounted until you no longer need it.
I suspect that it's busy and not getting umount one of those times. You can try the -f switch to umount but might get data loss.
Why are you doing that?
I suspect that it's busy and not getting umount one of those times.
I'm testing for a USB device driver. For which i need to follow this procedure and on the device being busy, I'm using `sync` command in the script after every copy and delete of the data.
However i'll try using -f switch as you suggested.
Quote:
Originally Posted by teckk
You are replying to a 7 year old thread.
Sorry for this, i didn't knew that the thread was running for so long.
Why are you mounting the device itself rather than the partition, eg: /dev/sdb1 ?
Bingo!! Remember that "mount" means "connect the filesystem on <device> to <mountpoint> There could be a filesystem on /dev/sdb, but probably not
AND.....don't mount it to /mnt---you'll just hide whatever mount points are in there. Go into /mnt and make a new mountpoint for whatever you are doing.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.