-
Re: Any way to mount and chroot a entire hard drive?

Originally Posted by
sk545
For example, i have this right now:
Code:
Device Boot Start End Blocks Id System
/dev/hda1 * 1 853 6851691 7 HPFS/NTFS
/dev/hda2 854 7860 56283727+ c W95 FAT32 (LBA)
/dev/hda3 7861 14946 56918295 5 Extended
/dev/hda5 7861 12115 34178256 83 Linux
/dev/hda6 12116 14824 21760011 83 Linux
/dev/hda7 14825 14946 979933+ 82 Linux swap
Am i able to do the following after booting from the knoppix cd?:
% mount /dev/hda /mnt/hda5
% chroot /mnt/hda5
I did try it, but i get some kind of 'bad superblocks or too many filesystems mounted error'.
I am able to mount partitions separately and chroot into them, like /dev/hda5, or /dev/hda6. Was wondering if i could do the whole drive as /dev/hda.
Thanks.
/edit: a thought just occured to me. It might be because of the windows partitions that it won't let me mount the whole drive. Am i right?
You are right in thinking /dev/hda is the ENTIRE drive but it cannot be mounted, only the filesystems under it.
In order to accomplish thiis you should mount the filesystem that holds the Linux system you are changing to - which looks like maybe it's /dev/hda5. Make sure you mount /dev/hda5 as a RW partition on the base system, chroot to it (i.e. chroot /mnt/hda5).
Now modify the chrooted Linux systems /etc/fstab file to mount the partitions under the new chrooted environment and issue the command This will mount all the partitions listed in the chrooted Linux's /etc/fstab.
Similar Threads
-
By ajonline in forum General Support
Replies: 9
Last Post: 04-05-2005, 01:14 AM
-
By Racer88 in forum General Support
Replies: 6
Last Post: 03-08-2005, 12:09 PM
-
By glidetothehoop in forum Hdd Install / Debian / Apt
Replies: 2
Last Post: 12-24-2004, 02:41 PM
-
By fourthirtysix in forum General Support
Replies: 0
Last Post: 05-24-2004, 03:24 AM
-
By Mycroft1855 in forum Customising & Remastering
Replies: 1
Last Post: 02-27-2003, 05:23 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Kingston 16GB DDR4 3200MHz PC4-3200AA-SA2-12 Laptop RAM SODIMM (HP32D4S2S8ME-16)
$64.99

16GB KIT (2x8GB) DDR4 Gamer Desktop RAM PC4 MIXED BRANDS
$65.00

SK Hynix 8GB 1Rx8 PC4-2400T (HMA81GU6AFR8N-UH) DDR4 Desktop ram
$25.99

Netac DDR4 32GB 16GB DDR4 3200MHz UDIMM C16 Desktop Internal Memory RAM Kit
$99.99
![[ BULK LOT OF 10 ] UNITS of 8GB DDR4 Laptop RAM SAMSUNG, HYNIX etc. picture](/store/img/g/IKQAAeSwEK9qv9TG/s-l225/-BULK-LOT-OF-10-UNITS-of-8GB-DDR4-Laptop-RAM-SAMSU.jpg)
[ BULK LOT OF 10 ] UNITS of 8GB DDR4 Laptop RAM SAMSUNG, HYNIX etc.
$299.99

Kingston HyperX Fury 32GB 2x16GB DDR4 RAM 3200MHz X2YH1K-MIE
$150.00

RAMAXEL Lenovo 32GB LPDDR5X CAMM2 7500MHz Laptop RAM | UNTESTED
$445.00

Lot 4 Samsung 64gb PC4-25600 2Rx4 DDR4-3200AA ECC RDIMM Reg Server Memory RAM
$2649.00

Corsair Vengeance DDR3 8GB 16GB 32GB 1866MHz PC3-14900 Desktop RAM Memory DIMM
$85.00

16GB ( 4X 4GB ) MEMORY DDR3 PC3-10600 1333MHz FOR DELL OPTIPLEX 790 780 990 980
$39.99