You are not logged in.
My /home and /var partitions mount as /dev/sdaxx. / works as I want (marked with arrows):
maciejjo@prysznic ~ $ mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=10240k,nr_inodes=257049,mode=755)
run on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=10240k)
/dev/disk/by-label/root on / type ext4 (rw,noatime,barrier=1,data=ordered)<----------------------
devpts on /dev/pts type devpts (rw)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
/dev/sda6 on /var type reiserfs (rw,noatime)<----------------------------------------------------
/dev/sda8 on /home type ext4 (rw,noatime,user_xattr)<--------------------------------------------
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,mode=1777)
tmpfs on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777,size=10m)
tmpfs on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755,size=10m)
/home/maciejjo/music on /var/lib/mpd/music type none (rw,bind)
My /etc/fstab:
maciejjo@prysznic ~ $ cat /etc/fstab
#
# /etc/fstab: static file system information
#
#<file system> <dir> <type> <options> <dump> <pass>
devpts /dev/pts devpts defaults 0 0
none /dev/shm tmpfs nodev,nosuid 0 0
/dev/disk/by-label/swap swap swap defaults 0 0
/dev/disk/by-label/root / ext4 defaults,noatime 0 1
/dev/disk/by-label/var /var reiserfs defaults,noatime 0 2
/dev/disk/by-label/home /home ext4 defaults,noatime,user_xattr 0 2
tmpfs /tmp tmpfs defaults,nodev,nosuid,mode=1777 0 0
tmpfs /var/lock tmpfs defaults,nodev,nosuid,noexec,mode=1777,size=10m 0 0
tmpfs /var/run tmpfs defaults,nodev,nosuid,noexec,mode=0755,size=10m 0 0
/home/maciejjo/music /var/lib/mpd/music none bind 0 0
Why don't they mount properly? I followed Persistent block device naming article.
Offline
Don't know exactly what the problem is, but instead of mounting devices like this in fstab
/dev/disk-by-label/label /mountpoint
try using this instead
LABEL=somelabel /mountpoint
Offline
I'm not sure if this is a problem, but i thought that using labels in fstab is to prevent mounting under /dev/sdaxx, and mount like my root partition. I just want to take adventage of it, in case of booting with two discs. And when I use LABEL it looks the same. Maybe it is supposed to.
Offline
As a sanity check, would you please post the output of ls /dev/disk/by-id ??
Thanks
edit:fixed Typo
Last edited by ewaller (2011-05-05 16:21:19)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
here you go:
maciejjo@prysznic ~ $ ls /dev/disk/by-id
ata-TSSTcorp_CDDVDW_SH-S223B_0S23456789BLMNOP ata-WDC_WD3200AAKS-00L9A0_WD-WCAV25333712-part7 scsi-SATA_WDC_WD3200AAKS-_WD-WCAV25333712-part6 wwn-0x50014ee101f5afa8-part5
ata-WDC_WD3200AAKS-00L9A0_WD-WCAV25333712 ata-WDC_WD3200AAKS-00L9A0_WD-WCAV25333712-part8 scsi-SATA_WDC_WD3200AAKS-_WD-WCAV25333712-part7 wwn-0x50014ee101f5afa8-part6
ata-WDC_WD3200AAKS-00L9A0_WD-WCAV25333712-part1 scsi-SATA_WDC_WD3200AAKS-_WD-WCAV25333712 scsi-SATA_WDC_WD3200AAKS-_WD-WCAV25333712-part8 wwn-0x50014ee101f5afa8-part7
ata-WDC_WD3200AAKS-00L9A0_WD-WCAV25333712-part2 scsi-SATA_WDC_WD3200AAKS-_WD-WCAV25333712-part1 wwn-0x50014ee101f5afa8 wwn-0x50014ee101f5afa8-part8
ata-WDC_WD3200AAKS-00L9A0_WD-WCAV25333712-part3 scsi-SATA_WDC_WD3200AAKS-_WD-WCAV25333712-part2 wwn-0x50014ee101f5afa8-part1
ata-WDC_WD3200AAKS-00L9A0_WD-WCAV25333712-part5 scsi-SATA_WDC_WD3200AAKS-_WD-WCAV25333712-part3 wwn-0x50014ee101f5afa8-part2
ata-WDC_WD3200AAKS-00L9A0_WD-WCAV25333712-part6 scsi-SATA_WDC_WD3200AAKS-_WD-WCAV25333712-part5 wwn-0x50014ee101f5afa8-part3
Offline
More coffee for me.
I really meant to ask for /dev/disk/by-label
I should be careful for what I ask -- I might get it
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
That confused me, but I thought: He knows what he is doing. Here's my /dev/disk/by-label:
maciejjo@prysznic ~ $ ls /dev/disk/by-label/
home root swap System\x20Reserved var
Last edited by maciejjo (2011-05-05 18:07:28)
Offline
That all looks reasonable. If you have /etc/fstab set up using drive labels, can you:
boot
log in as root (since root's home is on / )
mount /home using just mount /home ??
Also, does swap get started correctly?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
I have the same situation though I don't think it's a problem, especially if you know where the labels is supposed to be mounted in the first place and it's present after boot. Perhaps it's because root is mounted before certain udev events are triggered, and isn't translated to a device yet (for kernel >=2.6 anyway). Neither /proc/mounts nor df (...) will show labels or UUIDs after udev associates, AFAIK. All my volumes are labeled and mounted by label and root always shows up as /dev/disk/by-label/LABEL and the rest are translated to /dev/sd[a-z]. I could be wrong but I think it's normal behavior. I have tried other linux distros which are mounted by label and they show the same thing. You can test it by using a LiveCD and mounting your root device by label.. it should show up translated to /dev/[hs]d[a-z], if I'm not mistaken.. Just some ideas, anyway.
Edit: Also, my external devices are always translated to /dev/sd[a-z], as well, when mounted by label.
Last edited by milomouse (2011-05-05 19:36:58)
Offline
Try examine and post here the output of
cfdisk
Last edited by nybegynner (2011-05-07 09:22:41)
Offline
Name Flags Part Type FS Type [Label] Size (MB)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Primary Free Space 1.05 *
sda1 Boot Primary ntfs [System Reserved] 104.86 *
sda2 Primary ntfs 31352.43 *
sda5 Logical ext4 [root] 15438.86 *
sda6 Logical reiserfs [var] 10256.93 *
sda7 Logical swap [swap] 1019.94 *
sda8 Logical ext4 [home] 261896.29 *
Pri/Log Free Space 2.62 *
I don't see anything unusual here, I think that milomouse is right, that what I get is normal behaviour. If anyone doesn't understand my problem: I just thought that when I use /dev/disk/by-label method in /etc/fstab, my partitions should be mounted as /dev/disk/by-label and not as /dev/sdxx. My system works fine, I thought that i missed something in configuration, but it looks like what I get is what I should get.
Offline