Am I doing this Grub2 upgrade correctly in my old Debian box?

Am I doing this Grub2 upgrade correctly in my old Debian box?

Post by J G Mille » Tue, 20 Jul 2010 00:34:33



Windoze Terminal?

Is something preventing you from reading and posting News from your
Debian system?


Your question was buried somewhere.

Perhaps you could try posting just the question from your Debian system?
 
 
 

Am I doing this Grub2 upgrade correctly in my old Debian box?

Post by Ant » Tue, 20 Jul 2010 00:37:13

On 7/18/2010 8:34 AM PT, J G Miller typed:


What's wrong with SSHing to my Debian box from Windows boxes? I don't
always have to use Linux.
--
"Are you slower than an ant?" --Sai Yuk from The Legend of Fong Sai Yuk
movie (English subtitles)
/\___/\ Phil./Ant @ http://www.yqcomputer.com/ (Personal Web Site)
/ /\ /\ \ Ant's Quality Foraged Links: http://www.yqcomputer.com/
| |o o| |
\ _ / If crediting, then use Ant nickname and AQFL URL/link.
( ) If e-mailing, then axe ANT from its address if needed.
Ant is currently not listening to any songs on this computer.

 
 
 

Am I doing this Grub2 upgrade correctly in my old Debian box?

Post by Aragor » Tue, 20 Jul 2010 01:37:17

n Sunday 18 July 2010 14:28 in comp.os.linux.hardware, somebody
identifying as Ant wrote...


[snip unnecessary neurological overload]

> €a good idea to install GRUB to all of them>
> > > € [*] /dev/sda (80026 MB, ST38001>A)
> > > € [*] /dev/sda1 (296 MB, /)

"/dev/sda1" is not a disk drive; it's a partit>on

> >€€ > € [ ] /dev/sdb (15020 MB, QUANTUM_FIREBALL>_LM15)
> €gt;€ >
> I wasn't sure what to select here. I KNOW it is not sdb be>ause that
> is my second IDE/ATA HDD as storage. So it leaves off to sda>and sda1,
> but which one is my boot loader?

Neither is your bootloader. One is the hard disk, the other is a
pa>tition.

> I went ahead and checked both /dev/sda. Is this OK to do?

Technically, yes. But it's not ne>essary.

> I hope I didn't break my boot. I am kind of scared to rebo>t! I have
> more details below to help.

It won't break yo>r boot.

> Installation finished. No error>reported.
> /usr/sbin/grub-setup: warn: Attempting to install GRUB to a>partition
> instead of the MBR. This is a BAD idea..

It is generally advised to install GRUB in the master boot record (MBR)
of the hard disk which is approached by the BIOS as being the first
bootable>device.

> /usr/sbin/grub-setup: warn: Embedding is not possible. GRU> can only
> be installed in this setup by using blocklists. However, >locklists
> are UNRELIABLE and their use is discouraged..

That's an error message you get because you've tried to install GRUB
twice, i.e. in the MBR and in the first primary partition's boot
sector. This kind of set-up is only needed if you're planning on
chainloading. Read the GRUB documentation on that if you're
inte>ested.

> "/usr/sbin/grub-setup: warn: Attempting to install GRUB to a>partition
> instead of the MBR. This is a BAD idea.." error sounds bad!> :( Did I
> mess up? :(

No, but you are attempting to do something that is totally unnecessary
and will make no difference in >he end.>
> # df
> Filesystem 1K-blocks Used Available Use% >ounted on
> /dev/sda1 280003 223113 42>34 85% /
> tmpfs 1297464 0 1297464 0% /l>b/init/rw
> udev 1293412 204 1293208> 1% /dev
> tmpfs 1297464 0 1297464 0> /dev/shm
> /dev/sda5 14421344 2898304 10790480 >22% /home
> /dev/sda6 4807056 2884568 1678304> 64% /usr
> /dev/sda7 964500 518464 397040> 57% /var
> /dev/sda8 964500 17644 897860> 2% /tmp
> /dev/sda9 4807056 206068 4356804 5% >usr/local
> /dev/sda11 47383396 32688556 12287904 >3% /extra
> /dev/sda12 918322 16452 852874 >% /others
> /dev/sdb1 14436960 3807116 9896480 28% /storage

The latter three directories/mountpoints are not FHS-compliant. In
other words, you've created unnecessary top-level directories for
things which should normally go under other directories in the
hi>rarchy.

> Is it OK to put both sda and sda1?

It is advised not to do that unless you know what you're doing, and the
installer told you so but you wouldn't li>ten. :p

> If not, then how can I undo this a
 
 
 

Am I doing this Grub2 upgrade correctly in my old Debian box?

Post by Ant » Tue, 20 Jul 2010 01:45:29

n 7/18/2010 9:37 AM PT, Aragorn typed:


I assume sda is the physical HDD and sda1 is the partition. I am not
fimiliar with these disk terms.



I was just following the recommendation from the instructions, but I
wanted to double check with people in case this was not right.



Whew!!! Thanks God! :)



