Lordanubis
Posts: 10
Joined: Mon Dec 23, 2013 8:13 pm

mounted usb - can't chgrp?

Sat Mar 12, 2016 8:28 am

- stil strugling with x11vnc, and then it didn't boot anymore.

So a clean new install.
came at the point to setup again a ssd using usb.
did do a format blah
better to show the steps

Code: Select all

sudo mkdir /data
df -h
# f.e /dev/sda1
sudo umount /dev/sda1
# format
sudo mkdosfs -F 32 -I /dev/sda1 -n “PROTON"
# mount
sudo mount /dev/sda1 /data
# also tried -- sudo mount -t vfat -o rw /dev/sda1 /data
# and          -- sudo mount -t vfat -o uid=pi,gid=pi /dev/sda1 /data
# and this also not -- sudo mount  -t vfat -o remount,rw,uid=pi,gid=users /dev/sda1 /data
# set folder group privileges
sudo chgrp -R users /data
result
#fdisk -l
Device Boot Start End Sectors Size Id Type
/dev/sda1 2 1875385003 1875385002 894.3G b W95 FAT32
# strange the last time I got above 930G

# before mount
4 drwxr-xr-x 2 root root 4096 Mar 12 08:25 data
# after mount
32 drwx------ 2 pi pi 32768 Jan 1 1970 data
pi@Atomica:/ $ sudo chgrp -R users /data
chgrp: changing group of ‘/data’: Operation not permitted
pi@Atomica:/ $ sudo chown pi:users /data
chown: changing ownership of ‘/data’: Operation not permitted
pi@Atomica:/ $ sudo chmod -R g+w /data
pi@Atomica:/ $ ls -als
32 drwx------ 2 pi pi 32768 Jan 1 1970 data
those are the same exact steps that I did before, and it did works all the time.
I can mkdir in /data or add data

Then after a few times unmount (umount) and mount AS root with passw,
# i have at least the date right
32 drwx------ 3 pi pi 32768 Mar 12 08:34 data
#but still the chgrp isn't working
pi@Atomica:/ $ sudo chgrp -R users /data
chgrp: changing group of ‘/data/mysql’: Operation not permitted
chgrp: changing group of ‘/data’: Operation not permitted
pi@Atomica:/ $ sudo chown pi:users /data
chown: changing ownership of ‘/data’: Operation not permitted
# mount -l gives
/dev/sda1 on /data type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro) [PROTON]
whats this? 'errors=remount-ro'

So, a little confused, is it possible that I have problems because root has his new passw?
I didn't set this in my previous setup.
Can I set the root password safely back to his original state?

In a previous setup with those steps I did have a working cifs share and a /data partition ( just for playing, so what is going on? ).
any suggestion is welcome.
thank you

texy
Forum Moderator
Forum Moderator
Posts: 5161
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: mounted usb - can't chgrp?

Sun Mar 13, 2016 8:43 pm

Locking as duplicated here :

viewtopic.php?f=29&t=139992
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

Return to “Troubleshooting”