Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Solved! Invalid Partition Table on New Install
Solved! Invalid Partition Table on New Install
I have been trying to install Debian 9.1 on a 64GB USB pen drive on my PC. Downloaded the install image, and burned it to a 4GB pen drive. I then booted from the Debian installer and installed Debian to one partition on the 64GB USB pen drive. When asked if I wanted to update Grub on my hard drive (which has Windows and Ubuntu already installed) to add a boot to Debian option I clicked no, install Grub to the 64GB pen drive. I want to leave my hard drive as it is. The install went without problems, but when I came to boot from the newly installed Debian image, I got the message "invalid partition table". I repeated the process with the same result.
Can anyone help me get my Debian image working?
Can anyone help me get my Debian image working?
Last edited by MikeE on 2017-09-25 13:11, edited 1 time in total.
- GarryRicketson
- Posts: 5644
- Joined: 2015-01-20 22:16
- Location: Durango, Mexico
Re: Invalid Partition Table on New Install
Well, don't you think it would help us answer if you at least showed us
what the partition table is on this ? then maybe some one can see what
is wrong with it.
If you don't know how to do that:
How to see what the partition table is on Debian
1 hit of many : https://www.cyberciti.biz/faq/linux-vie ... sk-parted/
Show us the output of this command:
(# indicates you must be root or use "sudo")
what the partition table is on this ? then maybe some one can see what
is wrong with it.
If you don't know how to do that:
How to see what the partition table is on Debian
1 hit of many : https://www.cyberciti.biz/faq/linux-vie ... sk-parted/
Show us the output of this command:
(# indicates you must be root or use "sudo")
Code: Select all
# fdisk -l
"What we expect you have already Done"
==========
Old Website
======================
For the Birds
==================
What Does a Parrot Know About PTSD?
==========
Old Website
======================
For the Birds
==================
What Does a Parrot Know About PTSD?
Re: Invalid Partition Table on New Install
OK, this is what fdisk -l gives me:
Disk /dev/sdc: 57.3 GiB, 61505273856 bytes, 120127488 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x19a5efee
Device Boot Start End Sectors Size Id Type
/dev/sdc1 2048 86767615 86765568 41.4G 83 Linux
/dev/sdc2 86769662 120125439 33355778 15.9G 5 Extended
/dev/sdc5 86769664 120125439 33355776 15.9G 82 Linux swap / Solaris
Disk /dev/sdc: 57.3 GiB, 61505273856 bytes, 120127488 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x19a5efee
Device Boot Start End Sectors Size Id Type
/dev/sdc1 2048 86767615 86765568 41.4G 83 Linux
/dev/sdc2 86769662 120125439 33355778 15.9G 5 Extended
/dev/sdc5 86769664 120125439 33355776 15.9G 82 Linux swap / Solaris
Re: Invalid Partition Table on New Install
It appears that sdc2 is overlapping sdc5. I don't even know what sdc2 is for. Can I just delete it?
Re: Invalid Partition Table on New Install
I'm using legacy mode boot. That should support an MBR partition table?
Re: Invalid Partition Table on New Install
I would reinstall onto the drive and when the partitioner loads delete all existing partitions and manually create 2 new primary partitions, one for linux and one for swap. You don't need an extended partition at all if the thumb drive is used only for running linux. Or create 3 primary partitions: 15GB for / (bootable), 40GB /home & 2GB swap. (/ and /home formatted at ext4)Device Boot Start End Sectors Size Id Type
/dev/sdc1 2048 86767615 86765568 41.4G 83 Linux
/dev/sdc2 86769662 120125439 33355778 15.9G 5 Extended
/dev/sdc5 86769664 120125439 33355776 15.9G 82 Linux swap / Solaris
-
- Global Moderator
- Posts: 3049
- Joined: 2017-09-17 07:12
- Has thanked: 5 times
- Been thanked: 132 times
Re: Invalid Partition Table on New Install
Some (too many) buggy BIOSes require that the boot device has a partition table with a primary partition which has the "boot" flag activated. So I would try to activate the boot flag on the primay partition sdc1.
Code: Select all
fdisk /dev/sdc
Code: Select all
command : a (toggle boot flag)
partition : 1
command : p (print table)
command : w (write table to disk)
command : q (quit)
Re: Invalid Partition Table on New Install
OK. I manually partitioned the drive - a swap partition of 4GB, the rest as an ext3 bootable partition. I don't get the partition table error now, but the PC won't boot - doesn't do a thing. The file system is readable. What I have done wrong this time?
Disk /dev/sdb: 57.3 GiB, 61505273856 bytes, 120127488 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x19a5efee
Device Boot Start End Sectors Size Id Type
/dev/sdb1 112314368 120125439 7811072 3.7G 82 Linux swap / Solaris
/dev/sdb2 * 2048 112314367 112312320 53.6G 83 Linux
Partition table entries are not in disk order.
Disk /dev/sdb: 57.3 GiB, 61505273856 bytes, 120127488 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x19a5efee
Device Boot Start End Sectors Size Id Type
/dev/sdb1 112314368 120125439 7811072 3.7G 82 Linux swap / Solaris
/dev/sdb2 * 2048 112314367 112312320 53.6G 83 Linux
Partition table entries are not in disk order.
Re: Invalid Partition Table on New Install
Through the Debian installer package. The install routine gave me the option of installing on the hard drive or on the Flash drive. I chose the flash drive. I can see /boot and /boot/grub directories
-
- Global Moderator
- Posts: 3049
- Joined: 2017-09-17 07:12
- Has thanked: 5 times
- Been thanked: 132 times
Re: Invalid Partition Table on New Install
Did you select the MBR of the flash drive and not any partition ?
Yes you can manually install the boot loader. You can do so by starting the installer in rescue mode, launch a shell on the installed system root and run
with /dev/sdX being the flash drive.
Yes you can manually install the boot loader. You can do so by starting the installer in rescue mode, launch a shell on the installed system root and run
Code: Select all
grub-install /dev/sdX
Re: Invalid Partition Table on New Install
Success! At last! I reinstalled Grub from the shell and it booted. Thanks very much all who helped me out.
-
- Global Moderator
- Posts: 3049
- Joined: 2017-09-17 07:12
- Has thanked: 5 times
- Been thanked: 132 times
Re: Solved! Invalid Partition Table on New Install
Good job.
Can you provide the output of the following command ?
It prints the device you asked the Debian installer to install GRUB on.
Can you provide the output of the following command ?
Code: Select all
debconf-show grub-pc 2>/dev/null | grep install_devices