W. H. Heydt
Posts: 12785
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

[Solved] CM in WD SATA adapter: Where is the drive?

Sun Mar 27, 2016 1:33 am

Two issues, really.

1. How does one locate the attached drive? Neither lsusb nor df sees it.

Code: Select all

pi@raspberrypi:~ $ df
Filesystem     1K-blocks   Used Available Use% Mounted on
/dev/root        3661568 880560   2606876  26% /
devtmpfs          218416      0    218416   0% /dev
tmpfs             222688      0    222688   0% /dev/shm
tmpfs             222688   4528    218160   3% /run
tmpfs               5120      4      5116   1% /run/lock
tmpfs             222688      0    222688   0% /sys/fs/cgroup
/dev/mmcblk0p1     61384  20368     41016  34% /boot
pi@raspberrypi:~ $ lsusb
Bus 001 Device 006: ID 0557:2213 ATEN International Co., Ltd CS682 2-Port USB 2.0 DVI KVM Switch
Bus 001 Device 005: ID 0409:005a NEC Corp. HighSpeed Hub
Bus 001 Device 004: ID 0b95:772b ASIX Electronics Corp. AX88772B
Bus 001 Device 003: ID 1058:25a7 Western Digital Technologies, Inc.
Bus 001 Device 002: ID 0424:2533 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
pi@raspberrypi:~ $
2. mkfs documentation is...less than crystal clear. Other than specifying "-t ext4" and the drive (once I find out how to locate it), what other parameters are actually needed, and how does one determine the values to use? Or would I be better off not worrying about making a file system on the drive and just using "dd" to copy the root file system from an SD card onto the drive?
Last edited by W. H. Heydt on Mon Mar 28, 2016 2:36 am, edited 1 time in total.

DirkS
Posts: 10371
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: CM in WD SATA adapter: Where is the drive?

Sun Mar 27, 2016 11:06 am

Have you tried

Code: Select all

lsblk
It lists all block devices.

Code: Select all

pi@raspi3b:~$ lsblk
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda           8:0    1 14.9G  0 disk
mmcblk0     179:0    0 14.9G  0 disk
├─mmcblk0p1 179:1    0   60M  0 part /boot
└─mmcblk0p2 179:2    0 14.9G  0 part /

W. H. Heydt
Posts: 12785
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: CM in WD SATA adapter: Where is the drive?

Sun Mar 27, 2016 4:55 pm

DirkS wrote:Have you tried

Code: Select all

lsblk
It lists all block devices.

Code: Select all

pi@raspi3b:~$ lsblk
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda           8:0    1 14.9G  0 disk
mmcblk0     179:0    0 14.9G  0 disk
├─mmcblk0p1 179:1    0   60M  0 part /boot
└─mmcblk0p2 179:2    0 14.9G  0 part /
Thanks a bunch! It stands out there....

Code: Select all

pi@raspberrypi:~ $ lsblk
NAME         MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda            8:0    0 55.9G  0 disk
mmcblk0rpmb  179:96   0  512K  0 disk
mmcblk0boot0 179:32   0    4M  1 disk
mmcblk0boot1 179:64   0    4M  1 disk
mmcblk0      179:0    0  3.7G  0 disk
ââmmcblk0p1  179:1    0   60M  0 part /boot
ââmmcblk0p2  179:2    0  3.6G  0 part /
pi@raspberrypi:~ $
I think I got confused because, when one is flashing the eMMC, the CM looks like /dev/sda and the partitions are /dev.sda1 and /dev/sda2.

Next step...get root onto the SSD...

Return to “Compute Module”