Results 1 to 9 of 9

Thread: how to create scrip for mount partition bitlocker?

  1. #1
    Join Date
    Apr 2015
    Location
    The Earth
    Posts
    498

    Default how to create scrip for mount partition bitlocker?

    I want create scrip for mount partition bit locker.
    for mount bitlocker i type this commands
    : /tmp$ sudo dislocker -v -V /dev/sdb1 -p000000-000000-000000-000000-000000-000000-000000-000000 -- /mnt/tmp
    : /tmp$ ls /mnt/tmp
    : /tmp$ sudo mount -o loop,rw /mnt/tmp/dislocker-file /mnt/disk
    : /tmp$ ls /mnt/disk/

    I want after create script mount just one click not write commands again and add scrip for running startup
    how to create scrip for mount partition bitlocker?
    Dual-boot openSUSE and win10
    OpenSUSE Tumbleweed ; Plasma 5.15.x:" LVM encrypted"
    My Partition: GPT and UEFI system
    Hp ProBook 450 G1

  2. #2
    Join Date
    Apr 2015
    Location
    The Earth
    Posts
    498

    Default Re: how to create scrip for mount partition bitlocker?

    forget this command =======/tmp$ sudo dislocker -v -V /dev/sda9
    Dual-boot openSUSE and win10
    OpenSUSE Tumbleweed ; Plasma 5.15.x:" LVM encrypted"
    My Partition: GPT and UEFI system
    Hp ProBook 450 G1

  3. #3
    Join Date
    Oct 2008
    Location
    Glasgow, Scotland
    Posts
    1,134

    Default Re: how to create scrip for mount partition bitlocker?

    Quote Originally Posted by 123thinksuse View Post
    I want after create script mount just one click not write commands again and add scrip for running startup
    how to create scrip for mount partition bitlocker?
    I am not sure what you are trying to do. Is the bitlocked partition no a fixed or removable hard drive?

    If this is a fixed drive partition, then do you wish to mount the decrypted filesystem in e.g. /mnt/disk at boot time?

    A simple way would be to create the script (without the sudos) in e.g. /usr/loca/bin (make it executable), and then add a "@reboot" entry for it in root's crontab.
    ~Thank you for sharing an interesting problem.
    --
    slàinte mhath,
    rayH

  4. #4
    Join Date
    Apr 2015
    Location
    The Earth
    Posts
    498

    Default Re: how to create scrip for mount partition bitlocker?

    I want to put the commands in a file(script)
    Commands placed in a script and runing when. Boot system

    And boot the system to be implemented

  5. #5
    Join Date
    Oct 2008
    Location
    Glasgow, Scotland
    Posts
    1,134

    Default Re: how to create scrip for mount partition bitlocker?

    Quote Originally Posted by 123thinksuse View Post
    And boot the system to be implemented
    I am sorry, but I do not fully understand. If the commands that you posted work,then use any text editor (I use vim) to create a file e.g. /usr/local/bin/mount-dislocked-1 containing the following:
    Code:
    #! /bin/bash
    
    ##  or /bin/dash if preferred and installed
    ##  mount-dislocked-1
    
    bitloked="/dev/sdb1"
    mountpoint="/mnt/disk"
    
    if [ "$mountpoint/" ] ;then mkdir -p "$mountpoint/" ; fi chmod a+x $mountpoint 
    
    dislocker -v -V $bitloked  -p000000-000000-000000-000000-000000-000000-000000-000000 -- /mnt/tmp
      
    mount -o loop,rw /mnt/tmp/dislocker-file /mnt/disk
    
    # no liability for errors accepted.#
    Code:
    > sudo chmod u+x /usr/local/bin/mount-dislocked-1
    
    > sudo crontab -u root -e
    and add the line:
    Code:
    @reboot  /usr/local/bin/mount-dislocked-1
    No guarantees,but it might get yuo started.#
    ~Thank you for sharing an interesting problem.
    --
    slàinte mhath,
    rayH

  6. #6
    Join Date
    Apr 2015
    Location
    The Earth
    Posts
    498

    Default Re: how to create scrip for mount partition bitlocker?

    • i am sorry
    • I want make script for mount partition bitlocker
      I want to put the commands in a file(Commands placed in a script )
      And boot the system to be implemented
      please re-make script
      this is my commands for make script
      Code:
      >su
      # dislocker -v -V /dev/sda9
      # cd  /mnt/tmp
      #dislocker -v -V /dev/sda9 -p451891-000000-000000-000000-000000-000000-000000-000000 -- /mnt/tmp
      #mount -o loop,rw /mnt/tmp/dislocker-file /mnt/disk
    Dual-boot openSUSE and win10
    OpenSUSE Tumbleweed ; Plasma 5.15.x:" LVM encrypted"
    My Partition: GPT and UEFI system
    Hp ProBook 450 G1

  7. #7
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,066

    Default Re: how to create scrip for mount partition bitlocker?

    On Thu, 19 Nov 2015 17:06:01 +0000, 123thinksuse wrote:

    > And boot the system to be implemented
    > please re-make script this is my commands for make script


    Put the commands in a text file that has:

    #!/bin/bash

    as the first line. Script created.

    Jim



    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

  8. #8
    Join Date
    Apr 2015
    Location
    The Earth
    Posts
    498

    Default Re: how to create scrip for mount partition bitlocker?

    Quote Originally Posted by eng-int;2738419
    A simple way would be to create the script (without the sudos) in e.g. [I
    /usr/loca/bin[/I] (make it executable), and then add a "@reboot" entry for it in root's crontab.
    Thanks for help
    I can create script but runing my script with
    Code:
     
    Sudo ./test
    I wan add script on the startup
    I added. Systemsettings5->autostart but not runing in the startup system
    How to runing in startup?
    Dual-boot openSUSE and win10
    OpenSUSE Tumbleweed ; Plasma 5.15.x:" LVM encrypted"
    My Partition: GPT and UEFI system
    Hp ProBook 450 G1

  9. #9
    Join Date
    Apr 2015
    Location
    The Earth
    Posts
    498

    Default Re: how to create scrip for mount partition bitlocker?

    Replace sudo with into script
    Code:
    echo "my password" | sudo -S
    your command
    Now working startup
    Thanks to all
    Special thanks eng-int
    Dual-boot openSUSE and win10
    OpenSUSE Tumbleweed ; Plasma 5.15.x:" LVM encrypted"
    My Partition: GPT and UEFI system
    Hp ProBook 450 G1

Posting Permissions

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