Announcement

Collapse
No announcement yet.

First time ssd instalation :)

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • oshunluvr
    replied
    Uh, off topic and easily found on the internet?

    Leave a comment:


  • dmeyer
    replied
    Originally posted by calligrafan View Post
    In which delay will the next LTS version be (probably) published?
    Huh? The next LTS will be 14.04 in a year and a bit.

    Leave a comment:


  • calligrafan
    replied
    In which delay will the next LTS version be (probably) published?

    Leave a comment:


  • andystmartin
    replied
    The system crontab is found in the file /etc/crontab. It is not associated with a particular user. Thus, any of the "crontab -e" variations will not work edit this file. It is normally suggested that the system crontab file be left alone and that new crontab entries be put in the user crontab space.

    "sudo conrtab -e" will edit root's crontab file. This is probably what is wanted but it will not edit the system crontab file in /etc/crontab.

    Leave a comment:


  • james147
    replied
    Try:
    Code:
    kdesudo systemsettings
    Then see if you can edit the systems cron tab


    otherwise the commandline way is:
    Code:
    sudo crontab -e

    Leave a comment:


  • zahtar
    replied
    The task scheduler in system settings does not allow me to add tasks in system crons. So if I can't use sudo in personal crons, should I do it via command line?

    does the
    Code:
    sudo fstrim -v / > /var/log/trim_report.txt
    trim the entire ssd as a device or a specific partition? I have two partitions, / and /home.

    If I try to run the exact same command from the command line, it stops with "perimssion denied". Does not even ask for password (I guess that's what you meant about the tty thing)
    Last edited by zahtar; Feb 22, 2013, 03:58 AM.

    Leave a comment:


  • james147
    replied
    Don't use sudo in a cron job, if it is running as root then you don't need it, if it is not running as root then it will need authentication which it is not going to get without a tty.

    You should instead set up a system cron job as they run as root and so do not need sudo.

    Leave a comment:


  • zahtar
    replied
    Is it necessary to run the script often? I don't write (copy-move) large files that much. That's why running trim once a week sounded nice. I thought of Thursdays because there is a certain time that the pc will be probably on. But if not I can run the command manually anyway.

    Is it necessary to trim often regardless of the type of use I make? If so, the script sounds the proper idea. If not, then I think I can make do with the cron too.

    Leave a comment:


  • oshunluvr
    replied
    Re: the cron job command and the log file. The re-direct out to a file is ">" - this wipes out any existing file and replaces it with a new one. If you use ">>" this will add any new output to the end of the target file.

    Re trim at shutdown: There are a couple of ways to do this. My preference would be to create a script file here:

    /etc/rc0.d/K10fstrim.sh

    and put the trim commands in it without sudo. Make the script executable. Doing it this way differentiates shutdown from reboot. If you wanted it to occur on a reboot also, then copy the same script to /etc/rc6.d/.

    As far as only on Thursdays? I'm sure there's a way to do this using the "date" command. I'll have to think on it a bit.

    Leave a comment:


  • zahtar
    replied
    oshunluvr, good idea about the shut down, I do turn the pc off when not in use. Is it possible to configure it in certain shutdowns, for example the fisrt shutdown on Thursdays?

    dibl, this is a command that can be a cron job too, right? Will the trim reports replace the previous or create new files?

    thanks again

    Leave a comment:


  • oshunluvr
    replied
    Good point, dibl. Neater and more sensible in that location too.

    Leave a comment:


  • dibl
    replied
    Originally posted by oshunluvr View Post

    sudo fstrim -v / > /home/<USERNAME>/trim_report
    Great idea, except I'm afraid it's going to write the report into his home folder with root privileges, correct? Maybe better to do

    Code:
    sudo fstrim -v / > /var/log/trim_report.txt
    and then view it with kate or kwrite.

    Leave a comment:


  • oshunluvr
    replied
    fstrim works on the filesystem while it's mounted so it will fail if you try and run it on a device. While it's possible that fstrim will work without sudo on your personal home directory, I think sudo is required for any mount point your user doesn't have full access to. In short: leave sudo in.

    The only thing you might consider is adding some output to the command and sending it to a file so you can verify something was done.

    I think something like this would work:

    sudo fstrim -v / > /home/<USERNAME>/trim_report

    Another totally different option would be to run fstrim during boot up or at shutdown instead of as a cron job. The cron job is better if you tend to leave you system on all the time, but the bootup/shutdwon option might be better if you shutdown often.

    Leave a comment:


  • zahtar
    replied
    dmeyer, thanks for the video it is quite informative, even though I only saw part of it (15-20 mins after your timemark).

    I downloaded a package kde-config-corn and that showed me the Task Scheduler icon in system settings-> system administration. (I guess this is the KCM you mentioned which I could not find in muon)

    I added two personal crons, specified time & day, and I wanted to verify that the commands are correct:
    Code:
    sudo fstrim /
    sudo fstrim /home
    Have them currently disabled, just wanted to ask if that's the right thing to enter. I have two partitions in the ssd I want to trim (root + home). I noticed that the ssd is labeled sdb for some reason. Do I need to specify that the job should be done to sdb? Are they run as root or can I remove the sudo?

    Thanks in advance!

    Leave a comment:


  • dmeyer
    replied
    Originally posted by zahtar View Post
    Hmm, sounds nice! How can I do that?
    If you like GUIs you can install the Task Scheduler KCM for easy cron management. Else we can teach you about doing it from the command line.

    This video is great:
    http://youtu.be/HdKxH4uH9YE?t=36m47s
    Last edited by dmeyer; Feb 17, 2013, 05:31 PM. Reason: Added YouTube video link.

    Leave a comment:

Users Viewing This Topic

Collapse

There are 0 users viewing this topic.

Working...
X