To answer my own question, you don't mount partition 2 of the SD card when you are using NOOBS 1.3.
Partition 2 is the device for the entire disk. Presumably it used to be something useful to mount but it
no longer makes sense to do so.
What I was trying to do was to use safe mode to restore the old kernel after I installed one that didn't work.
See below for the answer to that question.
by rod_gilchrist » Wed Oct 09, 2013 9:50 pm
To ask the same question again, how do you mount partition 2 of the SD card in safe mode?
by dom » Wed Aug 15, 2012 9:33 am
Hello,how do i mount /dev/mmcblk0p2 in safe mode? because if i type: df, i can find it .
mount /dev/mmcblk0p2 /mnt
If /mnt doesn't exist then "mkdir /mnt" first.
# mount /dev/mmcblk0p2 /mnt
mount: mounting /dev/mmcblk0p2 on /mnt failed: Invalid argument
In NOOBS 1.3 safe mode with Rasbian installed, an fdisk -l gives the following:
- Code: Select all
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 8192 2505859 1248834 e W95 FAT16 (LBA)
/dev/mmcblk0p2 2506752 15663103 6578176 85 Linux extended
/dev/mmcblk0p3 15663104 15728639 32768 83 Linux
/dev/mmcblk0p5 2514944 2637823 61440 c W95 FAT32 (LBA)
/dev/mmcblk0p6 2646016 15663103 6508544 83 Linux
The partitions are:
/dev/mmcblk0p1 - this partition is the recovery file system containing the system images.
/dev/mmcblk0p5 - this partition is mounted as /boot when in normal operation of Raspian.
/dev/mmcblk0p6 - this partition is the / filesystem when in normal operation.
dom's answer above works fine for mounting any of these three file systems in safe mode or on another linux machine (e.g.)
mount /dev/mmcblk0p5 /mnt
Another useful and interesting answer is that if you plug the SD card into a Mac, partition 1 and 5 show up as
disks called RECOVERY and BOOT respectively.