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

Re: Difficulty mounting ext3 partitions with labels...



Hi,

Found the answer to my own above question by examining e2fsprogs source
(didn't think to make devfs connection), thus replying to myself for benefit
of list archives.  Quoting from Richard Gooch's devfs FAQ:

Mount by volume LABEL=<label> doesn't work with devfs

Most probably you are not mounting devfs onto /dev. What happens is that if
your kernel config has CONFIG_DEVFS_FS=y then the contents of
/proc/partitions will have the devfs names (such as
scsi/host0/bus0/target0/lun0/part1). The contents of /proc/partitions are
used by mount(8) when mounting by volume label. If devfs is not mounted on
/dev, then mount(8) will fail to find devices. The solution is to make sure
that devfs is mounted on /dev. See above for how to do that.

Take care,
Daniel

On Wed, May 29, 2002, Daniel Freedman wrote:
> 
> Hi,
> 
> I'm having trouble mounting my ext3 partitions by referencing their labels.
> The transcript below details the situation.  Also, please note, I've tried
> the same procedure mounting these partitions as ext2, and also naming them
> with labels that don't have the leading slash (in case the label code can't
> handle that, though I believe it should be able to).  I can't find anything
> wrong with the following from either manpages or online documentation, and
> would very much appreciate any guidance.
> 
> Thanks so much,
> Daniel
> 
> 
> 
> littlebird:~# mount -l
> /dev/hda5 on / type ext3 (rw,errors=remount-ro)
> proc on /proc type proc (rw)
> devpts on /dev/pts type devpts (rw,gid=5,mode=620)
> /dev/hda6 on /boot type ext3 (rw)
> /dev/hda7 on /usr type ext3 (rw)
> /dev/hda9 on /var type ext3 (rw)
> tmpfs on /tmp type tmpfs (rw)
> littlebird:~# e2label /dev/hda8
> /home
> littlebird:~# tune2fs -l /dev/hda8 | grep -C2 name
> tune2fs 1.27 (8-Mar-2002)
> Filesystem volume name:   /home
> Last mounted on:          <not available>
> Filesystem UUID:          4d8058ae-xxxx-xxxx-xxxx-9dd6712b923a
> littlebird:~# mount -L /home /home
> mount: no such partition found
> littlebird:~# mount -U 4d8058ae-xxxx-xxxx-xxxx-9dd6712b923a /home
> mount: no such partition found
> littlebird:~# mount /dev/hda8 /home
> kjournald starting.  Commit interval 5 seconds
> EXT3 FS 2.4-0.9.17, 10 Jan 2002 on ide0(3,8), internal journal
> EXT3-fs: mounted filesystem with ordered data mode.
> littlebird:~# cat /proc/partitions 
> major minor  #blocks  name
> 
>    3     0    9820440 ide/host0/bus0/target0/lun0/disc
>    3     1          1 ide/host0/bus0/target0/lun0/part1
>    3     5     491337 ide/host0/bus0/target0/lun0/part5
>    3     6      98248 ide/host0/bus0/target0/lun0/part6
>    3     7    4883728 ide/host0/bus0/target0/lun0/part7
>    3     8    1950448 ide/host0/bus0/target0/lun0/part8
>    3     9     975208 ide/host0/bus0/target0/lun0/part9
>    3    10    1421248 ide/host0/bus0/target0/lun0/part10
> littlebird:~# mount -V
> mount: mount-2.11n
> littlebird:~# uname -a
> Linux littlebird 2.4.18-686 #1 Sun Apr 14 11:32:47 EST 2002 i686 unknown
> littlebird:~# 
> 
> 
> 
> -- 
> Daniel A. Freedman
> Laboratory for Atomic and Solid State Physics
> Department of Physics
> Cornell University

-- 
Daniel A. Freedman
Laboratory for Atomic and Solid State Physics
Department of Physics
Cornell University


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: