LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-11-2008, 06:28 PM   #1
deepclutch
Member
 
Registered: Nov 2004
Location: Kerala, India
Distribution: Debian Bookworm
Posts: 773
Blog Entries: 1

Rep: Reputation: 34
Smile chroot and co


chroot used to be able to show the o/p of fdisk -l etc earlier when I mount my ubuntu partition from livecd.now,with latest gutsy,I am not able to see the o/p of fdisk -l.
also,someone can help me regarding proper chroot sequence:
what I do is:
Code:
:~#chroot /mnt/ /bin/bash
Code:
:~#mount  /proc
Is this the way?I used to restore grub via this way.but now,grub or any other uses which wants to read partitions(fdisk ) fails reason been not able to read partition

what should I do?do I need to run udevtrigger in chroot?
also does below command helps?
Code:
mount --bind /dev /chroot/dev
Help please!

Last edited by deepclutch; 02-11-2008 at 06:30 PM.
 
Old 02-11-2008, 06:59 PM   #2
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 71
I always do it like this

mount -t proc proc /chroot/proc
mount --bind /dev /chroot/dev
chroot /chroot /bin/bash
 
Old 02-12-2008, 01:25 AM   #3
deepclutch
Member
 
Registered: Nov 2004
Location: Kerala, India
Distribution: Debian Bookworm
Posts: 773

Original Poster
Blog Entries: 1

Rep: Reputation: 34
^ah!gr8 thank you
 
  


Reply

Tags
chroot



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
chroot to run hd-installed distro's programs from chroot in live distro? silencestone Linux - Software 0 10-12-2007 06:29 AM
sudo /usr/bin/chroot /home/chroot /bin/su - xxx| /bin/su: user xxx does not exist saavik Linux - General 3 07-04-2007 10:30 AM
mount command not working in chroot. and now chroot not working mohit.jain Linux From Scratch 5 07-14-2006 03:57 AM
i need help with chroot Paxmaster Linux - General 1 04-04-2005 08:07 AM
Cannot 'chroot' dtournas Linux - General 5 05-17-2004 03:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:23 PM.

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