Welcome! Log In Create A New Profile

Advanced

Partition and Format SDCard from Pogoplug OS on PP Mobile

Posted by grayman4hire 
Partition and Format SDCard from Pogoplug OS on PP Mobile
July 20, 2014 05:17PM
Hello,

I need a little help understanding what's going on. I'm trying to partition, format and setup the debian rootfs on a SDCard straight from the default Pogoplug OS.

When I insert my SD Card, DMESG shows that it's detected.

<6>[56558.770000] mmc0: new high speed SDHC card at address e624
<6>[56558.780000] mmcblk0: mmc0:e624 SU04G 3.69 GiB
<6>[56558.780000]  mmcblk0: p1
<6>[56558.950000] EXT3-fs: INFO: recovery required on readonly filesystem.
<6>[56558.950000] EXT3-fs: write access will be enabled during recovery.
<6>[56560.040000] kjournald starting.  Commit interval 5 seconds
<6>[56560.040000] EXT3-fs: recovery complete.
<6>[56560.050000] EXT3-fs: mounted filesystem with writeback data mode.
<6>[56560.260000] kjournald starting.  Commit interval 5 seconds
<6>[56560.270000] EXT3 FS on mmcblk0p1, internal journal
<6>[56560.270000] EXT3-fs: mounted filesystem with writeback data mode.
<6>[84487.040000] mmc0: card e624 removed
<6>[84490.790000] mmc0: new high speed SDHC card at address e624
<6>[84490.800000] mmcblk0: mmc0:e624 SU04G 3.69 GiB
<6>[84490.800000]  mmcblk0: p1

However, fdisk doesn't doesn't see it so I can't partition and format it. Only my USB drive is detected.
/tmp # /sbin/fdisk -l

Disk /dev/sda: 16.0 GB, 16016998400 bytes
16 heads, 36 sectors/track, 54311 cylinders
Units = cylinders of 576 * 512 = 294912 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sda1               1       13696     3944430  83 Linux
/tmp #

The my.pogoplug.com service can somehow see and (auto) mount the sd card though
/tmp # df -h
Filesystem                Size      Used Available Use% Mounted on
ubi0:rootfs              97.1M     15.1M     82.0M  16% /
none                     57.9M      2.2M     55.7M   4% /tmp
/tmp/.cemnt/sda1          3.7G      2.4G      1.1G  69% /tmp/.cemnt/mnt_sda1
/tmp/.cemnt/mmcblk0p1
                          3.6G    688.9M      2.8G  20% /tmp/.cemnt/mnt_mmcblk0p1

Any suggestions? I can definitely partition/format the sdcard from ArchLinux or Debian booting from a USB stick, but looking for a more direct method of setting up a SDCard without having to use a (temp) usb debian/arch stick. Thanks
Re: Partition and Format SDCard from Pogoplug OS on PP Mobile
July 20, 2014 06:06PM
Does the mmc device appear under /dev/disk? if it does not appear there then the Pogo OS udev (if it uses udev) did not detect the mmc. It might use some hotplug process to do this, though.

ls -lR /dev/disk/

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Partition and Format SDCard from Pogoplug OS on PP Mobile
July 20, 2014 06:43PM
Thanks for the reply.

/tmp # ls -lR /dev/disk/
ls: /dev/disk/: No such file or directory
/tmp # ls -lR /dev/mmc*
ls: /dev/mmc*: No such file or directory
/tmp # ls  /dev/sd*
/dev/sda    /dev/sda4   /dev/sdb12  /dev/sdb8   /dev/sdc2   /dev/sdd10  /dev/sdd6
/dev/sda1   /dev/sda5   /dev/sdb13  /dev/sdb9   /dev/sdc3   /dev/sdd11  /dev/sdd7
/dev/sda10  /dev/sda6   /dev/sdb14  /dev/sdc    /dev/sdc4   /dev/sdd12  /dev/sdd8
/dev/sda11  /dev/sda7   /dev/sdb15  /dev/sdc1   /dev/sdc5   /dev/sdd13  /dev/sdd9
/dev/sda12  /dev/sda8   /dev/sdb2   /dev/sdc10  /dev/sdc6   /dev/sdd14
/dev/sda13  /dev/sda9   /dev/sdb3   /dev/sdc11  /dev/sdc7   /dev/sdd15
/dev/sda14  /dev/sdb    /dev/sdb4   /dev/sdc12  /dev/sdc8   /dev/sdd2
/dev/sda15  /dev/sdb1   /dev/sdb5   /dev/sdc13  /dev/sdc9   /dev/sdd3
/dev/sda2   /dev/sdb10  /dev/sdb6   /dev/sdc14  /dev/sdd    /dev/sdd4
/dev/sda3   /dev/sdb11  /dev/sdb7   /dev/sdc15  /dev/sdd1   /dev/sdd5

Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: