Linux Mount drive command
sudo mkdir /media/Data
2. Connect the drive to your PC and find the device name using
Code:
sudo fdisk -l
* I assume fdisk reports the new 250 GB volume as /dev/hdb1
3. Edit /etc/fstab
Code:
gksudo gedit /etc/fstab
4. Add this line to the end of the file
Code:
/dev/hdb1 /media/Data ext3 defaults 0 2
5. Save and Exit.
6. To mount the new partition, type
Code:
sudo mount -a
If this works, the partition should mount automatically next time you reboot.
7. /media/Data will be owned by root. If you would like to change that
Code:
sudo chown -R user_name:group_name /media/Data
Comments
Post a Comment
Thanks to write us