PDA

Bekijk de volledige versie : Mount via partition label



rj.2001
24-08-2008, 23:51
Hello,

today I test the V1.9.2.7-10 on my WL500gP.
And I trying to mount my flash discs via the fstab file.
This file looks:


#device or label Mountpoint FStype Options Dump Pass#
LABEL=swap none swap sw 0 0
LABEL=opt /opt ext3 rw 1 1
LABEL=harddisk /harddisk ext3 rw 1 1


But "swapon -a" says:

swapon: Can't stat 'LABEL=swap': No such file or directory

And mount -a says:

mount: Mounting device on or failed: No such file or directory
mount: Mounting LABEL=swap on none failed: No such file or directory
mount: Mounting LABEL=opt on /opt failed: No such file or directory
mount: Mounting LABEL=harddisk on /harddisk failed: No such file or directory

What I doing wrong?`
I think the mount and swapon doesn't accept the "LABEL=XYZ" instead "/dev/discs/disc1/part1"

I check also this fstab:


#device or label Mountpoint FStype Options Dump Pass#
LABEL=/swap none swap sw 0 0
LABEL=/opt /opt ext3 rw 1 1
LABEL=/harddisk /harddisk ext3 rw 1 1

Nothing... the same errors occurs!

If fstab can't mount via "LABEL=XYZ":
What can I do to mount my partitions via the partition label inclusive the swap partition?

The reason for that is: I use the 2 internal USBs (USB3 and USB4). O USB3 a 2GB stick is connected for swap and /opt (thats the plan). If the WL500gP comes up, the external USB devices are the first as /dev/discs/disc0 and the internal flash-stick is /dev/discs/disc1. If the device comes up without any external flash and/or hdd's, the internal flash-stick is /dev/discs/disc0.

Are you understand my problem?

Thanks for help!