To check that alias you can execute the following command. Once we plug the USB device in the port, Linux will detect it as a new device and create its alias in /dev directory.
Here, the alias for the CD ROM is /dev/cdrom and the mount point is /mnt/CD. Mounting CD Drive # mount /dev/cdrom /mnt/CD When changing files permissions on the last step, you can also use the octal system i.e chmod +R 766 /mnt/data to give the group and other users read and write permissions. However, this package has been obsoleted and is no longer in use for Ubuntu versions 12.10 and later. Ensure to back up any data before conversion as this leads to formatting of the drive from one filesystem to another.Īnother way you can mount and change permissions on external drives is by using pysdm package. If you are using a drive in Vfat or FAT 32 filesystem, you'll need to convert it to ext4 using Gparted utility tool. This procedure will only work for an external drive formatted in ext4 format. mount -t ext4 -o rw /dev/sdb1 /mnt/dataĬhange permissions recursively i.e chmod + R a+rw /mnt/data The second step is to mount it to /mnt/data with read and write options.
If it's the only removable drive, you'll find that it's indicated as /dev/sdb1 Implying that it's the first partition of the second hard drive with a filesystem of FAT32. Run fdisk -l to find out the partition information of the flash drive. To grant other people access to the drive including all files and folders in the drive, run the following commands:įirst, create a mount point in the /media/ directory.