AOA AOA AOA Folding For Team 45 AOA Files Home Front Page Become an AOA Subscriber! UserCP Calendar Memberlist FAQ Search Forum Home


Go Back   AOA > Software > OS, Software, Firmware, and BIOS > Linux

Linux Questions and information concerning Linux

Reply
 
LinkBack Thread Tools Rate Thread
  #1 (permalink)  
Old 10th September, 2009, 02:02 PM
ThunderRd's Avatar
Irreverent Query Chairman
 
Join Date: June 2007
Location: Formerly NYC; now 17 years in northern Thailand
Posts: 1,230

extracting from an .iso

If I have a live cd or .iso of my install, how can I use it to extract a single directory?

For example, I've lost some files somehow in my /home directory, but I know they are in the .iso that I created with remastersys for restore purposes. I want to extract them from the .iso and copy them back to my install. Where/how do I find them and recover them without a full blown restore?
__________________
#1: Tt Armor, ASUS Maximus Extreme, Q6600@3.6G, 2G Corsair Dominator DDR3-1800, Tagan BZ900W, H2O by Swiftech, 2xLeadtek 9600GT, 2xRaptor 150G RAID0, Logitech G15/G5, XP SP3
#2: Tt Shark, ASUS A8N32-SLI Deluxe, Opteron 185@3.15G nude, 2G Corsair XMS, Tt ToughPower750, H2O by Tt, 2xASUS 8800GT, 2xRaptor 74G RAID0, Raptor 150G, Xubuntu 9.04, BFS Kernel
#3, #4: Opteron 170@2.75G nude, A8N-SLI Deluxe, Ubuntu 9.04.......#5: A64x2 4800+@2.8G.......#6-40: Pentium D 3.0G

AOA Folding @Home

Last edited by ThunderRd; 10th September, 2009 at 02:03 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 10th September, 2009, 02:24 PM
Gizmo's Avatar
Chief BBS Administrator
BassTeroids Champion, Global Player Champion, Aim & Fire Champion, Puzzle Maniax Champion, Othello Champion, Canyon Glider Champion, UFO Shoot Out Champion, Unicycle Challenge Champion, Zed Champion
 
Join Date: May 2003
Location: Webb City, Mo
Posts: 14,943
Send a message via ICQ to Gizmo Send a message via AIM to Gizmo Send a message via MSN to Gizmo Send a message via Yahoo to Gizmo Send a message via Skype™ to Gizmo

Just mount the CD? A lot of systems will mount it in /mnt/cd automatically when you insert it. For those that don't usually:

mount -t iso9660 /dev/sr0 /mnt/cd

will suffice. Note that you have to be root to use the mount command.

I <THINK> you can to the same thing with an iso image, just use the name of the iso image instead of the name of the device.
__________________
Avatar and sig graphic by Pitch. Subscribers!
Ask about a custom graphic or avatar today!
 
Later,
Gizmo
Thermal Diode Mod and Direct-Die Water Block
8-Cheetah 18GiB U-2 SCSI
MegaRAID Enterprise 1500/128MiB
Samsung SyncMaster 955DF
TTGI/Superflower TTS-520 PSU
 

 
AOA Team filesAOA Team wcgAOA Team fah
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 10th September, 2009, 02:51 PM
Member
 
Join Date: April 2005
Location: AZ
Posts: 2,171

I have always used loop. I make a directory lets say ~/iso and then

