Re: [Dorset] Problem Mounting Memory Stick on Raspberry Pi

2021-11-29 Thread Terry Coles
On Sunday, 28 November 2021 13:30:44 GMT Terry Coles wrote:
> pi@minster-music:~ $ sudo mount /dev/sda1 /media/usb/ -o uid=pi,gid=pi
> mount: /media/usb: wrong fs type, bad option, bad superblock on /dev/sda1,
> missing codepage or helper program, or other error.
> 
> As you can see, the Pi doesn't like this.

Someone on the Raspberry Pi Forums said:

uid= and gid= are not valid mount options for ext2. ext2 (like ext4 which I'd 
use) has full, native support for linux owner, group, and permissions so you 
cannont change them at mount time via mount options.

*  Use the PC to reformat to ext4  (I did ext2)
*  Mount the partition on the PC
*  sudo chmod 777 /path/to/mountpoint

so permissions on it are fully open to all users.  Unmount and unplug it.  
Connect it to the Pi and Mount with:

*sudo mount /dev/sda1 /media/usb/

That worked.  :-)

Thanks to all who offered suggestions.

-- 



Terry Coles



-- 
  Next meeting: Online, Jitsi, Tuesday, 2021-12-07 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


Re: [Dorset] Problem Mounting Memory Stick on Raspberry Pi

2021-11-29 Thread Keith Edmunds
> $ sudo mount /dev/sda1 /media/usb/ -o uid=pi,gid=pi

Tell it the filesystem type (-t ext2) and then check in dmesg to see what
it doesn't like. Maybe your pi doesn't support ext2?
-- 
Great music, chat and even some wit.
Join me every Friday evening at 8pm for
Keith's Music Box:

Follow: https://www.facebook.com/KMBEngland
On Friday go to: https://www.mixcloud.com/live/KeithsMusicBox/

-- 
  Next meeting: Online, Jitsi, Tuesday, 2021-12-07 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


Re: [Dorset] Problem Mounting Memory Stick on Raspberry Pi

2021-11-28 Thread Terry Coles
On Sunday, 28 November 2021 14:53:46 GMT Bob Dunlop wrote:
> Try adding "-t ext2" to override the default mount may be picking up
> from /etc/fstab ?

Actually, I think thayt might have been a red herring.  No ext2 filesysrems are 
defined in fstab:

pi@minster-music:/etc $ cat fstab 
proc/proc   procdefaults  0   0
PARTUUID=c6b26c9a-01  /boot   vfatdefaults  0   2
PARTUUID=c6b26c9a-02  /   ext4defaults,noatime  0   1
# a swapfile is not a swap partition, no line here
#   use  dphys-swapfile swap[on|off]  for that

-- 



Terry Coles



-- 
  Next meeting: Online, Jitsi, Tuesday, 2021-12-07 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


Re: [Dorset] Problem Mounting Memory Stick on Raspberry Pi

2021-11-28 Thread Terry Coles
On Sunday, 28 November 2021 14:53:46 GMT Bob Dunlop wrote:
> Try adding "-t ext2" to override the default mount may be picking up
> from /etc/fstab ?

Well according to the man page that should do something legal:

sudo mount -t ext2 /dev/sda1 /media/usb/ -o uid=pi,gid=pi

but I get the same result.  I get the same if I put the switch after the mount 
point and I get 'bad usage if I write:

sudo mount /dev/sda1 /media/usb/ -o,-t ext2,uid=pi,gid=pi

-- 



Terry Coles



-- 
  Next meeting: Online, Jitsi, Tuesday, 2021-12-07 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


Re: [Dorset] Problem Mounting Memory Stick on Raspberry Pi

2021-11-28 Thread Andrew

On 28/11/2021 13:30, Terry Coles wrote:

pi@minster-music:~ $ sudo mount/dev/sda1 /media/usb/  -o uid=pi,gid=pi


Is it because the uid and gid options don't apply to EXT2?

--

Andrew.


--
 Next meeting: Online, Jitsi, Tuesday, 2021-12-07 20:00
 Check to whom you are replying
 Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
 New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk