LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices

Reply
 
Search this Thread
Old 10-05-2012, 04:05 PM   #1
ZetaNet
LQ Newbie
 
Registered: Jun 2012
Posts: 13

Rep: Reputation: Disabled
Manual encrypted persistance file mount in Knoppix 7


I need to manualy mount my KNOPPIX-DATA.aes to any point that i can access
Mainly its to fix somethings that makes it unloadable
In bad case just to take my files
Amount of console work doesnt matter ^^
 
Old 10-05-2012, 04:54 PM   #2
Thor_2.0
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,210
Blog Entries: 23

Rep: Reputation: 279Reputation: 279Reputation: 279
Hi,

Knoppix is a good choice, Finnix anf TTYLinux as well, but, that's besides the point...

Steps I use

-insert the CDRom and a USB stick
-(re)start the system
-issue fdisk -l after "login"
-find the designation of the drives to be mounted
-issue mkdir /media/hd and mkdir /media/stick
-issue mount /dev/[drive] /media/hd (example mount /dev/sda1 /media/hd)
-issue mount /dev/[stick] /media/stick (example mount /dev/sdb1 /media/stick)
-issue mc (midnight commander, yes, that's still in there )
-save the files

snag....if the system is encrypted, I think you'll have a problem...I rarely encrypt systems, unless I have a rock-steady backup plan...

good luck

Thor
 
Old 10-06-2012, 04:28 AM   #3
ZetaNet
LQ Newbie
 
Registered: Jun 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
I just wanna reboot knoppix with no persistance
Go root
Make Dir at /mnt/data
And mount it there

I have it encrypted but i need this data
 
Old 10-07-2012, 05:31 AM   #4
Thor_2.0
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,210
Blog Entries: 23

Rep: Reputation: 279Reputation: 279Reputation: 279
No sweat...you've got the angles covered. This is the best way to go. Good luck. Just survived a sys-wide crash myself, still licking my wounds...

Oh, edit, to go root, issue this command in the shell

Quote:
su -
nothing more. Knoppix doesn't need a password, it's in run level 2 anyway.
It will present a menu, item 11 is the one you want, select it, and follow (something like) this

Quote:
su -
fdisk -l
mkdir /mnt/data
mount /dev/sda?? /mnt/data
cd /mnt/data
use fdisk to know the designation of the drive. you may have to use media instead:

Quote:
mount /dev/sda1 /media/data
...but the result is the same...

Thor

Last edited by Thor_2.0; 10-07-2012 at 05:36 AM.
 
Old 10-07-2012, 06:29 PM   #5
ZetaNet
LQ Newbie
 
Registered: Jun 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
I dont say i need to access my hard drive or what ever
I dont need to save my system on my harddrive

I used knoppix as my main distro for long time
I have all my stuff in the persistance file
Its encrypted, i wanna enter my password and mount it to some dir
 
Old 10-08-2012, 02:02 AM   #6
Thor_2.0
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,210
Blog Entries: 23

Rep: Reputation: 279Reputation: 279Reputation: 279
Same principle, same idea, same MO...believe me, you've got it covered.
Since you've got the password (I hope) the encryption shouldn't be a hurdle. I suspect the persistence file is on a stick somewhere...that means sticking it in the PC and mounting it. To find out WHAT to mount, issue fdisk -l after inserting the stick...then mount whatever you've got to your favourite folder...

Lemme (and all of us) know how this turns out...

Thor
 
Old 10-08-2012, 06:33 PM   #7
ZetaNet
LQ Newbie
 
Registered: Jun 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
root@Microknoppix:/mnt# mount /mnt-system/multiboot/knoppix/KNOPPIX/knoppix-data.aes /mnt/data
mount: you must specify the filesystem type

I think you dont understand that i have a usb and i got a file that is virtual device, and this device is encrypted

Its file not actual device
 
Old 10-09-2012, 03:21 AM   #8
Thor_2.0
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,210
Blog Entries: 23

Rep: Reputation: 279Reputation: 279Reputation: 279
Quote:
I think you dont understand that i have a usb and i got a file that is virtual device, and this device is encrypted
Yes, THAT was a "detail"...

try this (with everything plugged in)

Quote:
fdisk -l
als look at what that reports back as filesystem type, when in doubt, issue this:

Quote:
man fdisk
and go for the section that lists the filesystem types, remount with the -t option supplied:

mount -t [reported type] /mnt-system/multiboot/knoppix/KNOPPIX/knoppix-data.aes /mnt/data[/QUOTE]

I marked the extra bits for you...

The encryption, that will be a problem, though...

As a question of curiosity: how did you get to using Knoppix as a day to day OS? It's not really meant to be used like this, it's a rescue system...and a very good one at that. Is Knoppix the OS running? Eg : did you start the PC with it? The mount path seems strange...when I mount something, this is roughly what U do:

Quote:
su -
fdisk -l
mount /dev/sdX /media
That, with the Knoppix in the drive and nothing else, Knoppix is the runnign OS...

Thor

Last edited by Thor_2.0; 10-09-2012 at 03:22 AM.
 
Old 10-09-2012, 07:21 AM   #9
ZetaNet
LQ Newbie
 
Registered: Jun 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
That what it gave:
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000b0987

Device Boot Start End Blocks Id System
/dev/sda1 2048 4196351 2097152 83 Linux
/dev/sda2 * 4196352 109053951 52428800 7 HPFS/NTFS/exFAT
/dev/sda3 109055998 614655999 252800001 5 Extended
/dev/sda4 614656000 625141759 5242880 b W95 FAT32
/dev/sda5 109056000 130027519 10485760 82 Linux swap / Solaris
/dev/sda6 130029568 234887167 52428800 83 Linux
/dev/sda7 234889216 614655999 189883392 b W95 FAT32

Disk /dev/sdb: 15.9 GB, 15879634944 bytes
13 heads, 13 sectors/track, 183520 cylinders, total 31014912 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc3072e18

Device Boot Start End Blocks Id System
/dev/sdb1 * 8064 31014911 15503424 c W95 FAT32 (LBA)

Disk /dev/sdc: 7803 MB, 7803174912 bytes
255 heads, 63 sectors/track, 948 cylinders, total 15240576 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc3072e18

Device Boot Start End Blocks Id System
/dev/sdc1 * 2048 15239167 7618560 b W95 FAT32


And what i should mount from this?

I came to knoppix as main os several times when i didnt have os yet, or when windows didnt wanna boot

I reboot in knoppix, make persistance, try to fix windows or install gentoo, i fail, i start using knoppix as main os, it gets bigger
 
Old 10-10-2012, 07:37 PM   #10
ant_sh
LQ Newbie
 
Registered: Oct 2012
Posts: 1

Rep: Reputation: Disabled
manualy mount KNOPPIX-DATA.aes to any point

Try the following steps

(associate loop device)
# echo 'yourpassword' | losetup -e aes -p 0 /dev/loop6 /path/to/knoppix-data.aes
(Now you can use /dev/loop6)
# mount /dev/loop6 /where/you/want/to/mount/it

Once you are done,
(unmount)
# umount /dev/loop6
(destroy the loop device association of knoppix-data.aes)
# losetup -d /dev/loop6
 
  


Reply

Tags
aes, data, knoppix, manual, mount


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
manual mount cifs works but srcipt mount cifs has mount error (13): Permission denied CADIT Linux - Newbie 6 11-20-2009 02:48 PM
knoppix 5.1-- how to mount an encrypted partition? bezdomny Linux - Software 2 07-12-2008 11:19 PM
Knoppix Manual dte9021989 Linux - Software 2 06-12-2006 04:58 PM


All times are GMT -5. The time now is 09:05 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration