Using sfdisk to fix partition table problems
location: ubuntuforums.com - date: June 20, 2009
This is not a tutorial for beginners. Using sfdisk incorrectly can make a computer unbootable, or your data inaccessible. Please be careful.
Occasionally people end up with a partition table where a primary partition is located inside of an extended partition. At least from GParted's point of view, this is a heinous error which makes the entire partition table invalid. If you try to run GParted on this drive, it will simply show the entire drive as unallocated space. (See attached image, below.)
This can be quite worrisome if you know you have data on the drive, and just can't access it. It can also cause boot and installation problems.
Often people don't realize there is a problem with their partition table because Windows may seem to deal with it just fine. (In fact, the problem is most likely caused by a maverick Windows partition editor which allowed the user to write a partition table which did not conform to specifications).
Below I describe how sfdisk can be
Unable to mount SD card to fix partition table
location: linuxquestions.com - date: December 2, 2010
I have a 4gb SDHC card that has been partitioned with an ext2, linux swap, and fat 32 partition that I use in an Android phone. After I partitioned it this way, which I have done more than once with no problems, it quit mounting or being recognized by Android, Linux, or Windows.
Windows can tell there is something there but can't mount it, Debian and Android just say it's not there. I need to try to fix the partition table which gparted told me was corrupt the last time gparted could see it.
[SOLVED] How to fix partition table?
location: linuxquestions.com - date: August 4, 2012
I've a old Maxtor disk 20 GB.
Maxtor utility says the disk is fine (advanced test ok).
I can safely install any distro on the disk, but after the "grub" phase and reboot, the system is unbootable.
This happens even if I install Windows XP, too.
Fix partition table to remark partition as BTRFS?
location: ubuntuforums.com - date: July 29, 2011
In my efforts to resize my BTRFS Partition, I accidentally unmarked my BTRFS partition as being BTRFS, and can't mark it back as I can't find the numeric ID for BTRFS and how to apply.
Linux, usbstorage... how to mount them and see their partition table
location: linuxquestions.com - date: March 9, 2004
i have to make a software to mount/unmount USB disks. In particular, i found this file /proc/scsi/usb-storage* that tells me when the device is attached and when it isn't, but, it doesn't tell me the name of the relative device file in /dev
So, now my problems are:
1) Find out the name of the device-file in /dev for every file in /proc/scsi/usb-storage*
2) Find out how many partitions the disk keeps (because an usb disk might have different partitions)
3) For every partition know the device-file in /dev, the size on the disk and the file-system it uses
RH Linux 9.0 installation step "Auto partitioning" not able to read partition table
location: linuxquestions.com - date: May 16, 2005
I'm attempting to install Red Hat Linux 9.0 on a P1 (pentium 1) machine(which is already running with Win 98) to make the m/c as dual OS bootable.
The m/c has single hard disk with two partitions: C (1.8 GB, Active, DOS, FAT32) and D(2.2GB, FAT32, DOS Extended partition).
I want to install Linux on "D" drive while keeping Windows(and C drive) untouched.
Following are the steps of installation:
1. Chosen Text mode
2. Selection of Language, mouse, keyboard.
3. Selection of Personal Desktop installtion type.
4. Auto Partitioning
At this moment(i.e. clicking "Auto Partitioning) following error is received:
"The partition table on device hda was unreadable. To create new partitions it must be initialized, causing the loss of ALL DATA on this drive. WOuld you like to initialize this drive, erasing ALL DATA?"
The same error is received even when "Manual Partitioning" is chosen at step 4 above. The same error also come when installing
Partition Table Design for Multi Boot Linux Distro, using Grub bootloader
location: ubuntuforums.com - date: October 25, 2009
##Updated on 22 May 2010 for Win XP behavior
Partition Table Design/Scheme/Planning for Multi Boot Many/Multiple Linux Distro, Windows OS, or Mac, using Grub bootloader[GRUB 0.97 Legacy]
check your existing partition table:
$ sudo fdisk -l
This is my partition table design on paper![the spaces are not shown, sorry]
Name,FileSys,MountPoint,Size, Linux form, Grub form
Winxp NTFS na 200MB /dev/sda1 (hd0,0)
Ubuntu ext3 / 15GB /dev/sda2 (hd0,1)
LinuxMint ext3 / 10GB /dev/sda3 (hd0,2)
Extended ext3 na /dev/sda4 (hd0,3)
## All the partitions above are primary partitions.
## All the partitions below are logical partitions.
Bootloader1 ext3 na 200MB /dev/sda5 (hd0,4)
Backup ext3 na 200MB /dev/sda6 (hd0,5)
Winxp ntfs na 10GB /dev/sda7 (hd0,6)
MacOSX hfsplus na 10GB /dev/sda8 (hd0,7)
DistroY ext3 / 10GB /dev/sda9 (hd0,8)
Data1 ext3 na 15GB /dev/sda10 (hd0,9)
A way to fix 'Invalid partition table'
location: ubuntuforums.com - date: October 1, 2010
I have had a problem whilst trying to rewrite the MBR on a NTFS-only harddisk which has one partition.
I'm wondering if I can do anything to fix the problem from my ubuntu CD which gives me access to a shell - using the trial/demo mode.
The problem is that I can't boot into WinXP since using the XP boot cd to go into recovery mode and typing in 'fixmbr \Device\Harddisk0\Partition1'.
All I get is the message
"Press any key to boot from CD ..."
"Invalid partition table."
I tried to mount as ntfs but I get :
"NTFS signature missing"
Failed to mount '/dev/sda': Invalid argument. The device '/dev/sda' doesn't seem to have a valid NTFS.
Thought perhaps there may be a way to restore the missing signature or something, from ubuntu. Anyone have any ideas?
trying to fix a bad partition table
location: linuxquestions.com - date: November 21, 2004
I had noticed a while ago that there was something screwy with my partition table. but my computer was still booting fine. i finally got around to trying to fix it last night. i was just trying out different tools (gpart, testdisk, etc) but i did not think i had commited any changes. at any rate i wake up thismorning, turn on the computer, bios comes up, then i get nothing but a blinking cursor (text cursor, not mouse cursor).
time for the knoppix cd,
in knoppix, i run testdisk and get
[SOLVED] How to fix "GPT Partition Table is invalid"?
location: linuxquestions.com - date: August 7, 2012
Suddenly, I found out that; my GPT Partition Table is invalid.
I don't exactly know why it happened at this time.
I can boot into first 4 partitions, but not the ones after that (5,6,7)
Page: 1 2 3 4 5 6 7 8 9 10