mount -o loop /path/to/***.iso ~/iso

Most of the time it will auto pickup the filesystem if it does not add -t iso9660 after loop.
__________________
Biostar TForce X58 - Core i7 920 - 6GB Corsair Dominator DDR3 - XFX 9800GTX 512MB - PCP&C 750W - 1 X 36GB Raptor, 1 X 200GB Sata2, 3 X 320GB Sata2 - Dual boot, Gentoo Linux/WinXP
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 10th September, 2009, 10:20 PM
ThunderRd's Avatar
Irreverent Query Chairman
 
Join Date: June 2007
Location: Formerly NYC; now 17 years in northern Thailand
Posts: 1,230

As always, you guys have given me the right answer to my question, but this time I didn't ask the right question...

I'm not at that box right now, but from memory-
I can mount the cd .iso in terminal, and/or can see the directory structure in Thunar. My problem is, it's a bootable cd and the data are arranged in casper, ISOLINUX, initrd.gz, etc.

Where do I actually go to find the /home directory that I know is somewhere on the CD, and then extract only it, so I can copy the files I need? Will what you have told me to do, do that?
__________________
#1: Tt Armor, ASUS Maximus Extreme, Q6600@3.6G, 2G Corsair Dominator DDR3-1800, Tagan BZ900W, H2O by Swiftech, 2xLeadtek 9600GT, 2xRaptor 150G RAID0, Logitech G15/G5, XP SP3
#2: Tt Shark, ASUS A8N32-SLI Deluxe, Opteron 185@3.15G nude, 2G Corsair XMS, Tt ToughPower750, H2O by Tt, 2xASUS 8800GT, 2xRaptor 74G RAID0, Raptor 150G, Xubuntu 9.04, BFS Kernel
#3, #4: Opteron 170@2.75G nude, A8N-SLI Deluxe, Ubuntu 9.04.......#5: A64x2 4800+@2.8G.......#6-40: Pentium D 3.0G

AOA Folding @Home
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 10th September, 2009, 10:29 PM
Member
 
Join Date: April 2005
Location: AZ
Posts: 2,171

Quote:
Originally Posted by ThunderRd View Post
As always, you guys have given me the right answer to my question, but this time I didn't ask the right question...

I'm not at that box right now, but from memory-
I can mount the cd .iso in terminal, and/or can see the directory structure in Thunar. My problem is, it's a bootable cd and the data are arranged in casper, ISOLINUX, initrd.gz, etc.

Where do I actually go to find the /home directory that I know is somewhere on the CD, and then extract only it, so I can copy the files I need? Will what you have told me to do, do that?
The directory structure should still be there, if it is a bootable backup type cd the directories are probably compressed so you may need to extract them.
__________________
Biostar TForce X58 - Core i7 920 - 6GB Corsair Dominator DDR3 - XFX 9800GTX 512MB - PCP&C 750W - 1 X 36GB Raptor, 1 X 200GB Sata2, 3 X 320GB Sata2 - Dual boot, Gentoo Linux/WinXP

Last edited by ccperf721p; 10th September, 2009 at 10:32 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 11th September, 2009, 02:49 AM
ThunderRd's Avatar
Irreverent Query Chairman
 
Join Date: June 2007
Location: Formerly NYC; now 17 years in northern Thailand
Posts: 1,230

My problem is I've tried to get into /casper/filesystem.squashfs and none of the syntax I have tried seems to work. I wonder if I need to recompile the kernel.
__________________
#1: Tt Armor, ASUS Maximus Extreme, Q6600@3.6G, 2G Corsair Dominator DDR3-1800, Tagan BZ900W, H2O by Swiftech, 2xLeadtek 9600GT, 2xRaptor 150G RAID0, Logitech G15/G5, XP SP3
#2: Tt Shark, ASUS A8N32-SLI Deluxe, Opteron 185@3.15G nude, 2G Corsair XMS, Tt ToughPower750, H2O by Tt, 2xASUS 8800GT, 2xRaptor 74G RAID0, Raptor 150G, Xubuntu 9.04, BFS Kernel
#3, #4: Opteron 170@2.75G nude, A8N-SLI Deluxe, Ubuntu 9.04.......#5: A64x2 4800+@2.8G.......#6-40: Pentium D 3.0G

AOA Folding @Home

Last edited by ThunderRd; 11th September, 2009 at 02:50 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 11th September, 2009, 03:39 AM
Áedán's Avatar
Chief Systems Administrator
 
Join Date: September 2001
Location: Europe
Posts: 12,248

You'd need to mount the squashfs file through the loop device too then, assuming that your kernel has the squashfs drivers.

Something like:

mount -t squashfs -o loop /casper/filesystem.squashfs /mnt/tmp

If your kernel doesn't have the squashfs drivers, you should be able to use your existing kernel source to enable and compile the squashfs module without having to recompile the whole kernel.
__________________

Last edited by Áedán; 11th September, 2009 at 04:20 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 11th September, 2009, 09:35 AM
ThunderRd's Avatar
Irreverent Query Chairman
 
Join Date: June 2007
Location: Formerly NYC; now 17 years in northern Thailand
Posts: 1,230

Quote:
Originally Posted by Áedán View Post
If your kernel doesn't have the squashfs drivers, you should be able to use your existing kernel source to enable and compile the squashfs module without having to recompile the whole kernel.
I think that's what I need to do. I probably deselected an option in the filesystems section when I built this kernel.

Will check tomorrow.
__________________
#1: Tt Armor, ASUS Maximus Extreme, Q6600@3.6G, 2G Corsair Dominator DDR3-1800, Tagan BZ900W, H2O by Swiftech, 2xLeadtek 9600GT, 2xRaptor 150G RAID0, Logitech G15/G5, XP SP3
#2: Tt Shark, ASUS A8N32-SLI Deluxe, Opteron 185@3.15G nude, 2G Corsair XMS, Tt ToughPower750, H2O by Tt, 2xASUS 8800GT, 2xRaptor 74G RAID0, Raptor 150G, Xubuntu 9.04, BFS Kernel
#3, #4: Opteron 170@2.75G nude, A8N-SLI Deluxe, Ubuntu 9.04.......#5: A64x2 4800+@2.8G.......#6-40: Pentium D 3.0G

AOA Folding @Home
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 12th September, 2009, 02:16 AM
ThunderRd's Avatar
Irreverent Query Chairman
 
Join Date: June 2007
Location: Formerly NYC; now 17 years in northern Thailand
Posts: 1,230

In my recent mucking about with kernels I must have deselected squashfs. I've booted to a generic kernel, got the files I needed, then compiled the module for my current default kernel. All is OK now.

Thanks for the help.
__________________
#1: Tt Armor, ASUS Maximus Extreme, Q6600@3.6G, 2G Corsair Dominator DDR3-1800, Tagan BZ900W, H2O by Swiftech, 2xLeadtek 9600GT, 2xRaptor 150G RAID0, Logitech G15/G5, XP SP3
#2: Tt Shark, ASUS A8N32-SLI Deluxe, Opteron 185@3.15G nude, 2G Corsair XMS, Tt ToughPower750, H2O by Tt, 2xASUS 8800GT, 2xRaptor 74G RAID0, Raptor 150G, Xubuntu 9.04, BFS Kernel
#3, #4: Opteron 170@2.75G nude, A8N-SLI Deluxe, Ubuntu 9.04.......#5: A64x2 4800+@2.8G.......#6-40: Pentium D 3.0G

AOA Folding @Home
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extracting Audio from a DVD robbie OS, Software, Firmware, and BIOS 6 27th November, 2005 12:32 PM


All times are GMT -5. The time now is 06:33 PM.


Copyright ©2001 - 2009, AOA Forums

Search Engine Friendly URLs by vBSEO 3.3.0