You are Here:
Linux Lite 5.0 Final is now available for download and installation



Need to authenticate before accessing internal drives

Author (Read 6091 times)

0 Members and 2 Guests are viewing this topic.

Re: Need to authenticate before accessing internal drives
« Reply #15 on: July 29, 2015, 07:49:36 PM »
 

paul1149

  • PayPal Supporter
  • I come here a lot
  • *****
  • 316
    Posts
  • Country: us
  • Reputation: 42
  • Enjoying Linux

  • Linux Lite: 3.6 64bit

  • CPU: C2D

  • MEMORY: 6Gb

  • VIDEO CARD: nVidia
Ok, bingo. I hadn't realized that lines in fstab must be contiguous, delimited only by tabs. Once I substituted tabs for spaces, and took out the spaces after the commas, I was in. Two folders were already mounted so I just rebooted to wipe the slate clean, and it's perfect now.


I did note that the UUIDs looked different from those of the ext4 partitions on the system, so I double checked and it is accurate.


If imgur is a hard and fast rule here let me know and I will comply. But I have to say that I detest the interface there. Postimage.org is so very simple. To get it to work one has to use the Direct Link, though, and then submit it to this forum's image insert facility.


Thanks so much for lending me your valuable time.


BTW, I installed LL on an HP netbook today. Went very well. Speaking of fstab, though, is it necessary to go through the TRIM procedure there and via command line for the sake of the SSD?


Paul
 


Re: Need to authenticate before accessing internal drives
« Reply #16 on: July 29, 2015, 07:56:34 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 7659
    Posts
  • Country: nz
  • Reputation: 723
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 5.0 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
fastb - glad it's working. Only reboot once the sudo mount -a stops producing errors. If you try to reboot on a broken fstab, you won't be able to boot your pc :(

Imgur - it's not a hard and fast rule, but it would have saved you and I some time. We always try to give the best advice for members :)

Trim SSD - use this command to check if Trim is supported:

Code: [Select]
sudo hdparm -I /dev/sda | grep "TRIM supported"
If it is, follow the guide in the Help Manual :) If you don't Trim, your SSD life will be reduced, so it's a must do given their cost.

Type carefully in the fstab and always check with sudo mount -a before rebooting :)
 

Re: Need to authenticate before accessing internal drives
« Reply #17 on: July 29, 2015, 08:03:07 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 7659
    Posts
  • Country: nz
  • Reputation: 723
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 5.0 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
Also re. postimage.org the quality is terrible:

Your image on postimage.org:



Same permissions tab on imgur.com:

 

Re: Need to authenticate before accessing internal drives
« Reply #18 on: July 29, 2015, 08:03:35 PM »
 

paul1149

  • PayPal Supporter
  • I come here a lot
  • *****
  • 316
    Posts
  • Country: us
  • Reputation: 42
  • Enjoying Linux

  • Linux Lite: 3.6 64bit

  • CPU: C2D

  • MEMORY: 6Gb

  • VIDEO CARD: nVidia
Thanks again. Yes, I did find out the hard way that fstab really is finicky. But it was easy to go in and edit it via the install disk.


I will continue then with postimage, but I will preview each post before sending it in.


Thanks for that TRIM command. I don't think I saw that in the manual, and will save it in my notes.


And thanks for your work on LL.


BW,
Paul
 

Re: Need to authenticate before accessing internal drives
« Reply #19 on: July 29, 2015, 08:05:15 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 7659
    Posts
  • Country: nz
  • Reputation: 723
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 5.0 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
You're welcome Paul. I cringe at your choice of postimage.org, but we can't force you not to use it.

Happy computing :)
 

Re: Need to authenticate before accessing internal drives
« Reply #20 on: July 29, 2015, 08:05:32 PM »
 

paul1149

  • PayPal Supporter
  • I come here a lot
  • *****
  • 316
    Posts
  • Country: us
  • Reputation: 42
  • Enjoying Linux

  • Linux Lite: 3.6 64bit

  • CPU: C2D

  • MEMORY: 6Gb

  • VIDEO CARD: nVidia
That is a good point about pic quality. I will look into that.




Ok, I'm an imgur convert...  8)
Last Edit: July 29, 2015, 08:12:00 PM by paul1149
 

Re: Need to authenticate before accessing internal drives
« Reply #21 on: July 29, 2015, 08:11:15 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 7659
    Posts
  • Country: nz
  • Reputation: 723
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 5.0 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
That is a good point about pic quality. I will look into that.

Thank you, it will certainly motivate people to help you more when you provide good quality, clear images :)
 

Re: Need to authenticate before accessing internal drives
« Reply #22 on: July 30, 2015, 12:13:49 AM »
 

N4RPS

  • Donator
  • Platinum Level Poster
  • **********
  • 1149
    Posts
  • Country: us
  • Reputation: 154
  • Knows JUST ENOUGH Linux to be DANGEROUS
    • Orphans for Christ, Self Advocates of Mecklenburg

  • Linux Lite: 2.6 64bit

  • CPU: Several Different 32-bit & 64-bit CPUs, 2-8 GB RAM

  • MEMORY: 8Gb

  • VIDEO CARD: Several Different AMD and Intel GPUs
Hello!

Trim SSD - use this command to check if Trim is supported:

Code: [Select]
sudo hdparm -I /dev/sda | grep "TRIM supported"
If it is, follow the guide in the Help Manual :) If you don't Trim, your SSD life will be reduced, so it's a must do given their cost.

Type carefully in the fstab and always check with sudo mount -a before rebooting :)

