Trying to Mount USB mounting /dev/sda1 on /mnt/usb failed: Invalid argument
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Trying to Mount USB mounting /dev/sda1 on /mnt/usb failed: Invalid argument
I am using an embed linux application and trying to mount a USB device.
The USB worked fine in windows. I then put it on my Linux box formatted (I hope correctly)
And then tried to do the following to mount it
Code:
Disk /dev/sda: 4040 MB, 4040748544 bytes
255 heads, 63 sectors/track, 491 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 491 3943926 83 Linux
-bash-3.2# mkdir /mnt/usb
-bash-3.2# mount /dev/sda1 /mnt/usb
mount: mounting /dev/sda1 on /mnt/usb failed: Invalid argument
-bash-3.2#
boot into livecd, find your usb device(likely still /dev/sda1 , but check it with fdisk first), then
Code:
mkfs.ext3 /dev/sda1
and that's it.
or, yes, alternatively you can format it to fat32.
Unfortunately, it seems to me that either of ways won't actually help you using this drive on this device(what's the device btw?), as far as I can see there is no fsck.ext2/fsck.ext3 only minix fs, so likely you will not be able to use any of previously mentioned filesystems with current kernel of the device.
lsmod is command that lists loaded kernel modules, not for reading some info from drives as you used it. It requires no additional parameters but that won't help you here: it's just for your future reference.
I tried to format the drive in a live cd but I am getting a error that the drive is in use, even when i try and format it from the gui it fails
I tried to "safely remove device" but then the format command would not work either saying device was busy made sure i was no in it in termnal and also not a open window but still no luck:-(
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.