Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a SDcard sitting in a USB card reader...
I have this in /etc/fstab :
/dev/sdc1 /media/claude/SDCARD vfat rw,user,auto,exec,gid=100,uid=1000,umask=002,utf8,codepage=850,shortname=mixed 0 0
so it is mounted in /media/claude/SDCARD...
I have those rights:
drwxrwxr-x 11 claude users 16384 janv. 1 1970 SDCARD
So far, so good...but I can't erase anything ( files/directories ) on this memory...)
When I launch a rm -R * command, everything seems to be erased but , next time I'll plug the Sd card, all the supposedly erased files are still there...which, to be honest, confuse ma a lot ( I'm the owner, I'm root...and I can't erase this memory)
2 quickies
1) what am I missing ?
2) what to be done to completely clean this SD memory
(FYI, I've tried erasing under Seven..lifting the perms, erasing..but same stuff, data still present...
Hi
I'm doing an umount and then unplug...(sync ? dunno what it is...)
of course, The card is not write protected by the lateral slider...
As mentionned above, I can acces SDCARD...I see all the files/directories and throw rm command...it seems to erase the whole thing...
I have the feeling, but dunno if it is true...
I'm not erasing the card...but a copy of it !!!
oh I don't know
did you try using gparted?
just unmount it
delete it the partition
reastablish it in the format you want
then click the arrow bada bing bada boom
dont for get that if you start it off the command line you got a be root.
I've tried Gparted but almost everything is greyed out...
I came to the conclusion that the part id dead...I've tried to write on it...no success, then tried to kind of format it using dd...no success !!!
You may read, but not write which is pretty ennoying ( but hopefully, I've got a spare 32Gb which is working fine)
Anyway, many thks for yr concern and yr support
Cheers
Can't access my partition...
I see it, half full but the Partition menu does not give me any access ( resize,format...).everything greyed, "new" has no action...
Dead !!!
Can't access my partition...
I see it, half full but the Partition menu does not give me any access ( resize,format...).everything greyed, "new" has no action...
Dead !!!
are you running it i user mode? got a be in root to have permissions to play with partitions.
o Tay if that does not work for ya then try this next
Code:
sudo blkid
get the address to your sd /dev/xxx
then
Code:
sudo cfdisk /dev/sdx
where x = whatever it is.
when cfdisk opens up you'll see it then you can delete, create new, and set type, and other things off the command line (terminal). make sure you select write, when you are done, it will then ask for confirmation , type 'yes' so it sticks then quit.
as you see I have three indecators for my SD Card, you need the device not the paritions.
that'd be the first one in this case.
Code:
sudo cfdisk /dev/mmcblk0
Code:
Disk: /dev/mmcblk0
Size: 14.9 GiB, 16012804096 bytes, 31275008 sectors
Label: dos, identifier: 0x07e07223
Device Boot Start End Sectors Size Id Type
>> /dev/mmcblk0p1 2048 15888383 15886336 7.6G 83 Linux
/dev/mmcblk0p2 15888384 31275007 15386624 7.3G 83 Linux
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Partition type: Linux (83) │
│ Filesystem: ext4 │
│Filesystem UUID: 3b4605e3-2dba-40f4-acf6-b13da55d0868 │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
[Bootable] [ Delete ] [ Quit ] [ Type ] [ Help ] [ Write ] [ Dump ]
that is what it looks like in cfdisk
I can delete everything then start over if I like.
using the arrow keys - first select the area partition raw area you want to work with then select what you want to do with it, then enter, type size if it asks you
10.7MB
or
10.3GB
the MB and GB being the most importaint so it knows what you are talking about.
formatting the new partitions may now be required,, I don't know everything
but when I open it up again in Gparted I get that little ! then I just tell it to format it then do it then the ! goes away.
Bad luck...sudo cfdisk /dev/sdc1 gives a fatal error. can't open disk...
Below, screen copy...
Thks anyway
Erreur fatale: Impossible d'ouvrir l'unité de disque
Appuyez sur n'importe quelle touche pour quitter cfdisk
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.