Re: Grub Rescue
Gunnar Gervin writes: > Will try Bash command in Grub rescue> > 1. Set up as root and get # instead of $ > (but how? I did it once but forgot how exactly) > 2. ls > 3. set root=(hdo,gpt1) > 4. insmod normal > 5. normal > > Now, please: > Will someone tell me: > 1. How to set up as root in Grub Rescue, > 2. if the above procedure will work in Rescue > There isn't a root user in grub. The root command "set root=(hdo,gpt1)" is telling it which file system will be the root file system when the OS is booted. There is where it will look for the kernel when you issue the linux and initrd commands. (It's not bash either afaik). I am assuming you are using grub2 because of the syntax. What are you trying to do?
Re: Grub Rescue
On 2021-07-08 19:35, Gunnar Gervin wrote: Will try Bash command in Grub rescue> 1. Set up as root and get # instead of $ (but how? I did it once but forgot how exactly) 2. ls 3. set root=(hdo,gpt1) 4. insmod normal 5. normal Now, please: Will someone tell me: 1. How to set up as root in Grub Rescue, 2. if the above procedure will work in Rescue BR, Gunnar set root=(hdo,gpt1) that hdo bit wants to be hd0 probably mick. -- Key ID4BFEBB31
Re: Grub Rescue
On Thu, Jul 08, 2021 at 09:35:45PM +0300, Gunnar Gervin wrote: > Will try Bash command in Grub rescue> > 1. Set up as root and get # instead of $ > (but how? I did it once but forgot how exactly) > 2. ls > 3. set root=(hdo,gpt1) > 4. insmod normal > 5. normal > > Now, please: > Will someone tell me: > 1. How to set up as root in Grub Rescue, > 2. if the above procedure will work in Rescue > > BR, > Gunnar Which Debian version are you running? Are you booting from Legacy Boot [MBR] or UEFI? Do you have a password for root set or would you normally use sudo? All best, Andy Cater
Grub Rescue
Will try Bash command in Grub rescue> 1. Set up as root and get # instead of $ (but how? I did it once but forgot how exactly) 2. ls 3. set root=(hdo,gpt1) 4. insmod normal 5. normal Now, please: Will someone tell me: 1. How to set up as root in Grub Rescue, 2. if the above procedure will work in Rescue BR, Gunnar
Re: grub rescue commands not working
> Obtain a netinst image. Boot it and choose rescue mode from the menu. > You will eventually get an option to 'Reinstall the GRUB boot loader'. You may also try super grub 2 disk. Google for it. Good luck! Best Hans
Re: grub rescue commands not working
On Fri 27 May 2016 at 21:05:11 -0400, Haines Brown wrote: > My main system cannot boot. No idea how to reinstall grub2 from Live > CD, and so look to see what I... Obtain a netinst image. Boot it and choose rescue mode from the menu. You will eventually get an option to 'Reinstall the GRUB boot loader'.
grub rescue commands not working
My main system cannot boot. No idea how to reinstall grub2 from Live CD, and so look to see what I can do at grub rescue> prompt. grub rescue> ls returns a big list of partitions. The only one I files from is: grub rescue> ls (hd1,1)/boot returns initrd.img, vmlinux, config, System.map files, but no .mod files grub rescue> dump I run because I've been playing around, returns initrd.img, vmlinux, config, System.map files, but no .mod files grub rescue> dump I run because I've been playing around, but 'dump' is unknown command grub rescue> set root=(hd1,1) grub rescue> set prefix=(hd1,1)/boot/grub grub rescue> insmod normal error: file `boot/grub/i386-pc/normal.mod not found Haines Brown
Re: grub rescue> (getting error: unknown filesystem) for all filesystems!
Hi, aman nangia wrote: > i tried running dd > if=/var/tmp/above-filename of=/dev/sdbe1 bs=4M; sync (where my sdbe1 was the > usb flash drive). I think the USB device address is not correct. Firstly the bootable isohybrid images must be copied onto the base device, not a partition device. So no "1" at the end. Further "/dev/sdbe" is not what i would expect for a USB stick. /dev/sdb or /dev/sde would be plausible. So try first whether /dev/sdb is really your USB stick by looking whether this read command lets it blink: dd if=/dev/sdb of=/dev/null If the desired USB stick reacted, then you can dare to overwrite it. # umount any mounted /dev/sdb* dd if=/var/tmp/above-filename of=/dev/sdb bs=4M; sync This will overwrite the partitioning of the USB stick. If any other valuable data are on it, make a backup first # umount any mounted /dev/sdb* dd if=/dev/sdb | gzip >"$HOME"/usb_sdb_backup.gz (To be restored by dd if="$HOME"/usb_sdb_backup.gz | gunzip >/dev/sdb which will bring back all partitions and their content. ) Debian's FAQ answer: https://www.debian.org/CD/faq/#write-usb ISOLINUX isohybrid wiki: http://www.syslinux.org/wiki/index.php/Isohybrid#Copying_onto_USB_stick_by_shell_commands In a neighboring thread there was the question whether bs=8m would be the right block size. Answer: It matters only for performance. The difference between bs=1 and bs=1M is noticable, the difference between 4M an 8M is not. Have a nice day :) Thomas
Re: grub rescue> (getting error: unknown filesystem) for all filesystems!
On 11/24/2015 06:16 PM, aman nangia wrote: > Since this boot disk is 146gb (2.5" sas drive) and has some important data > that needs to be retrieved, one option i thought was to take it out from > broken system and insert it into another system running debian that has a > empty filler disk panel. I did that thinking it will auto-recognize the disk > but it did not. > > What is the debian cli to run a scan/probe like in solaris (devfsadm -C) to > auto-recognize the newly added disk? That way i can mount it on /mnt and > retrieve my files over. > > Thx for any pointers! > > > On Tue, 11/24/15, aman nangia wrote: > > Subject: grub rescue> (getting error: unknown filesystem) for all > filesystems! > To: debian-user@lists.debian.org > Date: Tuesday, November 24, 2015, 6:00 PM > > debian 6.0 on intel chipset > architecture (not amd chipset). It's HP Gen7 system with no > dvd drive (only usb). > > Will the file 'debian-live-6.0.4-amd64-rescue.img' that we > have handy help here to recover from above failed server? > Note the filename has amd in it and so am not sure if it > will work for intel chipsets based system or not. The size > of this img file is 600196kb file. There is no debian or > livecd media. > > From another good running debian 6.0 system i tried running > dd if=/var/tmp/above-filename of=/dev/sdbe1 bs=4M; sync > (where my sdbe1 was the usb flash drive). After the command > i inserted this usb on the broken system and tried to boot > from it, it won't recognize it still. > > Also, i tried putting a redhat 6.3 x86 and also rhel 5.3 x86 > dvd in the usb dvd drive and tried to boot from it, it says > cannot find it. > > am stuck now and need help! > > > > One way is to have a fully running system. put the drive into a spare slot or in a USB system. Depending on your system, it may automount (USB enclosure) or you will have to mount it on the system. First thing I would do is to just load it on the system and use gparted to look at it only (this can destroy your disk). Alternate method, is get something like parted magic (live rescue disk) and boot from it. There you can try mounting the drive. In some cases you may need to do a fsck to check the system (make backup before doing it). -- Joseph Loo j...@acm.org
Re: grub rescue> (getting error: unknown filesystem) for all filesystems!
Since this boot disk is 146gb (2.5" sas drive) and has some important data that needs to be retrieved, one option i thought was to take it out from broken system and insert it into another system running debian that has a empty filler disk panel. I did that thinking it will auto-recognize the disk but it did not. What is the debian cli to run a scan/probe like in solaris (devfsadm -C) to auto-recognize the newly added disk? That way i can mount it on /mnt and retrieve my files over. Thx for any pointers! On Tue, 11/24/15, aman nangia wrote: Subject: grub rescue> (getting error: unknown filesystem) for all filesystems! To: debian-user@lists.debian.org Date: Tuesday, November 24, 2015, 6:00 PM debian 6.0 on intel chipset architecture (not amd chipset). It's HP Gen7 system with no dvd drive (only usb). Will the file 'debian-live-6.0.4-amd64-rescue.img' that we have handy help here to recover from above failed server? Note the filename has amd in it and so am not sure if it will work for intel chipsets based system or not. The size of this img file is 600196kb file. There is no debian or livecd media. From another good running debian 6.0 system i tried running dd if=/var/tmp/above-filename of=/dev/sdbe1 bs=4M; sync (where my sdbe1 was the usb flash drive). After the command i inserted this usb on the broken system and tried to boot from it, it won't recognize it still. Also, i tried putting a redhat 6.3 x86 and also rhel 5.3 x86 dvd in the usb dvd drive and tried to boot from it, it says cannot find it. am stuck now and need help!
Re: grub rescue
On 6/14/14, lina wrote: > Today I tried to install debian from a CD which dated back to 2011. > Everything went fine, > > partition -> and then it arrived at the set up the mirror, I just choose > default and think later changed in the /etc/apt. > It started to download from that default ftp mirror. > It was choked there for half a hour, the progress bar didn't proceed and it > is said waiting ... > > The only thing I could do at that time, was took the CD out and reboot. > Which I shouldn't have done that. For future reference, you may have been able to change VTs/ Linux consoles, eg: Alt-RightArrow and there you will often see the message "press enter to activate console". It's only busybox, so its own learning curve, but has been known to be useful on occasion :) Good luck Zenaan -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/caosgnssxto4ma7txgdyvctaoxhyqzrmvf+9kz6s6gwhxvt1...@mail.gmail.com
Re: grub rescue
The old NetInstall CD is out of data, that's why it is choked when it tried to grab packages. I burned a new CD with current stable version and it looks fine by far. Thanks, On Sat, Jun 14, 2014 at 6:14 PM, Tom H wrote: > On Sat, Jun 14, 2014 at 4:40 AM, lina wrote: > > > > Today I tried to install debian from a CD which dated back to 2011. > > > > Everything went fine, > > > > partition -> and then it arrived at the set up the mirror, I just choose > > default and think later changed in the /etc/apt. > > It started to download from that default ftp mirror. > > It was choked there for half a hour, the progress bar didn't proceed and > it > > is said waiting ... > > > > The only thing I could do at that time, was took the CD out and reboot. > > Which I shouldn't have done that. > > > > After reboot, it showed me > > > > grub rescue> > > > > when I tried > > > > grub rescue> ls (hd0, msdos5) > > > > error: unknown filesystem. > > By default, (hd0, msdos5) is a swap partition. > > You need to run "set" and "ls" when you're dropped to a "grub rescue" > prompt in order to determine the "set ..." commands to run. > > > -- > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact > listmas...@lists.debian.org > Archive: > https://lists.debian.org/CAOdo=SwZoWMY9tzZE60YL6pz=z42jq+d1ycayhckjml-66f...@mail.gmail.com > >
Re: grub rescue
On Sat, Jun 14, 2014 at 4:40 AM, lina wrote: > > Today I tried to install debian from a CD which dated back to 2011. > > Everything went fine, > > partition -> and then it arrived at the set up the mirror, I just choose > default and think later changed in the /etc/apt. > It started to download from that default ftp mirror. > It was choked there for half a hour, the progress bar didn't proceed and it > is said waiting ... > > The only thing I could do at that time, was took the CD out and reboot. > Which I shouldn't have done that. > > After reboot, it showed me > > grub rescue> > > when I tried > > grub rescue> ls (hd0, msdos5) > > error: unknown filesystem. By default, (hd0, msdos5) is a swap partition. You need to run "set" and "ls" when you're dropped to a "grub rescue" prompt in order to determine the "set ..." commands to run. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/CAOdo=SwZoWMY9tzZE60YL6pz=z42jq+d1ycayhckjml-66f...@mail.gmail.com
Re: grub rescue
I choose to reinstall. On Sat, Jun 14, 2014 at 4:40 PM, lina wrote: > Hi, > > Today I tried to install debian from a CD which dated back to 2011. > > Everything went fine, > > partition -> and then it arrived at the set up the mirror, I just choose > default and think later changed in the /etc/apt. > It started to download from that default ftp mirror. > It was choked there for half a hour, the progress bar didn't proceed and > it is said waiting ... > > The only thing I could do at that time, was took the CD out and reboot. > Which I shouldn't have done that. > > After reboot, it showed me > > grub rescue> > > when I tried > > grub rescue> ls (hd0, msdos5) > > error: unknown filesystem. > > I don't know what I can do next. > > P.S. Why I choose that old CD because the newly-burned CD failed to enter > into the installation. Before the system was Ubuntu. I had freed all space > and did the partition. > > Thanks ahead, >
grub rescue
Hi, Today I tried to install debian from a CD which dated back to 2011. Everything went fine, partition -> and then it arrived at the set up the mirror, I just choose default and think later changed in the /etc/apt. It started to download from that default ftp mirror. It was choked there for half a hour, the progress bar didn't proceed and it is said waiting ... The only thing I could do at that time, was took the CD out and reboot. Which I shouldn't have done that. After reboot, it showed me grub rescue> when I tried grub rescue> ls (hd0, msdos5) error: unknown filesystem. I don't know what I can do next. P.S. Why I choose that old CD because the newly-burned CD failed to enter into the installation. Before the system was Ubuntu. I had freed all space and did the partition. Thanks ahead,
grub rescue
well I had an interesting evening yesterday.. I spent most of the day trying to do an upgrade to jessie from wheezy. after all was said & done & I rebooted, I got a black screen. tried the rescue mode, same thing. So I tried to restore using my clonezilla backup. after restoring the partition & rebooting I got an error and it dropped me to grub-rescue prompt, with an error like: error: file '/boot/grub/i386-pc/normal.mpp' not found grub rescue>. No help, "?" all I could do was ls. Not having a computer nearby to google, I just re-installed wheezy. I have linux installed on multiple partitions, on both of my internal drives, and also Windows 7. I have restored before using clonezilla, so I'm not exactly sure what I did different this time, or how to get it booted.. -- Paul Cartwright Registered Linux User #367800 and new counter #561587 -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/52e8eaf1.1000...@gmail.com