LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-12-2007, 02:29 AM   #1
squidhm3
LQ Newbie
 
Registered: Apr 2007
Location: Ohio
Distribution: Manjaro 17
Posts: 11

Rep: Reputation: 0
Question Knoppix Question


Probably a stupid question, but I wonder something - I run Knoppix off of cd at work and save my stuff to flash drive (writing config files to flash drive, and also made a permanent /home directory there, it's using a file called knoppix.img). My question is as follows: what if I want to get at the information in that img file while using another distro? Any ideas?
 
Old 04-12-2007, 07:24 AM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
You'd need to mount the flash drive. You may also need to read it as root.
 
Old 04-12-2007, 09:24 AM   #3
rangalo
Member
 
Registered: Jan 2005
Posts: 189

Rep: Reputation: 30
Hi squidhm3,

you need to have loop back support enabled in the kernel of another distro from where you want to access the files.

But I think most of the new kernels already come with loop devices enabled.

For reading the contents of the knoppix.img you need to do following.

1. Mount the usb stick
e.g.
Code:
# mount /mnt/sdb1 /mnt/usb
2. Copy the knoppix.img onto your hdd ( this is not really needed but I suggest to copy just to avoid confusion of double mounts)
e.g.
Code:
$ cp /mnt/usb/knoppix.img /home/user/knoppix.img
3. Create a mount point where you want to access the contents
e.g.
Code:
#mkdir /mnt/knoppixhome
4. Mount the img file with -o loop option
e.g.
Code:
mount -o loop /home/user/knoppix.img /mnt/knoppixhome
Now, you can access the file-structure under /mnt/knoppixhome

regards,
Hardik
 
Old 04-13-2007, 02:43 AM   #4
squidhm3
LQ Newbie
 
Registered: Apr 2007
Location: Ohio
Distribution: Manjaro 17
Posts: 11

Original Poster
Rep: Reputation: 0
TY Rangalo

I'll try that when I get home - I burned CentOS 4.4's live CD and it's working well (albeit a bit slower). I appreciate the info and let you know how it goes!
 
  


Reply



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
Knoppix 5.1.1 question... Robert Diggs Linux - Newbie 1 02-12-2007 03:38 PM
A question on Knoppix satimis Linux - Distributions 5 01-04-2006 03:37 AM
knoppix question Muahdib Linux - Distributions 1 04-08-2005 12:36 AM
knoppix question viniosity Linux - General 2 10-29-2003 02:10 PM
Knoppix Question? Gerardoj Linux - General 1 09-02-2003 05:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:18 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration