<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hey guys I've got some help on the way. Let me get back to you if we don't get it. Bill<BR> <BR>
> Date: Tue, 23 Nov 2010 11:00:17 -0700<BR>> From: g1ccross@gmail.com<BR>> To: clue-tech@cluedenver.org<BR>> Subject: Re: [clue-tech] Compaq Armada 3500 woes<BR>> <BR>> I think we need to slow down or Bill is going to get lost. He is<BR>> working from two different environments and I think it is important<BR>> that he knows what the difference is before running commands as root<BR>> that will overwright his configuration files. He is booting with a<BR>> live cd so I do not think /proc/mounts will match what he wants in his<BR>> installed fstab. All he is trying to do is install grub to /dev/sda<BR>> and I think instead of trying to make a device file in the chroot that<BR>> is allready there in the live environment he can easily just mount the<BR>> part of the live environment to the chroot environment before trying<BR>> to install grub.<BR>> <BR>> Christopher Cross<BR>> g1ccross@gmail.com<BR>> (310)536-6392<BR>> <BR>> <BR>> <BR>> On Tue, Nov 23, 2010 at 10:51 AM, Jim Ockers <ockers@ockers.net> wrote:<BR>> > Bill,<BR>> ><BR>> > The kernel VFS maintains a list of mounted filesystems in /proc/mounts. If<BR>> > your root (/) filesystem and /boot are not mounted or not found in<BR>> > /etc/fstab then some of the tools you're trying to use might complain.<BR>> ><BR>> > What does "cat /proc/mounts" return? Is it a list of mounted filesystems<BR>> > and devices? What is in /etc/fstab (do "cat /etc/fstab" to find out). If<BR>> > /etc/fstab is broken or not there, just do "cat /proc/mounts > /etc/fstab"<BR>> > to rebuild it. You will need to be root for that of course.<BR>> ><BR>> > Then try your grub tools again.<BR>> ><BR>> > HTH<BR>> > Jim<BR>> ><BR>> > Bill Smith wrote:<BR>> ><BR>> > Hi Jim, the otuput to the 1st command is: brw-rw---- 1 root disk 8, 0 Nov 23<BR>> > 15:28 /dev/sda and the /dev/sda is in yellow<BR>> > The output to the 2nd is: mknod: '/tmp/sda': Operation not permitted<BR>> > Then I realized I was not root, did that and tried again. Same for the 1st<BR>> > output. 2nd output is: back at the prompt, then for grub-install /dev/sda<BR>> > the output is, 1st line: grub-probe: error: cannot find a device for / (is<BR>> > /dev mounted?). 2nd line: grub-probe: error: cannot find a dvice for /boot/<BR>> > (is /dev mounted?). 3rd line: Could not find device for /boot: Not found or<BR>> > not a block device><BR>> ><BR>> > ________________________________<BR>> > Date: Tue, 23 Nov 2010 09:32:47 -0700<BR>> > From: ockers@ockers.net<BR>> > To: clue-tech@cluedenver.org<BR>> > Subject: Re: [clue-tech] Compaq Armada 3500 woes<BR>> ><BR>> > Hi Bill,<BR>> ><BR>> > If you ever get a "/dev/sda: not found" type message, please do the<BR>> > following to see if it exists:<BR>> ><BR>> > ls -al /dev/sda<BR>> ><BR>> > If there is no device node for that device, you either need to mount the<BR>> > automagic /dev filesystem that will populate the directory based on the<BR>> > device drivers loaded into the kernel, or else consider creating it<BR>> > yourself. IIRC sda is 8,0:<BR>> ><BR>> > mknod /dev/sda b 8 0<BR>> ><BR>> > If you can't write to the /dev directory, then create the device node in<BR>> > /tmp:<BR>> ><BR>> > mknod /tmp/sda b 8 0<BR>> ><BR>> > Then you can use your other commands such as grub-install to access that<BR>> > device. The major & minor numbers on the device node "file" tell the kernel<BR>> > what device driver will handle the ioctl()s. If the SCSI device driver<BR>> > chain is not loaded into the kernel then you wouldn't be able to access<BR>> > /dev/sda either, so make sure all the necessary driver modules are loaded if<BR>> > you have any trouble using a SCSI block device node.<BR>> ><BR>> > HTH,<BR>> > Jim<BR>> ><BR>> > --<BR>> > Jim Ockers, P.Eng. (ockers@ockers.net)<BR>> > Contact info: http://www.ockers.ca/pason.html<BR>> ><BR>> ><BR>> > Bill Smith wrote:<BR>> ><BR>> > I'm a relative newbie, so exactly what are the commands, and in what order?<BR>> > Thanks Bill<BR>> ><BR>> > ________________________________<BR>> > Date: Tue, 23 Nov 2010 09:15:40 -0700<BR>> > From: g1ccross@gmail.com<BR>> > To: clue-tech@cluedenver.org<BR>> > Subject: Re: [clue-tech] Compaq Armada 3500 woes<BR>> ><BR>> > I think you need to mount /dev to to chroot before chrooting. Try mount -o<BR>> > bind /dev /mnt/dev. I am not sure but I usually mount proc in the chroot<BR>> > also.<BR>> > On Nov 23, 2010 9:08 AM, "Bill Smith" <wpsmithii@msn.com> wrote:<BR>> >><BR>> >> Hi all, I dug around and found a grub install procedure for Knoppix.<BR>> >> Here's what happened. First I did "fdisk -1" and I got 3 partitions as I had<BR>> >> installed. The boot was /dev/sda1 and it was listed as ID: 83 ,system:<BR>> >> linux, this should be ext3, the start was 1 end was 2374, 19+ Gig. The<BR>> >> commands I used as root are as follows:<BR>> >> mount -t ext3 -o rw /dev/sda1 /mnt<BR>> >> chroot /mnt<BR>> >> grub-install /dev/sda<BR>> >> The feedback from this was<BR>> >> /dev/sda: Not found or not a block device<BR>> >><BR>> >><BR>> >> Thanks in advance. Bill<BR>> ><BR>> > _______________________________________________ clue-tech mailing list<BR>> > clue-tech@cluedenver.org http://cluedenver.org/mailman/listinfo/clue-tech<BR>> ><BR>> > ________________________________<BR>> > _______________________________________________<BR>> > clue-tech mailing list<BR>> > clue-tech@cluedenver.org<BR>> > http://cluedenver.org/mailman/listinfo/clue-tech<BR>> ><BR>> > _______________________________________________ clue-tech mailing list<BR>> > clue-tech@cluedenver.org http://cluedenver.org/mailman/listinfo/clue-tech<BR>> ><BR>> > ________________________________<BR>> > _______________________________________________<BR>> > clue-tech mailing list<BR>> > clue-tech@cluedenver.org<BR>> > http://cluedenver.org/mailman/listinfo/clue-tech<BR>> ><BR>> > _______________________________________________<BR>> > clue-tech mailing list<BR>> > clue-tech@cluedenver.org<BR>> > http://cluedenver.org/mailman/listinfo/clue-tech<BR>> ><BR>> _______________________________________________<BR>> clue-tech mailing list<BR>> clue-tech@cluedenver.org<BR>> http://cluedenver.org/mailman/listinfo/clue-tech<BR>                                            </body>
</html>