After carefully following the Help Manual instructions on how to do this, at the next reboot, booting stopped at this point:

"Starting Bridge socket events into upstart".

I had to restore from a backup to be able to boot again. This time, I skipped the log creation in rc.local, and it booted.

I thought I had typed all that verbatim, leaving out the partitions I didn't have. I only have one partition here, '/', to make things easier.

I'm not sure that the additional command in rc.local will work for me, but to reduce typos, can it be made to 'cut-and-paste'? I could then cut/paste it into a text editor to make my changes...

73 DE N4RPS
Rob
Last Edit: July 30, 2015, 01:08:53 AM by N4RPS


A gun in your hand is worth more than a whole police force on the phone.
 

Re: Need to authenticate before accessing internal drives
« Reply #23 on: July 30, 2015, 04:11:30 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 7659
    Posts
  • Country: nz
  • Reputation: 723
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 5.0 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
Here's my rc.local:

Code: [Select]
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

LOG=/var/log/trim.log
echo *** $(date -R) *** >> $LOG
fstrim -v /boot >> $LOG
fstrim -v / >> $LOG
fstrim -v /home >> $LOG
fstrim -v /sparessd >> $LOG
echo " " >> $LOG

exit 0
 

Re: Need to authenticate before accessing internal drives
« Reply #24 on: July 30, 2015, 05:54:20 AM »
 

N4RPS

  • Donator
  • Platinum Level Poster
  • **********
  • 1149
    Posts
  • Country: us
  • Reputation: 154
  • Knows JUST ENOUGH Linux to be DANGEROUS
    • Orphans for Christ, Self Advocates of Mecklenburg

  • Linux Lite: 2.6 64bit

  • CPU: Several Different 32-bit & 64-bit CPUs, 2-8 GB RAM

  • MEMORY: 8Gb

  • VIDEO CARD: Several Different AMD and Intel GPUs
Hello!

Thanks, Jerry. We'll give it another shot.

If it doesn't work for me again, it's no big deal. Redo and 25 minutes are all I need to be 'back on the air'. SSD + USB3 external HD = AWESOME!

73 DE N4RPS
Rob


A gun in your hand is worth more than a whole police force on the phone.
 

Re: Need to authenticate before accessing internal drives
« Reply #25 on: July 31, 2015, 02:50:37 PM »
 

Wirezfree

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1484
    Posts
  • Country: gb
  • Reputation: 404
  • Linux Lite "Advocate"

  • Linux Lite: 2.8 64bit

  • CPU: i7-4790S

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD4600 (Integrated)
The SSD Trim came up in one of my post's, can't find it.
Here's how I do trim on my SSD's, see the
"Using a daily cron job - recommended" method in this link

http://www.webupd8.org/2013/01/enable-trim-on-ssd-solid-state-drives.html

I read doing it in fstab causes a "trim" on each file delete, probably a bit excessive

Dave
Upgrades WIP 2.6 to 2.8 - (6 X 2.6 to 2.8 completed on: 20/02/16 All O.K )
Linux Lite 3.0 Humming on a ASRock N3070 Mobo ~ btrfs RAID 10 Install on 4 Disks :)

Computers Early days:
ZX Spectrum(1982) , HP-150 MS-DOS(1983) , Amstrad CPC464(1984) ,  BBC Micro B+64(1985) , My First PC HP-Vectra(1987)
 

Re: Need to authenticate before accessing internal drives
« Reply #26 on: July 31, 2015, 04:23:11 PM »
 

paul1149

  • PayPal Supporter
  • I come here a lot
  • *****
  • 316
    Posts
  • Country: us
  • Reputation: 42
  • Enjoying Linux

  • Linux Lite: 3.6 64bit

  • CPU: C2D

  • MEMORY: 6Gb

  • VIDEO CARD: nVidia
To my eye, this is a better method, not least because it has a positive test that it is working. But I'm stuck in this line:

Code: [Select]
gksu gedit /etc/cron.daily/trim
What is the equivalent of that in LL? Leafpad only creates a text file, rather than a script.

Thanks.
 

Re: Need to authenticate before accessing internal drives
« Reply #27 on: July 31, 2015, 04:50:14 PM »
 

Wirezfree

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1484
    Posts
  • Country: gb
  • Reputation: 404
  • Linux Lite "Advocate"

  • Linux Lite: 2.8 64bit

  • CPU: i7-4790S

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD4600 (Integrated)
Hi,

Use:
Code: [Select]
gksu leafpad /etc/cron.daily/trim
Leafpad is LL text editor
Upgrades WIP 2.6 to 2.8 - (6 X 2.6 to 2.8 completed on: 20/02/16 All O.K )
Linux Lite 3.0 Humming on a ASRock N3070 Mobo ~ btrfs RAID 10 Install on 4 Disks :)

Computers Early days:
ZX Spectrum(1982) , HP-150 MS-DOS(1983) , Amstrad CPC464(1984) ,  BBC Micro B+64(1985) , My First PC HP-Vectra(1987)
 

Re: Need to authenticate before accessing internal drives
« Reply #28 on: July 31, 2015, 05:07:56 PM »
 

paul1149

  • PayPal Supporter
  • I come here a lot
  • *****
  • 316
    Posts
  • Country: us
  • Reputation: 42
  • Enjoying Linux

  • Linux Lite: 3.6 64bit

  • CPU: C2D

  • MEMORY: 6Gb

  • VIDEO CARD: nVidia
Ok, I think I have it now. Will check the log in a few days to verify.

Thanks much.
 


Tags:
 


Linux Lite 5.0 Final is now available for download and installation