permission denied. SSD. Raspberry. Owner change
I have installed an SSD drive in my new Raspberry pi 4 (Argon ONE m.2 box).
I have done it following this instructions: https://thepihut.com/blogs/raspberry...e-raspberry-pi Everything went fine. But now, I can see the directory of the SSD, but cannot write in it. I don't have permissions. I use "pi" user. Write button click on the folder says that only owner has permission for changing content.... How can I change this permissions? Thanks in advance |
Quote:
Code:
zeus@bullseye-raspi:~$ ls -l /home/ Now when I first did my cloning to the SSD I used a tool in the Desktop menu I forget the exact name but it was something about a clone install tool. Look around for that and let it try to do it, it makes exact copy of the files on your card to the SSD and allows it to boot with everything correct. If you cannot get that tool working properly I can give you commands that will duplicate your install without problems it is a simple process that I do on every major upgrade to backup to spare SSD that is used to upgrade the system so I always have working backup copy ready to go in an instant. |
It looks like the posted guide is a bit wrong. Your changing the permissions of the directory on the / partition and not the filesystem on the SSD.
Mount the filesystem sudo mount /dev/sda1 /home/pi/myssd sudo chown pi:pi /home/pi/myssd At the moment I do not see the need to make the drive world writable. |
Quote:
|
You need to create the directory first.
mkdir /home/pi/GureSSD Use the same directory name that you used previously. |
Thanks michaelk for your answers.
Y have done the mkdir command, and now I can see to folders in the file browser with that name. One a simple folder and the other the SSD. Ad I am still not able to write in this. Could be the problem this? If I right click on the SSD folder in the file browser, and select properties, I can see what follows: file: niressd Name: GureSSD And of course I can't change the name... |
Here is how to do it guaranteed. Boot with the sdcard in the Pi then the following commands use sudo in front of them if you have not enabled the root user. From my notes on installing buster on my SSD copied from the sdcard onto it. These will work with any version of OS except the Windows as I have never tried that build.
Code:
root@rpi4-20201112:/home/seeder1# mkdir /tmp/ssdboot Code:
root@rpi4-20201112:/home/seeder1# blkid Code:
root@rpi4-20201112:/home/seeder1# mount /dev/sda1 /tmp/ssdboot Code:
root@rpi4-20201112:/home/seeder1# nano /tmp/ssdroot/etc/fstab Code:
root@rpi4-20201112:/home/seeder1# nano /tmp/ssdboot/cmdline.txt Code:
root@rpi4-20201112:/home/seeder1# e2label /dev/sda2 RASPIROOT Code:
root@bullseye-raspi:~# cat /etc/fstab Code:
|
Quote:
pi@raspberrypi:~ $ sudo mkdir /tmp/ssdboot pi@raspberrypi:~ $ sudo blkid /dev/mmcblk0p1: LABEL_FATBOOT="RECOVERY" LABEL="RECOVERY" UUID="A33E-4900" TYPE="vfat" PARTUUID="55965abb-01" /dev/mmcblk0p5: LABEL="SETTINGS" UUID="6158a049-809c-4b89-94cf-9cccd85b0e0a" TYPE="ext4" PARTUUID="55965abb-05" /dev/mmcblk0p6: LABEL_FATBOOT="boot" LABEL="boot" UUID="0190-7BE3" TYPE="vfat" PARTUUID="55965abb-06" /dev/mmcblk0p7: LABEL="root" UUID="981a515c-f7f6-477d-8380-0125de991be0" TYPE="ext4" PARTUUID="55965abb-07" /dev/sda1: LABEL="GureSSD" UUID="68533988-ef38-4dbb-8a43-b71b878ffdbc" TYPE="ext4" PARTUUID="589fa70c-01" /dev/sdb1: UUID="7333-09C1" TYPE="vfat" /dev/mmcblk0: PTUUID="55965abb" PTTYPE="dos" pi@raspberrypi:~ $ mount /dev/sda1 /tmp/ssdboot mount: only root can do that pi@raspberrypi:~ $ |
Quote:
sudo mount /dev/sda1 /tmp/ssdboot |
Quote:
Code:
zeus@bullseye-raspi:~$ mount | grep /dev |
From the link the OP posted I assume they want to use the USB drive for data and not necessarily as a boot device although that isn't a bad idea.
Lets just take one step at a time. |
Hello, and thanks again for your help
The USB is only for storage. I have ejected. I only want to use SSD as storage. If you recommend me to copy the SD there, I accept your recommendation. The structure of the SD is the original one, I have not done any modification. Here you have the output of the command: pi@raspberrypi:~ $ mount | grep /dev /dev/mmcblk0p7 on / type ext4 (rw,noatime) devtmpfs on /dev type devtmpfs (rw,relatime,size=3879284k,nr_inodes=74939,mode=755) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices) mqueue on /dev/mqueue type mqueue (rw,relatime) /dev/sda1 on /home/pi/niressd type ext4 (rw,nosuid,nodev,noexec,relatime,stripe=8191) /dev/mmcblk0p6 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro) |
Quote:
|
Thanks! That was all! It worked!
Should I copy SD to SSD, and boot from there? |
All times are GMT -5. The time now is 08:35 AM. |