[Eclug] Debian no longer recognized partitions

  • Previous message: [Eclug] Debian no longer recognized partitions
  • Next message: [Eclug] cups "lphelp" binary?
  • Chacko Cherackal cherackal at hotmail.com
    Sat Nov 18 12:06:42 EST 2006

     

    >Great news!  Just curious, when you type fdisk -l /dev/sda, does sda1 
    >appear as type 83 or type fd?
    
    All 4 drives show type 83 when I run fdisk -l.
    
    >Makes one wonder if you'd have to do something silly like that on every
    >boot?
    
    I pretty much only reboot when the kernel upgrades or I fiddle with 
    hardware, so I don't plan on doing it that often.  Its a hassle, but reboots 
    happen so rarely it doesn't seem worth the effort trying to track down more 
    permanent solutions.  Plus, I've gotten spoiled by debian's apt-get.  I had 
    a previous machine where I tried to fix problems and I found myself getting 
    further and further away from the ability to seamlessly apt-get upgrade 
    everything.  I figure with this I'll just keep in mind the work around and 
    hope that debian provides an update in the future that fixes the issue for 
    me.
    
    
    >Chacko Cherackal wrote:
    >>Ok, its reassuring to know I can follow up on these steps without risking 
    >>permanent damage.  I was prepared to spend my morning fiddling with mknod, 
    >>but as I was searching online for the correct major and minor device codes 
    >>I came across a post that suggested using hdparm -z to force the kernel to 
    >>reread the partitions.  I ran it on each device and it located the 
    >>partitions perfectly.  A quick rebuild of the array and I'm back in 
    >>business.  Thanks again for all the advice Jason and Rohit.
    >>
    >>>From: Jason Gurtz <jason at jasongurtz.com>
    >>>Reply-To: "Eastern Connecticut Linux Users' Group" 
    >>><eclug at lists.eclug.net>
    >>>To: "Eastern Connecticut Linux Users' Group" <eclug at lists.eclug.net>
    >>>Subject: Re: [Eclug] Debian no longer recognized partitions
    >>>Date: Fri, 17 Nov 2006 13:23:29 -0500
    >>>
    >>>On 11/17/2006 11:04, Chacko Cherackal wrote:
    >>> > If this doesn't work I'm going to try Jason's suggestion of forcing
    >>> > recognition using mknod.  I'm holding off to use that as a last resort
    >>> > because it seems like something I could use to muck things up even 
    >>>further.
    >>>
    >>>Terminology is a bit off here...  All mknod does is create files[1]
    >>>there is no "recognizing" or anything like that going on.  UDEV and
    >>>similar are the ones that do auto-recognition.  As you're finding out,
    >>>this type of modern functionality is not very long in the tooth.  This
    >>>manual device creation also used to be handled by a script (even an
    >>>executable in some cases) called MAKEDEV.  I believe that MAKEDEV was a
    >>>redhat invention, eons ago.  One problem (besides extreme pain in
    >>>dealing with dynamic hotpluggable hardware) with manual device node
    >>>creation is that the /dev directory was typically cluttered with
    >>>hundreds of nodes that pointed to hardware that didn't even exist in the
    >>>system.  The worst offender was probably the dozens and dozens of serial
    >>>ports, left from the days of many serial terminals operating off of one
    >>>server.  With dynamic detection and creation, what you see is what you
    >>>have, unless it doesn't work, which leads to your situation.[2]
    >>>
    >>>If you make a mistake using mknod, you won't have screwed anything up,
    >>>and can just delete the files you have created.  I think, but am not
    >>>sure, that you may be able to create these device files not just in
    >>>/dev, but anywhere you want "just in case" (e.g. create /root/dev/sda1
    >>>etc...)  Then it's just a matter of using your software raid tools to
    >>>tie together those device files that you created
    >>>
    >>>~Jason
    >>>
    >>>--
    >>>[1]  OK OK they're device pointers and not *really* files in the sense
    >>>that they contain data.  They are however, just files as far as the
    >>>filesystem is concerned (e.g. you can ls/rm/cat/echo "foo" > to/from
    >>>them just like any other file). NOTE: doing some of those things NOT
    >>>necessarily recommended!
    >>>
    >>>[2] Trivia: Windows has had this dynamic device creation and
    >>>coresponding device nodes for quite some time.  If you dig into the
    >>>kernel API, you can find such things as \Device\Harddisk1 and so on.  If
    >>>you look at OpenVMS (red-headed stepfather to NT), you will see these
    >>>same names...  As is so painfully typical under windows, the user can
    >>>not directly interact with these special files, as one can under Linux.
    >>
    >>_________________________________________________________________
    >>Get free, personalized commercial-free online radio with MSN Radio powered 
    >>by Pandora http://radio.msn.com/?icid=T002MSN03A07001
    >>
    >
    
    _________________________________________________________________
    MSN Shopping has everything on your holiday list. Get expert picks by style, 
    age, and price. Try it! 
    http://shopping.msn.com/content/shp/?ctId=8000,ptnrid=176,ptnrdata=200601&tcode=wlmtagline
    
    
    

     

     

    More information about the ECLUG mailing list