[ubuntu-za] Lost access to storage drive

Jan jan at verslank.net
Sat Feb 4 16:11:16 UTC 2017


Hello Wes,

Many thanks but where did I go wrong?

jan at jan-ESPRIMO-E5731:~$ ls -l /dev/disk/by-uuid/ | grep sdb1
lrwxrwxrwx 1 root root 10 Feb  4 17:55 
f3274a66-003b-4812-a2c2-cbd34426a509 -> ../../sdb1
jan at jan-ESPRIMO-E5731:~$ gksudo gedit /etc/fstab

** (gedit:2680): WARNING **: Set document metadata failed: Setting 
attribute metadata::gedit-spell-enabled not supported

** (gedit:2680): WARNING **: Set document metadata failed: Setting 
attribute metadata::gedit-encoding not supported

** (gedit:2680): WARNING **: Set document metadata failed: Setting 
attribute metadata::gedit-position not supported
jan at jan-ESPRIMO-E5731:~$ lrwxrwxrwx 1 root root 10 Feb  4 17:55 
f3274a66-003b-4812-a2c2-cbd34426a509 -> ../../sdb1
bash: ../../sdb1: Permission denied

.

On 04/02/2017 08:14, wesley werner wrote:
> Hi Jan,
>
> It does not look like you have a fstab entry for your second drive. It 
> might help to add one, this ensures the disk is mounted on boot.
>
> Since the other entries refer UUID let's do the same for your new 
> disk. Find the UUID of it like so:
>
>     ls -l /dev/disk/by-uuid/ | grep sdb1
>
> It is that long number that looks like 
> "c7c4041b-c5c3-45ec-9920-f90d7d42f7b9", and is unique to each disk.
>
> Then add this line to fstab (you can use gedit as root):
>
>     gksudo gedit /etc/fstab
>
> Add the line:
>
>     UUID=YOUR_UUID_HERE    /media/storage    auto    defaults 0 2
>
> Save and close gedit. Create the path where your disk will get mounted:
>
>     sudo mkdir /media/storage && sudo chown -R jan:jan /media/storage
>
> Finally mount it manually:
>
>     sudo mount -a
>
> Your disk should show under "storage". It should also mount on future 
> boot. I can't say if it will keep the name "mystoorplek", and any 
> shortcuts to the drive will need updating to the new path /media/storage.
>
> https://help.ubuntu.com/community/InstallingANewHardDrive#Create_A_Mount_Point 
>
>
> On 04/02/2017 07:02, Jan wrote:
>> # <file system> <mount point> <type> <options>       <dump>  <pass>
>> # / was on /dev/sdb1 during installation
>> UUID=c7c4041b-c5c3-45ec-9920-f90d7d42f7b9 /               ext4 
>> errors=remount-ro 0       1
>> # swap was on /dev/sdb5 during installation
>> UUID=cacaa4c3-a800-40ce-a159-192af760eb52 none            swap 
>> sw              0       0 
>
>




More information about the ubuntu-za mailing list