Results 1 to 7 of 7

Thread: partitoning ineffective

  1. #1
    Join Date
    May 2013
    Beans
    4

    partitoning ineffective

    Hi Anybody
    I cannot delete partition from a microsd. Anytime and with any program - gnomedisks, gparted, fdisk, testdisk - I delete the partition table it says everything went ok, but after refreshing everything is there, all lthe data is untuched. I made a clean libreelec install on the card, it got infected with some malware wich made the rpi to attack with ddos some servers - I got a coll from the ISP. I removed the card and tried to clean it with ubuntu and windows too, nothing helped, it keeps reappearing untouched after formatting or repartitioning. Tt's not a big loss for a card, it just makes me crazy not being able to do such a "simple" thing wich came out is not so simple....
    I would be greatful for any idea or opinion
    Last edited by andrasszoke; November 17th, 2022 at 06:32 PM.

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: partitoning ineffective

    Wipe the entire storage device starting from the beginning. I'd use dd, but cp, ddrescue, and many others can be used. Then setup partitions as desired. I'd use 'gparted' if I wanted a GUI. Don't forget to create a new GUID partition table first. Gparted has the 'Apply' button to actually perform the different requested changes.

    Flash media center storage devices do wear out and typically, the first sign of that is they cannot be modified. Soon, even read won't work. I've had some wear out in 1 yr of use. The next time, I specifically bought high endurance flash storage, disabled all local logging and only stream media from other network devices. Since making those changes, it has been 5+ yrs without any issues.

    Some ARM-based media players use a self-sizing installer. This means that effort to specifically setup partitions is a complete waste of time.

    If you can provide some facts, perhaps someone can help? To start:
    Code:
    sudo parted -l
    lsblk -e 7 -o name,size,type,fstype,uuid,mountpoint
    Remove any 'loop' devices. Those aren't real storage.

  3. #3
    Join Date
    May 2008
    Beans
    4,453
    Distro
    Ubuntu 24.04 Noble Numbat

    Re: partitoning ineffective

    Quote Originally Posted by andrasszoke View Post
    I delete the partition table it says everything went ok, but after refreshing everything is there, all lthe data is untuched.
    Did you create a new partition table?

  4. #4
    Join Date
    May 2013
    Beans
    4

    Re: partitoning ineffective

    Hi, I didn't try to set up partitions for libreelec i just copied the image with dd, and also tried to get rid of the infected system with dd /dev/zero with the same results as partitioning programs, after refresh nothing changed. Anyway:

    Code:
    ]sudo parted -l
    
    Típus: MXT-USB Storage Device (scsi)
    /dev/sdb lemez: 7901MB
    Szektorméret (logikai/fizikai): 512B/512B
    Partíciós tábla: msdos
    Lemezjelzők:
    
    
    Szám Kezdet Vég Méret Típus Fájlrendszer Jelzők
    1 4194kB 541MB 537MB primary fat16 boot, lba
    2 541MB 7901MB 7360MB primary ext4
    
    
    lsblk -e 7 -o name,size,type,fstype,uuid,mountpoint
    
    NAME SIZE TYPE FSTYPE UUID MOUNTPOINT
    
    sdb 7,4G disk
    ├─sdb1 512M part vfat 64FD-6F75 /media/szoke/LIBREELEC
    └─sdb2 6,9G part ext4 2e4302bf-e281-4f73-9b54-184939a469b1 /media/szoke/2e4302bf-e281-4f73-9b54-1



    Last edited by andrasszoke; November 18th, 2022 at 01:11 PM.

  5. #5
    Join Date
    May 2013
    Beans
    4

    Re: partitoning ineffective

    Yes, anyway at least I tried, all apps said that it did it, and after refresh all the old same thing...

  6. #6
    Join Date
    May 2008
    Beans
    4,453
    Distro
    Ubuntu 24.04 Noble Numbat

    Re: partitoning ineffective

    This is my SD Card for libreelec:-
    Code:
    edited@edited:~$ sudo parted -l
    [sudo] password for edited: 
    Model: SD SL16G (sd/mmc)
    Disk /dev/mmcblk0: 15.9GB
    Sector size (logical/physical): 512B/512B
    Partition Table: gpt
    Disk Flags: 
    
    Number  Start   End     Size    File system  Name     Flags
     1      4194kB  541MB   537MB   fat16        system   legacy_boot, msftdata
     2      541MB   15.9GB  15.4GB  ext4         storage
    
    edited@edited-22-04:~$
    Use gparted to create a new GPT partition table.
    Any joy?

  7. #7
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: partitoning ineffective

    Quote Originally Posted by andrasszoke View Post
    Yes, anyway at least I tried, all apps said that it did it, and after refresh all the old same thing...
    Please post exact commands and when posting anything from a terminal, please use forum code-tags, so columns line up. Too hard to read otherwise. Just edit the already posted stuff for code-tags, please. That will keep the thread cleaner.

    BTW, would be good if which storage is of interest were clearly pointed out ... or just remove the entire stanzas from the output for the drives that aren't of interest and say that. "Booted from sdh, no issues with it, removed output from it."

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •