×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

Stellarmate on SSD - easier than I expected

  • Posts: 992
  • Thank you received: 155
Rishi, I followed your instructions but had a problem in that I was unable to copy the Pictures folder as you instructed. It would not copy. I then just created a new Pictures folder in /media/stellarmate/rootfs/home/stellarmate/ and then continued with the best of your instructions which seemed to work… howler, when I SMB into the Stellarmate as a guest, it still points to the empty folder within /home/stellarmate.
2 years 9 months ago #72578

Please Log in or Create an account to join the conversation.

  • Posts: 245
  • Thank you received: 56
I forgot I did change the permissions. I did it by changing the owner to stellarmate:
sudo chown -R stellarmate:stellarmate Pictures but your method works fine too.

How do you make the SMB connection? We will need to change the folder it points too.
2 years 9 months ago #72596

Please Log in or Create an account to join the conversation.

  • Posts: 245
  • Thank you received: 56
I forgot I did change the permissions. I did it by changing the owner to stellarmate:
sudo chown -R stellarmate:stellarmate Pictures but your method works fine too.

I will look into the SMB connection and let you know.
Last edit: 2 years 9 months ago by Rishi Garrod.
2 years 9 months ago #72597

Please Log in or Create an account to join the conversation.

  • Posts: 245
  • Thank you received: 56
It's taking a little longer than I expected. There is a samba config file, /etc/samba/smb.conf, at the end you see a section [Pictures] which has the path. I changed it to the new path, restarted samba but the Mac refuses to see it. I can change to any sub folder in the "home" folder but not the new Pictures folder on the new partition.

I am not a real Linux expert myself but this has to be something simple. I will let you know when I have worked it out.
The following user(s) said Thank You: Peter Kennett
Last edit: 2 years 9 months ago by Rishi Garrod.
2 years 9 months ago #72599

Please Log in or Create an account to join the conversation.

  • Posts: 910
  • Thank you received: 86
Hi Peter,
In your original post you said it was easier than expected and then problems started.
I tried it a couple of times with some random USB sticks and it just worked.
Tomorrow I am actually getting a dedicated 120Gb M.2 SSD module to run Stellarmate.

What you need to do:
If you have a backup of your working Stellarmate SD card (I am on Windows - I use Win32 Disk Imager to backup/restore). Burn it to the SSD.
If you don't have a backup but do have a good working Stellarmate SD card :
Connect SSD to USB while having your SD in its usual place. Boot.
In Raspbian environment - run SD Card Copier and copy your SD to SSD.
Shut down. Remove SD. Boot.
It should boot from SSD and be exactly the same as with the SD but faster.

HTH
-- Max S
ZWO AM5. RST-135. AZ-GTI. HEQ5. iOptron SkyTracker.
TPO RC6. FRA400. Rokinon 135 and other lenses.
ZWO ASI2600MC. D5500 modified with UVIR clip-in filter.
ZWO ASI120MM Mini x 2. ZWO 30F4 guider. Orion 50mm guider.
ZWO EAF x 2.
Last edit: 2 years 9 months ago by maxthebuilder.
2 years 9 months ago #72604

Please Log in or Create an account to join the conversation.

  • Posts: 245
  • Thank you received: 56
Not really sure what was giving me a problem changing the SMB share. I think it was a permissions issue.

Anyway changing the "Pictures" share (SMB) is very simple.

In the folder /etc/samba you will find a file called smb.conf. We need to edit this.

sudo nano /etc/samba/smb.conf

Scroll down to the end of the file and your will find a section called [Pictures]
modify it to contain your new path: path = /media/stellarmate/data/Pictures

^X Y to save the file

Now we need to restart samba:
sudo smbcontrol smbd reload-config

Now you should be able to view the Pictures folder on your Mac or PC.

 
2 years 9 months ago #72613

Please Log in or Create an account to join the conversation.

  • Posts: 245
  • Thank you received: 56
For me the whole point of the extra partition was to make a backup of the Stellarmate image easy when its on the SSD. I went looking for a backup solution and found rpi-clone. A great script which copies partitions and creates bootable images.
To get rpi-clone:
$ git clone github.com/billw2/rpi-clone.git
$ cd rpi-clone
$ sudo cp rpi-clone rpi-clone-setup /usr/local/sbin
$ cd rpi-clone
$ sudo cp rpi-clone rpi-clone-setup /usr/local/sbin

I make the backup to a SD card. I am only going to backup the first 2 partitions, boot and root.
I used:
sudo rpi-clone -f2 /dev/mmcblk0
 
This enabled me to make a bootable clone to a 32GB SD card. More importantly I can clone this back onto a SSD in case of failure. I always copy my imaging data from Pictures at the end of each session so it doesn't require backing up.

 
Last edit: 2 years 9 months ago by Rishi Garrod.
2 years 9 months ago #72618
Attachments:

Please Log in or Create an account to join the conversation.

Time to create page: 0.761 seconds