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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-05-2012, 04:05 PM
|
#1
|
LQ Newbie
Registered: Jun 2012
Posts: 13
Rep: 
|
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 ^^
|
|
|
10-05-2012, 04:54 PM
|
#2
|
Senior Member
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
|
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
|
|
|
10-06-2012, 04:28 AM
|
#3
|
LQ Newbie
Registered: Jun 2012
Posts: 13
Original Poster
Rep: 
|
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
|
|
|
10-07-2012, 05:31 AM
|
#4
|
Senior Member
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
|
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
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 ButterflyMelissa; 10-07-2012 at 05:36 AM.
|
|
|
10-07-2012, 06:29 PM
|
#5
|
LQ Newbie
Registered: Jun 2012
Posts: 13
Original Poster
Rep: 
|
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
|
|
|
10-08-2012, 02:02 AM
|
#6
|
Senior Member
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
|
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
|
|
|
10-08-2012, 06:33 PM
|
#7
|
LQ Newbie
Registered: Jun 2012
Posts: 13
Original Poster
Rep: 
|
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
|
|
|
10-09-2012, 03:21 AM
|
#8
|
Senior Member
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
|
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)
als look at what that reports back as filesystem type, when in doubt, issue this:
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 ButterflyMelissa; 10-09-2012 at 03:22 AM.
|
|
|
10-09-2012, 07:21 AM
|
#9
|
LQ Newbie
Registered: Jun 2012
Posts: 13
Original Poster
Rep: 
|
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
|
|
|
10-10-2012, 07:37 PM
|
#10
|
LQ Newbie
Registered: Oct 2012
Posts: 1
Rep: 
|
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
|
|
|
All times are GMT -5. The time now is 10:11 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|