[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Upgrading from Lenny to Squeeze



On Sat, 26 Nov 2011 20:22:37 -0500 (EST), Marc Shapiro wrote:
> 
> Here are my /etc/apt/sources.list, /etc/fstab, /etc/lilo.conf listings. 

In a typical Debian boot, there are three separate mountings of a root
file system.  The first stage is the initial RAM file system,
which is mounted as the root file system during the early stages of
booting.  This is specified by the "initrd" configuration statement
in /etc/lilo.conf.  The second stage is when the permanent root file
system is mounted read-only.  This is specified by the "root" and
"read-only" configuration statements in /etc/lilo.conf.  The third
stage is when the permanent root file system is mounted read/write.
That is controlled by whatever is specified in /etc/fstab for the root
file system.  (The /etc/fstab file itself is read into memory from the
stage 2 root file system.  The specifications in /etc/lilo.conf are
written into the boot code when the "lilo" command is run.  If you
change them, you must re-run lilo.)  The specifications for the root file
system in /etc/lilo.conf and in /etc/fstab do not match.  In
/etc/lilo.conf, you have

   root = "UUID=5e0d4da4-aba3-4965-8fb4-788501b0fe69"

(By the way, you should eliminate the blanks on both sides of the
equal sign.  And I would also recommend moving the "root" configuration
statement to the global section.  That way, you only have to specify it
once.  And if you need to change it, you will only need to change it
in one place.)  In /etc/fstab you have

   LABEL=hda2

The two specifications are not the same.  They may be logically
equivalent; but without more information, there's no way for me
to tell.  (By the way, if "hda2" really is the partition label,
then you chose a poor labeling convention, in my humble opinion.
Under Squeeze, there will be no such device as /dev/hda2.  But
that's another subject.)  But in any case, it is advisable to make
the specification the same between /etc/lilo.conf and /etc/fstab
for the root file system.  The syntax is a little different,
but you should use a UUID in both places or a LABEL in both places,
for consistency, and of course the UUIDs or the LABELs should
match.
> 
> The lilo.conf file is modified slightly after looking at your web 
> page, but I have not rerun lilo, yet.  Is this the correct format for 
> the append statement to pass the rootdelay command?

Yes.
> 
> I just noticed, as I copied in the /etc/fstab, that the removable media
> lines all have double commas prior to the 'noauto' could this have been
> acceptable in Lenny, but be a problem for Squeeze?

Good question.  I don't know.  Maybe someone else does.  I looked at
my own /etc/fstab in Wheezy, and I don't have any double commas in front
of "noauto".
> 
> Also, I am going to rerun 'apt-get update' and see if the lines
> mentioninf lenny in /var/lib/dpkg/status go away.
> ...

Let me know how that works out for you.  I didn't see any obvious
problems in your /etc/apt/sources.list.

-- 
  .''`.     Stephen Powell    
 : :'  :
 `. `'`
   `-


Reply to: