- Arch Linux
- #1 2010-05-16 07:33:43
- [SOLVED] Booting to SD card (mmcblk0) with Grub2
- #2 2010-05-17 03:06:37
- Re: [SOLVED] Booting to SD card (mmcblk0) with Grub2
- #3 2010-05-18 06:43:38
- Re: [SOLVED] Booting to SD card (mmcblk0) with Grub2
- Arch Linux
- #1 2014-07-28 11:22:55
- /dev/mmcblk0 SD card not mountable, wrong fs, bad option
- #2 2014-07-28 15:00:50
- Re: /dev/mmcblk0 SD card not mountable, wrong fs, bad option
- #3 2014-07-28 16:36:40
- Re: /dev/mmcblk0 SD card not mountable, wrong fs, bad option
- #4 2014-07-28 17:30:22
- Re: /dev/mmcblk0 SD card not mountable, wrong fs, bad option
- #5 2014-07-28 17:56:06
- Re: /dev/mmcblk0 SD card not mountable, wrong fs, bad option
- #6 2014-07-28 20:00:20
- Re: /dev/mmcblk0 SD card not mountable, wrong fs, bad option
- #7 2014-07-28 20:12:41
- Re: /dev/mmcblk0 SD card not mountable, wrong fs, bad option
- Unable to mount mmcblk partition on linux
- 1 Answer 1
- Solution
- Вопрос как флешку определенную dev/sd* переподключить на dev/mmcblk*
- Problem mounting mmcblk
- 1 Answer 1
Arch Linux
You are not logged in.
#1 2010-05-16 07:33:43
[SOLVED] Booting to SD card (mmcblk0) with Grub2
I have a laptop with win7/Ubuntu on the hard drive; this laptop also has an SDHC slot.
For my own reasons I decided to install Arch on an SD card.
I installed arch according to this very helpful post: http://bbs.archlinux.org/viewtopic.php?pid=398679
Since the system already boots with Grub2 from the Ubuntu install I skipped the grub install steps.
My BIOS cannot boot to SD cards (even with the bootable flag set on the mmcblk0p1 partition)
I booted into Ubuntu and ran update-grub, this added the following entry to the Grub2 boot menu: «Arch (on /dev/mmcblk0p1)»
Booting to this gives three errors:
no such device (error lists correct UUID of SD card)
hd2,1 cannot get C/H/S values
you need to load the kernel first
the entry in grub.cfg is:
Last edited by crotonic (2010-05-22 05:23:01)
#2 2010-05-17 03:06:37
Re: [SOLVED] Booting to SD card (mmcblk0) with Grub2
I think it would work if you could put /boot on your hard drive.
I’m not familiar with grub2 or else I would try editing your grub.cfg entry as if you had /boot on, for example, /dev/sda3.
Maybe someone else knows how to, or maybe you can figure it out.
Last edited by Odysseus (2010-05-17 03:09:22)
I’m the type to fling myself headlong through the magical wardrobe, and then incinerate the ornate mahogany portal behind me with a Molotov cocktail.
#3 2010-05-18 06:43:38
Re: [SOLVED] Booting to SD card (mmcblk0) with Grub2
I have got the system to boot the way I want and will try to detail it for others
1) Make a kernel that can boot an SDHC card
I found this list of needed kernel modules for doing this with ubuntu: http://www.linuxformat.com/forums/viewtopic.php?t=11709
First I chroot-ed from ubuntu into my sd card according to: http://wiki.archlinux.org/index.php/Ins … ting_Linux
then using the wiki as my guide: http://wiki.archlinux.org/index.php/Mkinitcpio
I copied /etc/mkinitcpio.conf to a new file /etc/mkinitcpio-custom.conf
and edited the modules line to look like so
then ran (still while chroot-ed of course) note that the -k option should match the version that you are using (mine is 2.6.33)
exit the chroot back to ubuntu
2) Move the files to the boot partition
I am using ubuntu’s partition as the boot since that is where grub2 is installed
First I made a copy and renamed vmlinuz26 to vmlinuz26-custom
and another copy/rename to make System.map26-custom
NOTE: I am not sure if renaming these helps/hurts/or doesnt matter (feed back appreciated)
then I moved those 2 files and kernel26-custom.img to the /boot of the ubuntu /
3) Setup a working grub.cfg
Since it is recommended to not edit grub.cfg directly in Grub2 I just added the following entry to /etc/grub.d/40_custom
hd0,5 is grub2 notation for my ubuntu partition (where /boot is of course)
This is all I did to get it running that I can remember
Arch’s /etc/fstab is:
notice that there is no /boot mount point
I can boot into Arch using the setup I described above with a totally empty /boot on the Arch partition
Should I care that it is not mounted?
I hope this helps other people trying to boot from SD cards
Источник
Arch Linux
You are not logged in.
#1 2014-07-28 11:22:55
/dev/mmcblk0 SD card not mountable, wrong fs, bad option
I am not able to mount my SD card anymore. It’s a SD card I use in my camera to take pics and there are some pics I don’t want to lose on it.
What can I do?
water vapor is invisible
#2 2014-07-28 15:00:50
Re: /dev/mmcblk0 SD card not mountable, wrong fs, bad option
Bonjour,
Look at the messages in ‘dmesg’ concerning the SD card after you plugged it in.
fsck takes a file system argument like mount; surely ‘dev/mmcblk0’ is not one.
What is the file system type on the SD card?
Do you have an entry for it in ‘/etc/fstab’?
#3 2014-07-28 16:36:40
Re: /dev/mmcblk0 SD card not mountable, wrong fs, bad option
Bonjour berbae
(I put the fsck result without knowing what the program was really doing, thought it could help. apparently it doesn’t ^^)
here is the result of dmesg when I plug it in:
water vapor is invisible
#4 2014-07-28 17:30:22
Re: /dev/mmcblk0 SD card not mountable, wrong fs, bad option
I believe this. Most cameras don’t use ext file systems. Mayhaps if you mounted it as fat32?
Edit: Actually, the -t switch for mount is vfat
Last edited by ewaller (2014-07-28 17:33:49)
Nothing is too wonderful to be true, if it be consistent with the laws of nature — Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. — Alan Turing
—
How to Ask Questions the Smart Way
#5 2014-07-28 17:56:06
Re: /dev/mmcblk0 SD card not mountable, wrong fs, bad option
Run lsblk —fs to display filesystem info.
But whether the Constitution really be one thing, or another, this much is certain — that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
#6 2014-07-28 20:00:20
Re: /dev/mmcblk0 SD card not mountable, wrong fs, bad option
Silly question, but have you rebooted yet after a recent kernel upgrade? This has bitten me multiple times with removable devices.
#7 2014-07-28 20:12:41
Re: /dev/mmcblk0 SD card not mountable, wrong fs, bad option
@alphaniner: lsblk —fs doesn’t give me any information about my /dev/mmcblk0p1:
@firecat53: yup I rebooted after recent kernel upgrade. Actually my sister tried to mount it on her macbook and it didn’t work, that’s why I’m trying manually on arch.
thank you all for your replies. If anyone has any idea about how I could retrieve these pics. (pics of my sister’s trip to Lahos and Birmania, beautiful ones, would be sad to lose them)
Источник
Unable to mount mmcblk partition on linux
Im running Kali live on USB and Im trying to access a Windows 10 partition (because Windows has a password that we forgot about and Im trying to alter the SAM file). On HD drives i just use mount /dev/sdX /mnt and im in, but on SD drives (its my first experience with them) ive got this file system error that i dont know how to solve. this is fdisk -l result :
and this is the result of fdisk /dev/mmcblk0p3 -l
this is the result of file -s /dev/mmcblk0p3
this is the result of lsblk
when I run this command :
I get the following error :
ive tried with this mount -t vfat /dev/mmcblk0p3 /mnt also but i get :
and finally this is the result of cat /proc/filesystems
What could be the cause of thoes errors ?
1 Answer 1
The root cause is that you’re attempting to mount a nested partition, and Linux doesn’t recognize those as block devices. Here’s the GPT table for /dev/mmcblk0 :
The third partition, /dev/mmcblk0p3 contains an MBR table, not a filesystem:
Notice the DOS disk label above. However, Linux doesn’t recognize that MBR table nested in a partition. Consequently the MBR partitions are not available for mounting:
Solution
You can mount a nested partition using a loop mount. Essentially, you’ll be creating a block device which points to the nested partition, and then mounting that block device. Beware, this is tricky to do, and given that the start and end sectors of the nested partitions as shown by fdisk are clearly incorrect, I won’t be able to provide much guidance.
Basically, you’ll need to figure out where a nested partition actually begins and ends, and then use the offset and sizelimit options to create a loop device. Something like this:
Источник
Вопрос как флешку определенную dev/sd* переподключить на dev/mmcblk*
сразу оговорюсь, бить ногами не надо, я ламо в linux
есть Fedora 22, есть встроенный кардридер (производителя не подскажу), есть карта SD на 64gb, нужно чтоб эта карта в системе определилась как dev/mmcblk*.
На всех ноутах с которыми я пробовал карточка всегда определялась как dev/sd*
Вопрос: как переопределить карту с dev/sd* на dev/mmcblk*
нужно чтоб эта карта в системе определилась как dev/mmcblk*
Зачем? Да, и правильнее писать /dev/mmcblk* и /dev/sd*, так как это абсолютные пути.
нужно изменить CID SD карты, нужно для навигации
можно попросить команду прописать полностью?
или мне какой то другой дистриб попробовать, не Fedora
Переименовать наскольао я знаю просто так нельзя, но можно написать udev rule, чтобы он создавал симлинк.
Но ты всегда можешь сделать в лоб. Тем же udev rule запускать скрипт, который удалит /dev/sd* и запустит mknod с нужными параметрами.
Я не про команду говорил. Просто в UNIX есть относительные и абсолютные пути к файлам и директориям. /dev/sda — абсолютный, dev/sda — относительный. Я просто указал на ошибку в тексте твоего поста.
можно подробнее? прям по пунктам
ДБ9йболехок, а не проще сделать симлинк?
что это такое? и с чем его едят?
если cardreader отдаёт как sd* то никак, брать другой кардридер.
Давай начнем с другой стороны.
Как ты собираешься менять CID SD карты ?
Вот что мне нужно сделать, я застрял на определении карты в системе как mmcblk
8. Проверьте, подходит ли кардридер для прошивки, выполнив команду df
Очень важно чтоб кардридер был интегрированный, т.к. в большинстве случаях внешние кардридеры обычно определяются устройствами как USB поключения. Если в системе видно устройство /dev/mmcblk?, значит кардридер подходит. Иначе SD карта смонтировалась как /dev/sd. и ваш кардридер не подойдет. Вместо символов ? могут быть другие буквы или цифры, это зависит от вашей системы. Если ваш кардридер не подходит проблема решается поиском другого компьютера или ноутбука с подходящим кардридерем.
В вашем конкретном случае SD карта может определиться как /dev/mmcblk0, /dev/mmcblk1, /dev/mmcblk2, /dev/mmcblk0 и т.д. в моём случае определилась как /dev/mmcblk0p1. Далее по плану в указанных командах вводите правильное имя устройства mmcblk с цифрой в конце, как оно определено в вашей системе. В примерах ниже будет указываться mmcblk0.
9.1. Убедитесь, что ваша SD карта подходит, и ее CID можно изменить. Выполнить команду ls -l /sys/block | grep mmc
Ну так тебе написали. Что не подходит. Скорее всего в твоём ноуте кардридер просто подключен по USB.
я перепробовал 20 разных ноутов со встроенным кардридерами, вопрос остается открытым, как переопределить /dev/sd* на /dev/mmcblk*?
Никак. Искать подходящий. У меня в ноуте sd карты определяются как mmcblk. Ноут lenovo thinkpad e330.
как сделать симлинк?
9.2. Или с помощью телефона на Android и программы SD Insight
Вставьте карту в телефон, установите программу SD Insight, >запустите ее, выберите иконку с глазом в правом верхнем углу >программы и смотрите на строку Bus Location.
Справедливости ради, это будет работать не на всех устройствах, определяющихся как /dev/mmcblk.
Симлинк тебе ничем не поможет.
Можешь просто сделать как в инструкции, но вместо
./mmc prog_cid /dev/mmcblk0 0941504146205344021349037f00fa00
вписать например так
./mmc prog_cid /dev/sdg 0941504146205344021349037f00fa00
Значит тебе 20 раз подряд не повезло. Ну и это, читай что тебе пишет bdfy. Название это ещё не факт. Просто вместо mmcblk пиши sd?.
Либо сделать симлинк с требуемым именем, либо сделать файл с нужным именем блочного устройства с major,minor как у исходного файла блочного устройства.
Что лучше/удобнее сделать решай на месте. Но если в твоем дистрибутиве используется UDEV (то есть, динамическая генерация имен файлов устройств) — это нужно учесть.
Прошу помощи через удаленку или любым другим способом
Источник
Problem mounting mmcblk
I’m using Lubuntu 14.04 on a Vaio laptop.
When I insert my card it is not automatically mounted. I need to remove and insert around 3 or 4 times until the file manager opens.
So I’m trying to mount it after I insert it (because I’m afraid that remove and inserting it could damage it). But I can not mount it using terminal.
I have some questions:
Here is the output of fdisk -l
why is it in /dev/mmcblk0p1 instead of some sdx ?
Since it shows b FAT32 W95 should I use -t vfat option to mount ?
why sudo file -s /dev/mmcblk0p1 is returning /dev/mmcblk0p1: x86 boot sector ? So should I use another -t option for file system?
I’m confusing. I just want to be able to mount it with a single line of command on terminal (since the auto mount is not working).
1 Answer 1
why is it in /dev/mmcblk0p1 instead of some sdx?
That’s caused by udev’ rules. ‘sdx’ — that’s a typically udev name for SATA-based devices.
Since it shows b FAT32 W95 should I use -t vfat option to mount?
Yes, this is a correct option to use.
why sudo file -s /dev/mmcblk0p1 is returning /dev/mmcblk0p1: x86 boot sector? So should I use another -t option for file system?
Have you created any kind of filesystem there? Have you ever mounted that correctly and have you ever used it?
In my opinion, the best solution for you: 0) Backup all important data somewhere 1) Completely re-format your card via mkfs.vfat /dev/mmcblk0p1 2) Mount it manulally via mount -t vfat /dev/mmcblk0p1 /mount/path (any path you wish — i.e /mnt/sdcard)
You’ll see the content of your card in that directory, where you’ve just mounted.
Источник