Re: [Dorset] Problem Mounting Memory Stick on Raspberry Pi
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
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
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
[Dorset] Problem Mounting Memory Stick on Raspberry Pi
Hi, I've been trying to back up a Pi installation using a tool called image-utils (written by a contributor to the Pi Forums). This tool backs up the running system and writes the image to a specified destination. I've used it many times before but I recently had an issue because my image file was bigger than the 4 GB limit on FAT32. I was advised by the author to format the stick with ext2. This I have done, but can no longer mount the stick on the Pi. Initially I thought that the problem was due to ownership and permissions; formatting creates a partition owned by root. I've now changed ownership and permissions on the stick (labelled Backup) to: drwxrwxrwx 3 terry terry 4096 Nov 28 13:04 Backup using my PC. However, I still get an issue when I plug the stick into the Pi. Having created the directory /media/usb/ on the Pi, I do: pi@minster-music:~ $ ls -l /dev/disk/by-uuid/ total 0 lrwxrwxrwx 1 root root 10 Nov 28 13:05 5183463e-4eee-4e13-99c2-f0871ad6d8b8 -> ../../sda1 lrwxrwxrwx 1 root root 15 Nov 28 11:10 568caafd-bab1-46cb-921b-cd257b61f505 -> ../../mmcblk0p2 lrwxrwxrwx 1 root root 15 Nov 28 11:10 C839-E506 -> ../../mmcblk0p1 then I do: 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. This procedure works if I use a FAT32 Stick. What have I mised? -- 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