I created image of raspbian jessie on 32GB memory card using dd command.
sudo dd if=/dev/disk3 of=~/os_images/raspbian_jessie.img bs=1m
then I used etcher tool to flash that image to the 120GB SSD,
I finally managed to boot it without much trouble but if I run df command I do not see correct side of my SSD which is sda1
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 29G 12G 16G 41% /
devtmpfs 458M 0 458M 0% /dev
tmpfs 462M 0 462M 0% /dev/shm
tmpfs 462M 6.7M 456M 2% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 462M 0 462M 0% /sys/fs/cgroup
//192.168.1.1/usb1_1 466G 370G 97G 80% /home/pi/USBHDD
/dev/sda1 63M 22M 42M 34% /boot
tmpfs 93M 0 93M 0% /run/user/1000
but If I run the parted
command :
$ sudo parted /dev/sda print
Model: WDC WDS1 20G2G0A-00JH30 (scsi)
Disk /dev/sda: 120GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 4194kB 70.3MB 66.1MB primary fat16 lba
2 70.3MB 31.3GB 31.2GB primary ext4
to fix this issue I tied sudo rasp-config > advanced option > expand filesystem, I get error message saying sda2 is not on SD card. Don't know how to expand
How should I expand the file system now ?
so I discovered this: https://www.raspberrypi.org/forums/viewtopic.php?t=217686
cp /usr/bin/raspi-config ~
sed -i 's/mmcblk0p/sda/' ~/raspi-config
sed -i 's/mmcblk0/sda/' ~/raspi-config
~/raspi-config
which corrupted the installation