LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-09-2009, 12:41 PM   #1
akuhns
LQ Newbie
 
Registered: Jun 2009
Posts: 1

Rep: Reputation: 0
Mounting Bootable drive for file analysis


to the unix forum/guru's

Problem scope: I have a boot drive running Linux Red Hat Nash Version 4.2.1.8 . After loading the physical volumes the device hangs and never loads the first module of the Linux grub.

It appears that this file has lost/damaged in the init file.

Using a host computer(or bootable drive master) for this drive. Is there an easy way to mount and check the files/and substructure of this drive by mounting it in sdb so it will act like a standard tree/file in the shell.

I require the lines of the symbolic links and the mtab/fstab modifications. Only issue is I only want to modify these files in a temporary or need-to basis. A script/module for a ls -a directory tree structure for $sdb would be great.

thank you,
 
Old 09-09-2009, 03:28 PM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Hello akuhns,

you may boot your machine with a live-CD and the do a chroot into your system.
If your Linux is 32bit I'd recommend to use Slax. Otherwise there is a BW64 live-CD.
http://www.slax.org/
http://www.bluewhite64.com/live-dvd.html

Markus
 
Old 09-09-2009, 07:14 PM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,542
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Hi,

Welcome to LQ!

You can use any LiveCD to boot your system. Your install CD should allow you to open another terminal that you could use to create a mount point for the partition in question. Once mounted you could then do a 'chroot';

After you get to the login then from the cli (command line);

Code:
~#mkdir /MY_temp                   #temporary mount point
~#mount /dev/your_device /My_temp  #the device you installed to
~#chroot /My_temp                  #change to yours
You should be able to modify or edit whatever is needed on this filesystem.

You can 'man commands' in the above example to get a full understanding of the commands and options.
 
  


Reply


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
mounting network samba drive using cifs in /etc/rc.local file rioguia Linux - Server 2 09-09-2009 09:22 PM
Hard drive partition, mounting, and file system help needed please. nix-newb Linux - Hardware 4 11-02-2008 10:44 PM
Diagnostics on bootable CD to bootable thumb drive IsItFridayYet Linux - Newbie 15 10-12-2007 07:24 AM
Mounting usb pen drive file permssions problems linuxmandrake Debian 1 10-10-2005 08:21 PM
mounting parttions, other drive,and file systems dkc_ace Linux - General 3 01-06-2003 10:45 PM


All times are GMT -5. The time now is 06:27 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration