/dev/mmcblkp1 as MyDocs /dev/mmcblkp2 as / /dev/mmcblkp3 as /home
# /sbin/sfdisk -l /dev/mmcblk0 Disk /dev/mmcblk0: 1957120 cylinders, 4 heads, 16 sectors/track Units = cylinders of 32768 bytes, blocks of 1024 bytes, counting from 0 Device Boot Start End #cyls #blocks Id System /dev/mmcblk0p1 16 100015 100000 3200000 c W95 FAT32 (LBA) /dev/mmcblk0p2 1760512 1891583 131072 4194304 83 Linux /dev/mmcblk0p3 1891584 1957119 65536 2097152 83 Linux /dev/mmcblk0p4 100016 1760511 1660496 53135872 83 Linux
# cat /etc/usb-moded/usb-moded.ini [mountpoints] mount = /dev/mmcblk0p1,/dev/mmcblk0p4 #you can add more filesystems to the mount option, by making it a comma-seperated list. [sync] nofua = 1 [altmount] mount = /home/user/MyDocs,/mnt [cdrom] path = /usr/share/aceso/aceso.iso timeout = 1
/sbin/sfdisk --no-reread /dev/mmcblk0 -N1
/sbin/sfdisk --no-reread /dev/mmcblk0 -N4
# /sbin/sfdisk --no-reread /dev/mmcblk0 -N1 Disk /dev/mmcblk0: 1957120 cylinders, 4 heads, 16 sectors/track Old situation: Units = cylinders of 32768 bytes, blocks of 1024 bytes, counting from 0 Device Boot Start End #cyls #blocks Id System /dev/mmcblk0p1 16 100015 100000 3200000 c W95 FAT32 (LBA) /dev/mmcblk0p2 1760512 1891583 131072 4194304 83 Linux /dev/mmcblk0p3 1891584 1957119 65536 2097152 83 Linux /dev/mmcblk0p4 100016 1760511 1660496 53135872 83 Linux Input in the following format; absent fields get a default value. <start> <size> <type [E,S,L,X,hex]> <bootable [-,*]> <c,h,s> <c,h,s> Usually you only need to specify <start> and <size> (and perhaps <type>). /dev/mmcblk0p1 :16 100000 c /dev/mmcblk0p1 16 100015 100000 3200000 c W95 FAT32 (LBA) New situation: Units = cylinders of 32768 bytes, blocks of 1024 bytes, counting from 0 Device Boot Start End #cyls #blocks Id System /dev/mmcblk0p1 16 100015 100000 3200000 c W95 FAT32 (LBA) /dev/mmcblk0p2 1760512 1891583 131072 4194304 83 Linux /dev/mmcblk0p3 1891584 1957119 65536 2097152 83 Linux /dev/mmcblk0p4 100016 1760511 1660496 53135872 83 Linux Warning: no primary partition is marked bootable (active) This does not matter for LILO, but the DOS MBR will not boot this disk. Do you want to write this to disk? [ynq] y Successfully wrote the new partition table Re-reading the partition table ... BLKRRPART: Device or resource busy The command to re-read the partition table failed Reboot your system now, before using mkfs If you created or changed a DOS partition, /dev/foo7, say, then use dd(1) to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1 (See fdisk(8).) ~ # /sbin/sfdisk --no-reread /dev/mmcblk0 -N4 Disk /dev/mmcblk0: 1957120 cylinders, 4 heads, 16 sectors/track Old situation: Units = cylinders of 32768 bytes, blocks of 1024 bytes, counting from 0 Device Boot Start End #cyls #blocks Id System /dev/mmcblk0p1 16 100015 100000 3200000 c W95 FAT32 (LBA) /dev/mmcblk0p2 1760512 1891583 131072 4194304 83 Linux /dev/mmcblk0p3 1891584 1957119 65536 2097152 83 Linux /dev/mmcblk0p4 100016 1760511 1660496 53135872 83 Linux Input in the following format; absent fields get a default value. <start> <size> <type [E,S,L,X,hex]> <bootable [-,*]> <c,h,s> <c,h,s> Usually you only need to specify <start> and <size> (and perhaps <type>). /dev/mmcblk0p4 :100016 99999999 L Warning: given size (32891135) exceeds max allowable size (1660496) /dev/mmcblk0p4 :100016 1660496 L /dev/mmcblk0p4 100016 1760511 1660496 53135872 83 Linux New situation: Units = cylinders of 32768 bytes, blocks of 1024 bytes, counting from 0 Device Boot Start End #cyls #blocks Id System /dev/mmcblk0p1 16 100015 100000 3200000 c W95 FAT32 (LBA) /dev/mmcblk0p2 1760512 1891583 131072 4194304 83 Linux /dev/mmcblk0p3 1891584 1957119 65536 2097152 83 Linux /dev/mmcblk0p4 100016 1760511 1660496 53135872 83 Linux Warning: no primary partition is marked bootable (active) This does not matter for LILO, but the DOS MBR will not boot this disk. Do you want to write this to disk? [ynq] y Successfully wrote the new partition table Re-reading the partition table ... BLKRRPART: Device or resource busy The command to re-read the partition table failed Reboot your system now, before using mkfs If you created or changed a DOS partition, /dev/foo7, say, then use dd(1) to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1 (See fdisk(8).)
/sbin/mkfs.vfat /dev/mmcblk0p1 /sbin/mkfs.ext3 /dev/mmcblk0p4
# cat /etc/fstab rootfs / rootfs defaults,errors=remount-ro,noatime 0 0 /dev/mmcblk0p3 /home ext4 rw,noatime,errors=remount-ro,barrier=1 0 0 /dev/mmcblk0p1 /home/user/MyDocs vfat noauto,nodev,noexec,nosuid,noatime,nodiratime,utf8,uid=29999,shortname=mixed,dmask=000,fmask=0133,rodir 0 0 /dev/mmcblk0p4 /mnt ext4 rw,noatime,errors=remount-ro,barrier=1 0 0 ubi0:var /var ubifs noauto,no_chk_data_crc,bulk_read