I tried to delete a Linux partition on my hard drive. My hard drive was no longer bootable and the type turned into FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF. I tried to follow some of the other instructions on here to resolve the issue but have not had any success. Running diskutil list returns the following:    Would really appericiate any help. Thanks in advance.   EDIT   I performed gpt -r show /dev/disk0  And got the following:    And dd if=/dev/disk0s2 count=3 | vis -c  Returned     EDIT 2  After running diskutil verifyDisk disk0  I got the following errrors
20104
Yesterday, I have tried to delete an Ubuntu partition. Since, my Mac (13", MBPro mid-2014) doesn't boot. Now, I boot on Mac OS copy with an USB. i follow different subject of this forum (like this : ), and my volume partition change from FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF to 48465300-0000-11AA-AA11-00306543ECAC. But I still can't boot to it...    Thank you very much !
103601
I have been unable to format/delete the partitions on my Sandisk Cruzer Force 32 GB USB Drive. I get the following error when deleting any of the partitions on it.  `Error deleting partition /dev/sdd2: Command-line `parted --script "/dev/sdd" "rm 2"' exited with non-zero exit status 1: Warning: The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes. (udisks-error-quark, 0)   Is there any way I can completely format all of my drive and turn it into one large partition? I haven't found a solution to this particular error here yet, so I thought I'd actually ASK for once
38463
Has anyone had success recovering deleted files from an ext4 partition? I've tried various utilities, but none have worked yet. I'd be grateful if someone can share a success story!
73657
After I used dd to make a USB drive from an Ubuntu ISO, I am unable to format it for normal use. I ran: sudo dd if=&quot;ubuntu-16.04-desktop-amd64.iso&quot; of=&quot;/dev/sdb&quot; bs=4M  In order to create a bootable USB drive. However, after I was done with it, I wanted to format it as FAT32 and use it like a normal USB drive. No problem, should be easy, right? WRONG. I have tried:  Using the included Disks application to format it. It threw an error about corrupt GPT tables and wouldn't give me an override option. Using Gparted the erase the current partition table and write a new MBR table [completed successfully] After that I created a FAT32 partition spanning the entire volume, and remounted. [Showed up in Files, good so far] Attempted to copy a file to it. It thre an error saying the medium was read-only. Erased the partition table again in Gparted and this time created an NTFS partition spanning the entire disk. [Same RO error when attempting to copy a file onto it] Repeated the procedure trying this time with EXT4 [Same RO error] Repeated procedure trying a GTP table instead of an MBR table. {Same error]  Finally, I tried running: sudo hdparm -r0 /dev/sdb  And remounted. Still the same error. Keep in mind that I remounted it after formatting it each time. I am at a total loss. Has dd bricked my USB drive?
29969
When I'm using the command "df -h" I'm having the following output :   Filesystem                 Size   Used  Avail Use% Mounted on /dev/mapper/fedora-root    20G    9,4G  8,8G  52% / devtmpfs                  1,9G       0  1,9G   0% /dev tmpfs                     1,9G    1,2M  1,9G   1% /dev/shm tmpfs                     1,9G    1,0M  1,9G   1% /run tmpfs                     1,9G       0  1,9G   0% /sys/fs/cgroup tmpfs                     1,9G    108K  1,9G   1% /tmp /dev/sda1                 477M    129M  319M  29% /boot /dev/mapper/fedora-home   916G    279G  591G  33% /home   Or it says my root is of 20G with 9.4 used and 8.8 still available it's 2G that disappeared. I know a very similar question as been answered here  and I'm just wondering if the reason could be the same here since I'm using LVM.  If not is there any way to reclaim that space that disappeared because for home there is an amazing 46G that disappeared.
6268
A few days ago I realized my Ubuntu machine wouldn't load after login. After some digging around on a liveCD I realized my HDD was at 100% capacity, so I deleted some large files and was able to log in. I didn't have sudo permissions any more and had to boot into recovery mode and change the sodoers file, but eventually recovered root permissions.   I then noticed my machine was a little sluggish, and top was showing cupsd using 100% CPU. I've never seen this program before but I soon realized it was a legitimate program.   I the deleted about 40GB worth of videos, only to see my drive space deplete almost instantly in front of my eyes. With a little research and intuition, I realized it might be a a log file being blown up, and sure enough ls -lh /var/log/cups/ shown me an error_log file that was 80GB+ large.   I deleted the file sudo rm -rf /var/log/cups/error_log, killed the service with sudo service cups end, and went on my business. I realized after that it would have been a good idea to check out the contents of error_log before I deleted it, but I wanted to get rid of the thing before I was locked out again.  That was yesterday. Today, I started my laptop again and saw cupsd running again at 100% cpu, and sure enough I see my disk space depleting. I stopped the service and run tail -f /var/log/cups/error_log, and there are millions of lines of this:  W [15/Jul/2015:11:23:03 -0700] Notifier for subscription 911 (dbus://) went away, retrying! E [15/Jul/2015:11:23:03 -0700] File "/usr/lib/cups/notifier/dbus" has insecure permissions (0100777/uid=0/gid=0).   ==EDIT=================================================================  ls -l /usr/lib/cups/notifier/dbus shows permissions and ownership as -rwxrwxrwx 1 root root when they should be -rwxr-xr-x 1 daemon root, as described in the comments. sudo chown root:root /usr/lib/cups/notifier/dbus also did not fix the ownership problems.   Finally I removed and reinstalled cups, but to no avail. These links were given as potentially helpful guides,(,) but they ultimately result in suggesting a reinstall of the OS itself.
25152
I have an NTFS formatted USB Hard drive that has my personal files backup. Today I mounted the drive to an Oracle Linux system and copied a regular file using the below command (please see below commands). By mistake I used the device file /dev/sdb1 during copy.  mount -t ntfs-3g /dev/sdb1 /sample cp file1 /dev/sdb1   After this I unmounted the drive and connected to Windows system. Now Windows system complains that the drive need to be formatted and/or corrupted.  My question is: can we recover this drive without losing any personal data? How can I view the files available on this drive? Just mounting back to Linux system will show the files?
107472
I had windows &amp; Kali linux (dual boot) then I took off Kali linux Parition so I delete it but I Made a mistake ... and PC won't boot "Rescue grub error" or something ...   but I installed Ubuntu &amp; removed Windows and all .  All is running fine but I just can't open one of my disks , this is the error :   Error mounting /dev/sdb5 at /media/imad/Disque local: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sdb5" "/media/imad/Disque local"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/sdb5': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option.   I asked this question before but no one had an idea , help please .
83381
I searched the Internet for instructions on how to remove , but the only thing I could find was using a Windows DVD to "repair" the system. I previously had a Windows/Linux doal-boot and removed Windows ( + ), but GRUB is still installed with only one entry: the Linux one.  How can I uninstall GRUB and directly boot on a -based OS?
88395
Is there a command that will list all partitions along with their labels? sudo fdisk -l and sudo parted -l don't show labels by default.  EDIT: (as per comment below) I'm talking about ext2 labels - those that you can set in gparted upon partitioning.  EDIT2: The intent is to list unmounted partitions (so I know which one to mount).
105327
I have one hard drive. It's partitioned into 4 partitions, one of them is encrypted by Windows 7 Bitlocker, then I used Acronis Disk Director to merge both partitions during the process PC power off now the encrypted partition and when I try to enter the partition I have a message to format it, the other partition seems to contain 20 MB but when I open it I found nothing.  all data in this partition is so important to me , so please if anyone can help me recover my data I will be thankful
74265
This is what happened:  I was running 12.04.1 and wanted to install 12.10. upgrade, but a fresh install.  When setting up my computer I anticipated for this by dividing my 640GB HD in following partitions: 1. 60 GB for Ubuntu, boot 2. 576 GB for data, mountpoint /home 3. swap, 4GB  The idea was to manually select the correct partition in the installer but I got distracted for a moment and selected the wrong option.  Result: The installer started repartitioning the entire HD.  When I noticed this I interrupted the installer, but upon reboot it was clear that I was too late, no OS to boot to.  I booted from a Gparted Live CD to see if I could recover the data on my previous /home-partition, but it's gone.  Is there any way to recover the lost data? I searched around and read alot about Testdisk, but in all the tutorials I've seen, the set-up has been much easier than what I'm facing.  I've not only lost my partition table, it's been replaced.  Thanks in advance for any ideas that might help!  If extra info is needed, please specify and I will do my best to provide.
79900
I've tried to deal with this for days now with no luck. In this forum and also in other ones I can see a lot of discussion about this but none of the solutions have worked for me.  My current situation is that I've got some GBs "missing" that I can't free or find anywhere. I guess this is some kind of problem like memory leaks that only get fixed when rebooting, but I just would like to ask if someone has a better idea because there are currently a few customers on that server.  Here are some of the commands I've seen in other threads and my particular outputs:  df -h  Filesystem            Size  Used Avail Use% Mounted on /dev/sda1              19G   16G  1.8G  90% / tmpfs                 384M     0  384M   0% /lib/init/rw udev                   10M  1.2M  8.9M  12% /dev tmpfs                 384M     0  384M   0% /dev/shm   du -Pshx /* 2>/dev/null  4.8M    /bin 27M /boot 0   /cdrom 1.2M    /dev 8.8M    /emul 504M    /etc 4.0K    /grubconf 88K /home 60K /images 0   /initrd.img 147M    /lib 0   /lib32 0   /lib64 16K /lost+found 12K /media 4.0K    /mnt 4.4M    /opt 777M    /proc 57M /root 4.7M    /sbin 4.0K    /selinux 4.0K    /srv 0   /sys 4.0K    /tmp 332M    /usr 471M    /var 0   /vmlinuz   lsof +L1  (no output)   lsof | grep -i delete  (no output)   find / -size +50000 -exec ls -lah {} +;  -r-------- 1 root    root 777M 2015-07-21 06:19 /proc/kcore -rw------- 1 root    root  64M 2015-07-09 03:31 /sys/devices/pci0000:00/0000:00:06.0/0000:01:04.0/resource0 -rw-r----- 1 root    adm   49M 2015-07-21 06:19 /var/log/auth.log -rw-r----- 1 root    adm  174M 2015-07-19 06:25 /var/log/auth.log.1 -rw-rw---- 1 control mail 100M 2015-07-21 06:00 /var/mail/control   If you make the maths from du, for example, you get a few GBs, but nothing close to 16GB.  / is ext3.  OS is Debian 6.0  is there anything am I missing here?
66853
In windows disk mgr I can see this. I have no option to shrink/expand any of the partitions.   Tried to delelete everything by DISKPART, but that's also not working:  DISKPART&gt; list disk    Disk ###  Status         Size     Free     Dyn  Gpt   --------  -------------  -------  -------  ---  ---   Disk 0    Online          111 GB  1024 KB   Disk 1    Online         7535 MB      0 B  DISKPART&gt; SELECT DISK 1  The disk you specified is not valid.  There is no disk selected.  DISKPART&gt;   How can I recover my sd card?
6600
When I was installing Mint Debian edition unlike the classic edition, the installation automatically formated my home partition when I did not specify to format.  So the formatting previously was ext4 as is now. I believe the data is still there as it was a quick format.   I have now booted the computer up on a live USB to prevent writing on it.  Ran testDisk. Is there anyway to recover to a previous superblock so i can recover my data?
31181
The first 7GB of a 500GB NTFS partiton was accidentally overwritten with another file. Is it possible to recover some of the data in the remaining 493 GB of the NTFS volume? The partition table is intact. The executed command was:  dd if=file of=/dev/sdc1   Thanks  Edit: My question is different. I overwrite first 7GB of NTFS partition. Other question mostly deals with hardware failures or bad sectors.
42064
I have a dell laptop that recently "died" (It would get the blue screen of death upon starting) and the hard drive would make a weird cyclic clicking noises.  I wanted to see if I could use some tools on my linux machine to recover the data, so I plugged it into there.  If I run "fdisk" I get:  Disk /dev/sdb: 20.0 GB, 20003880960 bytes 64 heads, 32 sectors/track, 19077 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Disk identifier: 0x64651a0a  Disk /dev/sdb doesn't contain a valid partition table   Fine, the partition table is messed up.  However if I run "testdisk" in attempt to fix the table, it freezes at this point, making the same cyclical clicking noises:  Disk /dev/sdb - 20 GB / 18 GiB - CHS 19078 64 32 Analyse cylinder   158/19077: 00%   I don't really care about the hard drive working again, and just the data, so I ran "gpart" to figure out where the partitions used to be.  I got this:  dev(/dev/sdb) mss(512) chs(19077/64/32)(LBA) #s(39069696) size(19077mb)  * Warning: strange partition table magic 0x2A55. Primary partition(1)    type: 222(0xDE)(UNKNOWN)    size: 15mb #s(31429) s(63-31491)    chs:  (0/1/1)-(3/126/63)d (0/1/32)-(15/24/4)r    hex:  00 01 01 00 DE 7E 3F 03 3F 00 00 00 C5 7A 00 00  Primary partition(2)    type: 007(0x07)(OS/2 HPFS, NTFS, QNX or Advanced UNIX) (BOOT)    size: 19021mb #s(38956987) s(31492-38988478)    chs:  (4/0/1)-(895/126/63)d (15/24/5)-(19037/21/31)r    hex:  80 00 01 04 07 7E FF 7F 04 7B 00 00 BB 6F 52 02   So I tried to mount just to the old NTFS partition, but got an error:  sudo mount -o loop,ro,offset=16123904 -t ntfs /dev/sdb /mnt/usb NTFS signature is missing.   Ugh.  Okay.  But then I tried to get a raw data dump by running  dd if=/dev/sdb of=/home/erik/brokenhd skip=31492 count=38956987    But the file got up to 59885568 bytes, and made the same cyclical clicking noises.  Obviously there is a bad sector, but I don't know what to do about it!  The data is still there... if I view that 57MB file in textpad... I can see raw data from files.  How can I get my data back?  Thanks for any suggestions,  Solution:  I was able to recover about 90% of my data:   Froze harddrive in freezer Used Ddrescue to make a copy of the drive Since Ddrescue wasn't able to get enough of my drive to use testdisk to recover my partitions/file system, I ended up using photorec to recover most of my files