Tiny Core Linux
General TC => General TC Talk => Topic started by: Zendrael on July 07, 2014, 02:39:32 PM
-
Hi!
I'm just trying to set a fixed mount point for a USB pendrive. As the machine that Core is running on can have multiple pendrives attached and removed, I want a way to set a single one to be mounted on a specific location (or preserve its default location so no other USB will get its name).
Is there some way to do this?
Thanks
-
Mount by label instead of device.
-
Hi Mr. Gerald_clark!
Can I do it even with my device NOT appearing on /dev/disk/by-label/ ?
-
Label the filesystem.
-
You can use blkid to output the disk with a label. "blkid -lt LABEL=mylabel -o device"
-
Thank you Mr. Curaga and Mr. Gerald_Clark!
Everything is working ok now!
Got the device using
blkid -L MY_DEVICE_LABEL
then I mount it in the place that I want.
-
If you have installed util-linux
Just do:
mount -L mylabel my/mount/point
or add to /etc/fstab
"LABEL=mylabel my/mount/point auto defaults 0 0"
and issue a "mount /my/mount/point'
-
Thank you for your help Mr. Gerald_Clark!
I'm not loading the util-linux, so I kept up with my own shell script.
Thanks!