Interesting, and sort of confusing. :(



Oh well, I was a newbie and still learning. One day, I will wipe my HDDs
clean and start from scratch. I have had this Debian since 2005 so
things accumulates. ;)



Uh, where did it say I had to listen?



I did read it briefly, but it was still confusing. :( Thanks though! :)
--
"May 10,000 ants never invade your underwear drawer." --unknown
/\___/\ Phil./Ant @ http://antfarm.ma.cx (Personal Web Site)
/ /\ /\ \ Ant's Quality Foraged Links: http://aqfl.net
| |o o| |
\ _ / If crediting, then use Ant nickname and AQFL URL/link.
( ) If e-mailing, then axe ANT from its address if needed.
Ant is currently not listening to any songs on this computer.
 
 
 

Am I doing this Grub2 upgrade correctly in my old Debian box?

Post by Aragor » Tue, 20 Jul 2010 01:53:41

n Sunday 18 July 2010 18:45 in comp.os.linux.hardware, somebody
identifying as Ant wrote...


You would be if you were using GNU/Linux a little more... <eg>


No, you did not. The recommendation was to put it on each hard disk's
MBR. You put it only on the MBR for "/dev/sda" *and* in the boot
sector of your root partition, "/dev/sda1".


I'm not a deity, but I appreciate the compliment. :p


Chainloading can be handy if you want to have multiple distributions
installed on the same machine, with each distribution having its own
specific copy of GRUB. The GRUB in the master boot record can then
point to each distribution's own GRUB, if need be.


It did tell you that it was a bad idea to install GRUB in a partition.


Knowing the difference between "/dev/sda" and "/dev/sda1" is not exactly
rocket science though, and especially not for someone who is actively
using GNU/Linux. Which in your case, given that you're posting from
Windows, doesn't seem to be the case... :-/

--
*Aragorn*
(registered GNU/Linux user #223157)
 
 
 

Am I doing this Grub2 upgrade correctly in my old Debian box?

Post by Ant » Tue, 20 Jul 2010 02:03:17

n 7/18/2010 9:53 AM PT, Aragorn typed:


I use it almost daily, but not physically on its box. I do a lot of
SSHing from work, local network, and other places. :) I hated Windows'
remote desktop. I don't need GUI!



Oh, see. It's confusing!



:D



Ah, I won't bother with that. I prefer to keep things simple. I used to
do dual boot, but it got complex and confusing when OS fight each other
or when I have hardware problems. I decided to just keep one OS
dedicated on each machine. If I have to, then I will use virtual OS'
like VMware Workstations and VirtualBox.




Are you referring to the error after it made the changes.



:( I also use Mac OS X too.
--
/\___/\ Phil./Ant @ http://antfarm.ma.cx (Personal Web Site)
/ /\ /\ \ Ant's Quality Foraged Links: http://aqfl.net
| |o o| |
\ _ / If crediting, then use Ant nickname and AQFL URL/link.
( ) If e-mailing, then axe ANT from its address if needed.
Ant is currently not listening to any songs on this computer.
 
 
 

Am I doing this Grub2 upgrade correctly in my old Debian box?

Post by mechani » Tue, 20 Jul 2010 18:55:32


I get that message too, and I don't have Grub installed twice. I
also get:
/usr/sbin/grub-setup: warn: This msdos-style partition label has no
post-MBR gap; embedding won't be possible!.

Maybe I should have elected to take the package maintainers
default/grub file rather than continue with the current one?

And what are blocklists, and what is Embedding in this context?

(f-u set)
--
mechanic