i am unable to format sdc2 and it is giving the error code 1
I believe error code 1 usually appears when the partition is mounted or currently in use.
I suggest first checking all connected drives and their current filesystem:
lsblk -f
This shows:
- All disks and partitions
- Their filesystem type (ntfs, ext4, etc.)
- Whether they are mounted
Then check specifically if sdc2 is mounted:
mount | grep sdc2
If it is mounted, I suggest unmounting it first:
umount /dev/sdc2
After that, you can format it to ext4:
mkfs.ext4 /dev/sdc2
Please note this will erase all data on that partition.
If formatting still fails, I suggest checking system messages:
dmesg | tail -50
If you share the output of lsblk -f, we can better understand the current state of the drive.
but where to do this by cinnectibng to ssh or direcrttly via web
You’ll need to do this over SSH, not from the web UI.
I believe the ZimaOS web interface does not allow low-level formatting commands like mkfs or wipefs, so this must be done from the terminal.
Steps:
- Enable SSH
Settings → Developer → Enable SSH - Connect from another computer:
ssh root@YOUR_ZIMA_IP
Example:
ssh root@192.168.1.4
- Then run the commands:
lsblk -f
umount /dev/sdc2
mkfs.ext4 /dev/sdc2
I suggest posting the output of lsblk -f first before formatting, just to confirm the correct device.
ok thanks i am doing this as it is lets see
all done properly lots of thanks for the in detailed help
