Results 1 to 7 of 7

Thread: restart power off time

  1. #1
    Join Date
    Oct 2009
    Beans
    99

    restart power off time

    Hi, I have a multi-boot setup with two external USB HDs. One external hard drive takes a long time to power off[10 to 15sec]? If not power off competly on a restart, it will send me to grub rescue[device not present?] Can I increase the time that the computer is powered off during a restart? Right now I have do a shutdown, wait, and power back on. I am on Ubuntu 13.10 64b right now. I can use the terminal, but do need good complete instructions. This is a testing system, so I can breck it. Thank you for any help. Colin.

  2. #2
    Join Date
    Apr 2011
    Location
    3rd Rock from the Sun
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: restart power off time

    Some Ext. USB HDD do take up time to poweroff. Usually this happens if some application or another is using it and/or if data is being written to it. If its a NTFS file system them perhaps you can run 'defragmentation'.
    Does this Ext.HDD have an OS on it?
    If its sending you to the 'grub rescue' then your BIOS settings are perhaps set to boot USB devices first.... you can fix it by changing the HDD boot order in the BIOS to boot your OS/Grub installed HDD first.
    "Evolution is Nature's way of issuing upgrades."

  3. #3
    Join Date
    Oct 2009
    Beans
    99

    Re: restart power off time

    It has bootable Linux OSs on it and it is EXT4. Was just wondering if there is a config file or something to change the time out on restart. Next restart will check check BIOS, but I think it is setup to boot internal HD first.

  4. #4
    Join Date
    Feb 2007
    Location
    West Hills CA
    Beans
    8,207
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: restart power off time

    You can also use acpitool to keep power to the USB bus after the laptop shuts down. That allows the disk drive's USB and controller to keep power going to flush the cache and finish writing any data.

    You can also add some wait statements to the shutdown scripts to allow more time for the disk to spin down. It's possible that the USB drive or the way you have it mounted (any additional /etc/fstab mounts?) are preventing the drive from unmounting. An unclean shutdown will leave errors on the disk which require an fsck on the next reboot.
    -------------------------------------
    Oooh Shiny: PopularPages

    Unumquodque potest reparantur. Patientia sit virtus.

  5. #5
    Join Date
    Oct 2009
    Beans
    99

    Re: restart power off time

    Hi, I think maybe your wait statments might be what I am looking for. I just need them for the restart button, since it seems to power up the laptop, before the hard drive has a chance to stop. The hard drive is a Seagate 1TB, and is only mounted by the OS at the time. Unfortunalty I am only good with copy and paste for the terminal, and have no idea where to find the shutdown scripts or what to change in them. As I said before I am looking for a way to delay the power on time when using the restart button. Thank you. Colin.

  6. #6
    Join Date
    Feb 2007
    Location
    West Hills CA
    Beans
    8,207
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: restart power off time

    Then you will want to become an expert in upstart: https://help.ubuntu.com/community/UpstartHowto

    Rebooting is typically done by setting the runlevel to 6 using:

    Code:
    telinit 6
    The scripts that are executed are normally located in /etc/rc6.d.

    Putting sleep 30 in any of those scripts would slow down the shutdown process. You want to investigate the last scripts to be executed.
    -------------------------------------
    Oooh Shiny: PopularPages

    Unumquodque potest reparantur. Patientia sit virtus.

  7. #7
    Join Date
    Oct 2009
    Beans
    99

    Re: restart power off time

    I think I will leave well enough alone, before I make a big mess. Powering off instead of using restart button is looking good. Thank you for your help and time. Colin.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •