LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux > 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

Tags used in this thread
Popular LQ Tags

Reply
 
Thread Tools
Old 02-11-2008, 07:28 PM   #1
deepclutch
Member
 
Registered: Nov 2004
Location: kerala,India
Distribution: Ubuntu Intrepid,Fedora 10
Posts: 645
Thanked: 0
Smile chroot and co


[Log in to get rid of this advertisement]
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 07:30 PM..
deepclutch is offline  
Tag This Post
Reply With Quote
Old 02-11-2008, 07:59 PM   #2
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896
Thanked: 52
I always do it like this

mount -t proc proc /chroot/proc
mount --bind /dev /chroot/dev
chroot /chroot /bin/bash
Uncle_Theodore is offline     Reply With Quote
Old 02-12-2008, 02:25 AM   #3
deepclutch
Member
 
Registered: Nov 2004
Location: kerala,India
Distribution: Ubuntu Intrepid,Fedora 10
Posts: 645
Thanked: 0

Original Poster
^ah!gr8 thank you
deepclutch is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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-13-2007 03:45 PM
sudo /usr/bin/chroot /home/chroot /bin/su - xxx| /bin/su: user xxx does not exist saavik Linux - General 3 07-04-2007 11:30 AM
mount command not working in chroot. and now chroot not working mohit.jain Linux From Scratch 5 07-14-2006 04:57 AM
i need help with chroot Paxmaster Linux - General 1 04-04-2005 09:07 AM
Cannot 'chroot' dtournas Linux - General 5 05-17-2004 04:34 AM


All times are GMT -5. The time now is 08:28 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration