Re: partition labels
- From: Jean-David Beyer <jeandavid8@xxxxxxxxxxx>
- Date: Fri, 15 Jun 2007 22:20:46 GMT
Bob Tennent wrote:
On Fri, 15 Jun 2007 17:31:26 GMT, Jean-David Beyer wrote:
> Bob Tennent wrote:
>> I'm trying to upgrade a system from Fedora Core 6 to Fedora 7. I've been
>> using traditional /dev/hda* device names in fstab and grub.conf but the
>> release notes say I now have to use partition labels. I used e2label to
>> label my partitions:
>>
>> # blkid
>> /dev/hda4: LABEL="/home" ...
>> /dev/hda2: LABEL="/" ...
>> /dev/hda1: LABEL="/boot" ...
>>
>> and edited fstab and grub.conf accordingly:
>>
>> LABEL=/ / ext3 defaults 1 1
>> LABEL=/home /home ext3 defaults 1 2
>> LABEL=/boot /boot ext3 defaults 1 2
>>
>> kernel /vmlinuz-2.6.20-1.2952.fc6 ro root=/ ...
>>
>> and my system doesn't boot. (I've recovered using a rescue CD.)
>>
> Here is what CentOS 4 does:
>
> # This file is edited by fstab-sync - see 'man fstab-sync' for details
> LABEL=/1 / ext3 defaults 1 1
> LABEL=/boinc /boinc ext3 defaults 1 2
> LABEL=/boot1 /boot ext2 defaults 1 2
Thanks. What does your grub.conf have for root= ...
and what does blkid produce? And what is fstab-sync?
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,2)
# kernel /vmlinuz-version ro root=/dev/hda5
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=15
splashimage=(hd0,2)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.9-55.ELsmp)
root (hd0,2)
kernel /vmlinuz-2.6.9-55.ELsmp ro root=LABEL=/1 rhgb quiet
initrd /initrd-2.6.9-55.ELsmp.img
title CentOS (2.6.9-42.0.10.ELsmp)
root (hd0,2)
kernel /vmlinuz-2.6.9-42.0.10.ELsmp ro root=LABEL=/1 rhgb quiet
initrd /initrd-2.6.9-42.0.10.ELsmp.img
title CentOS (2.6.9-42.0.8.ELsmp)
root (hd0,2)
kernel /vmlinuz-2.6.9-42.0.8.ELsmp ro root=LABEL=/1 rhgb quiet
initrd /initrd-2.6.9-42.0.8.ELsmp.img
title W-XP
rootnoverify (hd0,0)
chainloader +1
The last (W-XP) boots Windows XP Home.
# /sbin/blkid
/dev/hda1: TYPE="ntfs"
/dev/hda2: UUID="88A1-64EC" TYPE="vfat"
/dev/hda3: LABEL="/boot1" UUID="63c02188-ddc2-4eb0-b7ef-3f0560113564"
TYPE="ext2"
/dev/hda5: LABEL="/1" UUID="2d474e87-2a32-42f3-b4c9-7914585fa707"
SEC_TYPE="ext3" TYPE="ext2"
/dev/hda6: TYPE="swap"
/dev/hda7: LABEL="/opt" UUID="4bf72320-a058-46d6-9d6f-7bba4148033a"
SEC_TYPE="ext3" TYPE="ext2"
/dev/hda8: LABEL="/usr/local" UUID="1e21d748-0a02-4147-88b1-a078a3f811e1"
SEC_TYPE="ext3" TYPE="ext2"
/dev/hda9: LABEL="/usr/src" UUID="0f7dbe01-dccf-49c4-9f4f-544385617871"
SEC_TYPE="ext3" TYPE="ext2"
/dev/hda10: LABEL="/boinc" UUID="56f15b64-40a9-4b13-82a0-69178858ca20"
SEC_TYPE="ext3" TYPE="ext2"
/dev/sda1: LABEL="/tmp1" UUID="fc7e644f-8d09-4fa9-8f12-fffcbf8fe2b6"
SEC_TYPE="ext3" TYPE="ext2"
/dev/sda2: LABEL="/home" UUID="66d1abbf-0591-415f-9087-70357c0d0477"
SEC_TYPE="ext3" TYPE="ext2"
/dev/sdb1: LABEL="/var" UUID="eb2a9acc-822f-4f75-9436-9ebc16338358"
SEC_TYPE="ext3" TYPE="ext2"
/dev/sdb2: LABEL="/usr1" UUID="8e010158-e3f4-42e2-aec5-a33d79e4ce5a"
SEC_TYPE="ext3" TYPE="ext2"
# /usr/sbin/fstab-sync
libhal.c 911 : Error sending msg: Service "org.freedesktop.Hal" does not exist
--
.~. Jean-David Beyer Registered Linux User 85642.
/V\ PGP-Key: 9A2FC99A Registered Machine 241939.
/( )\ Shrewsbury, New Jersey http://counter.li.org
^^-^^ 18:20:01 up 3 days, 23:20, 3 users, load average: 4.34, 4.29, 4.21
.
- Follow-Ups:
- Re: partition labels
- From: Bob Tennent
- Re: partition labels
- References:
- partition labels
- From: Bob Tennent
- Re: partition labels
- From: Jean-David Beyer
- Re: partition labels
- From: Bob Tennent
- partition labels
- Prev by Date: Re: DVD drive problems
- Next by Date: Re: DVD drive problems
- Previous by thread: Re: partition labels
- Next by thread: Re: partition labels
- Index(es):
Relevant Pages
|