Mount invalid argument linux

mount error(22): Invalid argument

Добрый день, монтирую виндовую сетевую папку под debian 9 командой:

нельзя монтировать иерархию каталогов вроде, верным будет

mount -t cifs //192.168.250.30/ExtRep/

а /folder/CB потом забиндить если только.

такая же ошибка:(

Поправка, должно быть так. но все равно не работает. (

попробовал у себя, полет нормальный

sudo mount.cifs //192.168.100.201/1c-base /mnt/servak -o user=user, pass=password

mount -t cifs //192.168.250.30/ExtRep/folder/CB /SHARE -o user=co,domain=CB,password=«Rkbtyn ( 18.10.18 09:59:28 )

у меня тоже так работает на другом серваке, а тут нет=(

verbose добавьте при монтировании, может скажет что-нибудь вразумительное

mount.cifs kernel mount options: ip=192.168.250.30,unc=\\192.168.250.30\ExtRep,vty2019!,iocharset=utf8,user=co,domain=CB,pass=******** mount error(22): Invalid argument

похоже на то, что он воспринимает часть пароля как отдельный параметр

а на другом ПК тот же пароль при монтировании?

Источник

mount: mounting /dev/sda2 on /mnt/sda2 failed: Invalid argument

I’m following this tutorial. But I got stuck at step 9, somehow I’m not able to mount my USB.

Every time I try to mount my USB I get the following error:

The USB seems to be OK and connected but somehow I’m not able to mount the sda2 (ext4) partition.

The partitions seems to be OK as well:

And this is my dmesg output:

This is my fdisk -l output:

4 Answers 4

The error message comes from this line in
/fs/ext4/super.c :

The placeholder for the number in the error message is %x , so the number 400 in the actual error message is hexadecimal 0x400. And it is one if the features identified by the EXT4_FEATURE_RO_COMPAT_ constants.

The definitions for those constants can be found in
/fs/ext4/ext4.h :

The dir_nlink feature mentioned by sourcejedi is 0x20, not 0x400:

So, the MR3020 could not mount the filesystem in read/write mode because its operating system cannot handle ext4 metadata checksums. So you’ll need to turn that feature off using the Linux system you used to create the USB stick. Move the USB stick back to that system (don’t mount the ext4 filesystem) and run:

Читайте также:  Astute graphics plugins bundle windows

(replace X with whatever is the actual identifier of the USB stick in your Linux system.)

After running this command successfully, the metadata_csum feature will be disabled in the USB stick’s ext4 filesystem, and the MR3020 should now be able to use it.

Источник

«Invalid argument» when trying to mount my USB

On Ubuntu, I’m trying to mount my USB

I also tried with «-t ext4» with no success. What am I doing wrong? Thank you very much.

3 Answers 3

/dev/sdb represents the whole storage device. The individual partitions are addressed by numbers following the device name, e.g. sdb1 is the 1st partition in the storage device sdb. As USB flash drives usually have only one partition, the mount command should be:

sda or sdb is just the name of your storage device, if you want to mount it you must enter the partition number too.

Since this is among the top results I want to share some insight about what happened to me and how I solved it.

My situation is that I’m booting the 18.04 di-based server installer and I want to mount another (virtual) optical disc drive. Which gave me this exact error message.

  • I’m in a busybox shell, which may behave different than GNU tools.
  • I have a different, limited kernel running. While the error message gave no indication and all arguments seemed to be correct I tried loading the filesystem module, iso9660 in my case, with modprobe. Then it worked. So whatever filesystem you are trying to mount, you should check (lsmod?) that the respective filesystem module is loaded to. It’s unlikely that the OP was on busybox, but hey questions with not enough context are common and we are trying to solve them.

Источник

FreeBSD: mount: /dev/da0 : Invalid argument

При подключении телефона — система отказывается монтировать флеш-карту:

# mount /dev/da0 /media/usb/
mount: /dev/da0 : Invalid argument

В логе /var/log/messages :

Nov 10 12:34:42 setevoy-home kernel: da0 at umass-sim0 bus 0 scbus2 target 0 lun 0
Nov 10 12:34:42 setevoy-home kernel: da0: Removable Direct Access SCSI-2 device
Nov 10 12:34:42 setevoy-home kernel: da0: 40.000MB/s transfers
Nov 10 12:34:42 setevoy-home kernel: da0: Attempt to query device size failed: NOT READY, Medium not present
Nov 10 12:34:44 setevoy-home kernel: umodem0: on usbus4
Nov 10 12:34:44 setevoy-home kernel: umodem0: data interface 1, has no CM over data, has no break
Nov 10 12:34:44 setevoy-home root: Unknown USB device: vendor 0x1004 product 0x618e bus uhub4

Читайте также:  Open linux file permissions

Проверяем — что за диск используется:

# fdisk /dev/da0
******* Working on device /dev/da0 *******
parameters extracted from in-core disklabel are:
cylinders=951 heads=255 sectors/track=63 (16065 blks/cyl)

parameters to be used for BIOS calculations are:
cylinders=951 heads=255 sectors/track=63 (16065 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 11 (0x0b),(DOS or Windows 95 with 32 bit FAT)
start 8192, size 15269888 (7456 Meg), flag 0
beg: cyl 0/ head 130/ sector 3;
end: cyl 951/ head 4/ sector 13
The data for partition 2 is:

The data for partition 3 is:

The data for partition 4 is:

Проверим — какие разделы есть на диске:

# ls -la /dev/da*
crw-r—— 1 root operator 0, 164 Nov 10 12:34 /dev/da0
crw-r—— 1 root operator 0, 151 Nov 10 13:01 /dev/da0s1

Теперь, когда появился раздел da0s1 — можно его примонтировать:

# mount_msdosfs -L ru_RU.UTF-8 /dev/da0s1 /media/usb/

Если кодировка установлена не UTF-8 — то во время монтирования можно указать свою.

Или — заменить текущую раскладку консоли, например:

Теперь — содержимое карты памяти телефона отображается без проблем, даже кирилица:

# pwd
# /media/usb/media/Muzik
# ls -la
total 512
drwxr-xr-x 1 root wheel 32768 23 май 22:13 .
drwxr-xr-x 1 root wheel 32768 21 май 18:26 ..

drwxr-xr-x 1 root wheel 32768 23 май 22:17 Oomph!
drwxr-xr-x 1 root wheel 32768 17 сен 00:22 Papa Roach
drwxr-xr-x 1 root wheel 32768 23 май 22:17 Rammstein
-rwxr-xr-x 1 root wheel 2426 3 июл 20:24 albumart.pamp
drwxr-xr-x 1 root wheel 32768 17 сен 00:23 Король и шут

Отмонтировать диск перед отключением телефона можно стандартно:

Если выдается ошибка вида «umount: unmount of /media/usb failed: Device busy » — добавляем ключ -f :

Источник

Читайте также:  Исчез проигрыватель windows media

mounting mmcblk0p1 failed with Invalid argument

When I am running linux from sd card and try to mount sd card -no problem, works fine. But when I am running linux from flash memory I am unable to mount my SD card:

What could be the basic reason for this error ?

Additional Info

5 Answers 5

As commented by goldilocks, mount -t expects the filesystem type to come after -t , so it won’t work. Otherwise it sounds like you just need to specify the filesystem type. If you don’t know the filesystem type, then there are a list of methods to find out in this answer. If the file command is available, this is probably the best method. As root you would do:

Note also that if the filesystem type is not in listed in /proc/filesystems , then the driver is not compiled into the kernel and so must be available as an external module. Once you have the correct type, you can try:

As a final thought, also make sure the /mnt directory exists! If not create it with mkdir /mnt .

Basic reasons: (updated)

1) Your system does not (properly?) initialize or does not recognize the SD when booting from flash. Is there the /dev/mmcblk0 device after you boot from flash? What does fdisk -l /dev/mmcblk0 say?

2) There is no file system on /dev/mmcblk0p1, you need to create a file system first ( mkfs . ). Check with file -s /dev/mmcblk0p1

3) The file system on /dev/mmcblk0p1 is corrupted, you need to check / repair it, try fsck /dev/mmcblk0p1 , or create a new one

4) Your kernel (when booting from flash) does not have the needed file system driver, check cat /proc/filesystems and ls «/lib/modules/$(uname -r)/kernel/fs/» and see if that list contains the needed file system type. Typically, older kernels don’t support ext4, while your OS might already have tools to create an ext4 file system.

5) Hardware defect — could be the SD card, the controller, wiring . but if it works when booting from the SD card then this is most probably not the case.

Источник

Оцените статью