Вход на сайт

Просмотр новости

Найдите то, что Вас интересует

Не монтируется rootfs с некоторых sd-карт

Дата публикации: 16-09-2026 07:52:34



Вводные данные
Есть образ для sd:
$ gdisk -l sdcard.img
GPT fdisk (gdisk) version 1.0.10
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk sdcard.img: 1105960 sectors, 540.0 MiB
Sector size (logical): 512 bytes
Disk identifier (GUID): B00D8182-4B3E-46AB-A778-EA132328E92D
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 1105926
Partitions will be aligned on 2048-sector boundaries
Total free space is 16357 sectors (8.0 MiB)
Number Start (sector) End (sector) Size Code Name
1 16384 24575 4.0 MiB 8300 uboot
2 24576 32767 4.0 MiB 8300 misc
3 32768 163839 64.0 MiB 8300 boot
4 163840 425983 128.0 MiB 8300 recovery
5 425984 491519 32.0 MiB 8300 backup
6 491520 1105919 300.0 MiB 8300 rootfs
Заливаю следующим образом:
$ dd if=sdcard.img of=/dev/sdc bs=1M status=progress && sync
С некоторыми sd всё замечательно. После dd сразу можно сделать:
# mount /dev/sdc6 mnt/
И всё работает. А с другими какая-то фигня. sd-карты разных размеров: 8, 16, 32 гб.
Какая-то фигня
Другие sd-карты. Делаю всё также dd (можно предварительно if=/dev/zero для надёжности).
Если воткнуть в устройство
Устройство запускается uboot и kernel запускаются. Но потом случается kernel panic:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,6)
Если попробовать примонтировать
[173705.740640] EXT4-fs (sdc6): VFS: Can't find ext4 filesystem
[173705.741159] EXT4-fs (sdc6): VFS: Can't find ext4 filesystem
[173705.741470] EXT4-fs (sdc6): VFS: Can't find ext4 filesystem
[173705.759537] ISOFS: Unable to identify CD-ROM format.
[173705.759835] FAT-fs (sdc6): bogus number of reserved sectors
[173705.759837] FAT-fs (sdc6): Can't find a valid FAT filesystem
[173705.760256] hfs: can't find a HFS filesystem on dev sdc6
[173705.760632] hfsplus: unable to find HFS+ superblock
[173705.761486] exFAT-fs (sdc6): invalid boot record signature
[173705.761488] exFAT-fs (sdc6): failed to read boot sector
[173705.761489] exFAT-fs (sdc6): failed to recognize exfat type
А что говорит gdisk?
Caution: invalid backup GPT header, but valid main header; regenerating
backup header from main header.
Warning! Main and backup partition tables differ! Use the 'c' and 'e' options
on the recovery & transformation menu to examine the two tables.
Warning! One or more CRCs don't match. You should repair the disk!
Main header: OK
Backup header: ERROR
Main partition table: OK
Backup partition table: ERROR
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: damaged
****************************************************************************
Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
verification and recovery are STRONGLY recommended.
****************************************************************************
Command (? for help): v
Caution: The CRC for the backup partition table is invalid. This table may
be corrupt. This program will automatically create a new backup partition
table when you save your partitions.
Identified 1 problems!
Откуда эти проблемы берутся? Как их лечить?



 rootfs, sdcard



Основное содержимое страницы с новостью.

Вводные данные

Есть образ для sd:

$ gdisk -l sdcard.img
GPT fdisk (gdisk) version 1.0.10

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk sdcard.img: 1105960 sectors, 540.0 MiB
Sector size (logical): 512 bytes
Disk identifier (GUID): B00D8182-4B3E-46AB-A778-EA132328E92D
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 1105926
Partitions will be aligned on 2048-sector boundaries
Total free space is 16357 sectors (8.0 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1           16384           24575   4.0 MiB     8300  uboot
   2           24576           32767   4.0 MiB     8300  misc
   3           32768          163839   64.0 MiB    8300  boot
   4          163840          425983   128.0 MiB   8300  recovery
   5          425984          491519   32.0 MiB    8300  backup
   6          491520         1105919   300.0 MiB   8300  rootfs

Заливаю следующим образом:

$ dd if=sdcard.img of=/dev/sdc bs=1M status=progress && sync

С некоторыми sd всё замечательно. После dd сразу можно сделать:

# mount /dev/sdc6 mnt/

И всё работает. А с другими какая-то фигня. sd-карты разных размеров: 8, 16, 32 гб.

Какая-то фигня

Другие sd-карты. Делаю всё также dd (можно предварительно if=/dev/zero для надёжности).

Если воткнуть в устройство

Устройство запускается uboot и kernel запускаются. Но потом случается kernel panic:

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,6)
Если попробовать примонтировать
[173705.740640] EXT4-fs (sdc6): VFS: Can't find ext4 filesystem
[173705.741159] EXT4-fs (sdc6): VFS: Can't find ext4 filesystem
[173705.741470] EXT4-fs (sdc6): VFS: Can't find ext4 filesystem
[173705.759537] ISOFS: Unable to identify CD-ROM format.
[173705.759835] FAT-fs (sdc6): bogus number of reserved sectors
[173705.759837] FAT-fs (sdc6): Can't find a valid FAT filesystem
[173705.760256] hfs: can't find a HFS filesystem on dev sdc6
[173705.760632] hfsplus: unable to find HFS+ superblock
[173705.761486] exFAT-fs (sdc6): invalid boot record signature
[173705.761488] exFAT-fs (sdc6): failed to read boot sector
[173705.761489] exFAT-fs (sdc6): failed to recognize exfat type
А что говорит gdisk?
Caution: invalid backup GPT header, but valid main header; regenerating
backup header from main header.

Warning! Main and backup partition tables differ! Use the 'c' and 'e' options
on the recovery & transformation menu to examine the two tables.

Warning! One or more CRCs don't match. You should repair the disk!
Main header: OK
Backup header: ERROR
Main partition table: OK
Backup partition table: ERROR

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: damaged

****************************************************************************
Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
verification and recovery are STRONGLY recommended.
****************************************************************************

Command (? for help): v

Caution: The CRC for the backup partition table is invalid. This table may
be corrupt. This program will automatically create a new backup partition
table when you save your partitions.

Identified 1 problems!

Откуда эти проблемы берутся? Как их лечить?

Схожие новости

#Наименование новостиТональностьИнформативностьДата публикации
1Альтернативные сборки Android или шило на мыло08.9517-09-2026
2Re: Integrity RX2800 i6 MCA Reboot after Panic0525-06-2026
3Сервер uptime 1888 days ≈ 5 лет и 2 месяца023.7515-09-2026
4Зависание мыши Logitech MX-518 на Ubuntu 24.04, сессия X11-18.5319-09-2026
5Чинить нельзя выбросить, или Кое-что о ремонте флешек. Часть 2: Программные проблемы0722-05-2013
6Файловая система Bcachefs официально перестала быть экспериментальной0720-06-2026
7Чинить нельзя выбросить, или Кое-что о ремонте флешек. Аппаратные проблемы5715-05-2013
8Debian Woody на qemu - не работает горячая смена дисков-5313-06-2026
9Могу предложить✅ Цены указаны с оформлением до сохранения✅ С 001 ...016.5301-09-2026
10Могу предложить✅ Цены указаны с оформлением до сохранения✅ С 001 ...016.1725-08-2026

Классификация: Общество. Схожих патентов: 0. Схожих новостей: 10. Тональность: 0. Информативность: 15.17. Источник: www.linux.org.ru.