Code: Select all
dd if=debian.iso of=/dev/flash_disk
Code: Select all
dd if=debian.iso of=/dev/flash_disk
OK...did the dd command and rebooted to the flash drive. Now I get a grub prompt, which I don't think is what I want. True?phenest wrote:A common mistake is to copy the ISO to a partition. It should be copied to the root of the flash disc, i.e. /dev/sdb and not /dev/sdb1.Code: Select all
dd if=debian.iso of=/dev/flash_disk
ESP does not have to be first partition. Mine is /dev/sda2.phenest wrote:That's correct. I believe the ESP must always be the first partition on a hard drive.mzimmers wrote:[*]I believe the partition on my Windows disk to use is the first one: /dev/sda1, (SYSTEM), 105MB, EFI. Correct?
Your ESP is actually /dev/sda1 on the Windows disk.Code: Select all
mount /dev/sdb1 /boot/efi apt-get install --reinstall grub-efi grub-install /dev/sdb update-grub exit
So, I looked:mount: /dev/sr0 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/sr0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
Code: Select all
mzimmers@debian:~$ dmesg | tail
[ 2304.226170] UDF-fs: warning (device sr0): udf_fill_super: No partition found (1)
[ 2304.242089] sr 2:0:0:0: [sr0]
[ 2304.242091] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 2304.242092] sr 2:0:0:0: [sr0]
[ 2304.242093] Sense Key : Illegal Request [current]
[ 2304.242095] sr 2:0:0:0: [sr0]
[ 2304.242096] Add. Sense: Logical block address out of range
[ 2304.242097] sr 2:0:0:0: [sr0] CDB:
[ 2304.242098] Read(10): 28 00 00 00 00 10 00 00 01 00
[ 2304.242117] isofs_fill_super: bread failed, dev=sr0, iso_blknum=16, block=16
Code: Select all
mzimmers@debian:~$ cat /proc/sys/dev/cdrom/info
CD-ROM information, Id: cdrom.c 3.20 2003/12/17
drive name: sr0
drive speed: 24
drive # of slots: 1
Can close tray: 0
Can open tray: 1
Can lock tray: 1
Can change speed: 1
Can select disk: 0
Can read multisession: 1
Can read MCN: 1
Reports media changed: 1
Can play audio: 1
Can write CD-R: 1
Can write CD-RW: 1
Can read DVD: 1
Can write DVD-R: 1
Can write DVD-RAM: 1
Can read MRW: 0
Can write MRW: 0
Can write RAM: 1
Because the OP has a 2nd drive that is GPT, there is no need to convert anything.sunrat wrote:I'm not familiar with converting MBR boot to UEFI so will leave that advice to others. I've only installed Debian in full MBR (on my old system) or full UEFI with GPT partitions on my new system. Both multi-boot fine with Windows.
I stand corrected.sunrat wrote:Just a couple of minor points:ESP does not have to be first partition. Mine is /dev/sda2.phenest wrote:That's correct. I believe the ESP must always be the first partition on a hard drive.mzimmers wrote:[*]I believe the partition on my Windows disk to use is the first one: /dev/sda1, (SYSTEM), 105MB, EFI. Correct?
I'm guessing that once the OP has booted the DVD into rescue mode, the Debian disc will be sda and the Windows disc will be sdb.sunrat wrote:Your ESP is actually /dev/sda1 on the Windows disk.Code: Select all
mount /dev/sdb1 /boot/efi apt-get install --reinstall grub-efi grub-install /dev/sdb update-grub exit
Can you put the ISO on a USB drive and boot from that? I'd rather help you fix one thing at a time.mzimmers wrote:I keep running into dead ends. I got some new DVDs, and I get the same error.
Any suggestions? I'm trying to upload the ISO file to my dropbox so I can try burning it on my other machine (a Mac), but that's taking forever, and I'd kind of like to figure out what's going on here.
I realize this last wrinkle is off-topic of my original post, so if it's appropriate, I can start a new topic.
Yes, of course, I agree completely. I zeroed out the flash drive and performed the dd command. I now have a bootable flash drive, and can get into rescue mode. Based on earlier discussion, I wanted to review the next step with you:phenest wrote:Can you put the ISO on a USB drive and boot from that? I'd rather help you fix one thing at a time.mzimmers wrote:I keep running into dead ends. I got some new DVDs, and I get the same error.
Any suggestions? I'm trying to upload the ISO file to my dropbox so I can try burning it on my other machine (a Mac), but that's taking forever, and I'd kind of like to figure out what's going on here.
I realize this last wrinkle is off-topic of my original post, so if it's appropriate, I can start a new topic.
Code: Select all
mount /dev/sdb1 /boot/efi
apt-get install --reinstall grub-efi
grub-install /dev/sdb
update-grub
exit
It's the OS partition where Debian is installed. In your first post it was /dev/sdb1.mzimmers wrote: 2. Start a root shell into /dev/sda2 (or whatever your root partition is)
Not sure what you mean by "root partition" here.
Yes, /dev/sda1 is your ESP (EFI System Partition) in your first post. Double check these drive designations are the same before running the above commands. They can change between boots eg. your USB drive may become /dev/sda .3.I interpret the above as I'm installing onto a partition on my Windows disk. I believe the partition I want is /dev/sda1 (SYSTEM, 105MB, FAT). Correct?Code: Select all
mount /dev/sdb1 /boot/efi apt-get install --reinstall grub-efi grub-install /dev/sdb update-grub exit
Code: Select all
mount /dev/sda1 /boot/efi
apt-get install --reinstall grub-efi
grub-install /dev/sda
update-grub
exit
Code: Select all
mount /dev/sda1 /boot/efi
mount: mount point /boot/efi does not exist
#
Because you're getting your drives mixed up.mzimmers wrote:When I execute the first command, I get this:
Code: Select all
mount /dev/sda1 /boot/efi mount: mount point /boot/efi does not exist #
Code: Select all
mount /dev/sdb1 /boot/efi
I was thinking of this, too. As an intermediate step, how does this sound:Dai_trying wrote:Assuming you have backups of any data I would wipe both drives and start from scratch installing Windows first and then install debian afterwards (now you know it will install), and I would have both HDDs installed throughout the whole operation. I'm pretty sure your current set-up would be fixable, but I think it would be easier for you to start over as debian should install correctly on uefi with the Windows install already set-up.
So, the complete sequence would be:phenest wrote:Because you're getting your drives mixed up.mzimmers wrote:When I execute the first command, I get this:
Code: Select all
mount /dev/sda1 /boot/efi mount: mount point /boot/efi does not exist #
Debian > /dev/sdb
Windows > /dev/sda
So...Code: Select all
mount /dev/sdb1 /boot/efi
Code: Select all
mount /dev/sdb1 /boot/efi
apt-get install --reinstall grub-efi
grub-install /dev/sda
update-grub
exit
This is getting more confusing. Are we not trying to load Debian from the Windows ESP - sda1? Would this not require mounting ESP to /boot/efi on sdb1, the Debian partition? This would fail because /boot/efi has not been created yet if grub-efi is not installed.phenest wrote:Because you're getting your drives mixed up.mzimmers wrote:When I execute the first command, I get this:
Code: Select all
mount /dev/sda1 /boot/efi mount: mount point /boot/efi does not exist #
Debian > /dev/sdb
Windows > /dev/sda
So...Code: Select all
mount /dev/sdb1 /boot/efi
I'm not an expert so I cannot say for sure, but I would think you might still have similar issues as your debian install was not done "properly" as UEFI, if you re-install both OS's (as UEFI) there would be a more pristine setup from which you would have less issues.mzimmers wrote:I was thinking of this, too. As an intermediate step, how does this sound:
1. uninstall all grub and grub-efi from my Debian disk
2. tar the Debian disk to a flash drive
3. wipe the Windows disk clean
4. wipe the Debian disk clean
5. re-install Windows
6. restore the tar to the new Debian disk
7. install grub-efi
This way, I won't have to reinstall and rebuild some things on Debian. I don't have much data on the Windows disk that I need to save.
... and this ...mzimmers wrote:2. tar the Debian disk to a flash drive
Are you referring to files or partitions or the whole disc?mzimmers wrote:6. restore the tar to the new Debian disk