10-05-2018, 08:28 AM
(This post was last modified: 10-05-2018, 08:37 AM by DeepThought.)
[member=8136]Tyrannocaster[/member] The only way I can think of is to use gparted and change/add a label to the drive. This can be done without affecting the contents of the drive....
Open gparted and select the drive you want to change, right-click on the drive and choose unmount(if it is still mounted). Then right-click and select "label file system", choose a unique name and apply. Click out of gparted and remount the drive and all should be better
[member=411]bitsnpcs[/member] an interesting idea but I don't think it's possible to use an alias the way you described unless the alias is used to launch a more complicated bash script.
Helpful info:https://www.thegeekstuff.com/2013/01/mou...ce=tuicool
At it's most basic the command is:
To be able to read/write the command would be:
where type would be the filesystem, ext2/3/4, ntfs, fat etc.
So the alias would need to identify the device (/dev/hda*, /dev/sda* etc), identify or create a mountpoint, identify the filesystem.....
So all of a sudden you're in the realms of a full-blown mount/umount bash script, while when using fdisk -l you can identify the device and filesystem, then create a mountpoint and mount the drive manually in a few minutes.
Hope this helps
Open gparted and select the drive you want to change, right-click on the drive and choose unmount(if it is still mounted). Then right-click and select "label file system", choose a unique name and apply. Click out of gparted and remount the drive and all should be better
[member=411]bitsnpcs[/member] an interesting idea but I don't think it's possible to use an alias the way you described unless the alias is used to launch a more complicated bash script.
Helpful info:https://www.thegeekstuff.com/2013/01/mou...ce=tuicool
At it's most basic the command is:
Code:
sudo mount <device> <mountpoint> e.g. sudo mount /dev/cdrom /mnt
To be able to read/write the command would be:
Code:
mount -t type <device> <mountpoint>
So the alias would need to identify the device (/dev/hda*, /dev/sda* etc), identify or create a mountpoint, identify the filesystem.....
So all of a sudden you're in the realms of a full-blown mount/umount bash script, while when using fdisk -l you can identify the device and filesystem, then create a mountpoint and mount the drive manually in a few minutes.
Hope this helps
Owner and DJ at WKDfm Radio ( www.wkdfm.co.uk )