View previous topic :: View next topic |
Author |
Message |
Gentree Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/1364161114417d616b9645b.jpg)
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Mon Jul 11, 2005 9:36 pm Post subject: mount outputting nonsense. |
|
|
I have a ~x86 system on a chroot
when I try listing any of the mount points I get an empty dir and when I try df they all seem to be somehow clones of the root mount device.
What's going on here?
Quote: | bash-3.00#df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda10 7785064 1894436 5890628 25% /
proc 7785064 1894436 5890628 25% /proc
sysfs 7785064 1894436 5890628 25% /sys
udev 7785064 1894436 5890628 25% /dev
devpts 7785064 1894436 5890628 25% /dev/pts
/dev/hda11 7785064 1894436 5890628 25% /wine
/dev/hda14 7785064 1894436 5890628 25% /iso
/dev/hda15 7785064 1894436 5890628 25% /tmpd
/dev/hda16 7785064 1894436 5890628 25% /rar
/dev/hda6 5113708 4246176 867532 84% /usr/portage
none 7785064 1894436 5890628 25% /dev/shm
df: `/proc/bus/usb': No such file or directory
/dev/hda3 7785064 1894436 5890628 25% /boot
/dev/hda5 7785064 1894436 5890628 25% /newsys
|
TIA Gentree. _________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54815 Location: 56N 3W
|
Posted: Mon Jul 11, 2005 9:54 pm Post subject: |
|
|
Gentree,
What does the partition table say?
and /etc/fstab ? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Headrush Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/111332295641fa913c28fea.jpg)
Joined: 06 Nov 2003 Posts: 5597 Location: Bizarro World
|
Posted: Mon Jul 11, 2005 10:06 pm Post subject: |
|
|
Did you bind the mount points into the chroot environment? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Gentree Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/1364161114417d616b9645b.jpg)
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Mon Jul 11, 2005 10:07 pm Post subject: |
|
|
Code: | bash-3.00#fdisk -lu /dev/hda
Disk /dev/hda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
Units = sectors of 1 * 512 = 512 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 63 4192964 2096451 7 HPFS/NTFS
/dev/hda2 4192965 9622934 2714985 b W95 FAT32
/dev/hda3 9622935 9735389 56227+ 83 Linux
/dev/hda4 9735390 234436544 112350577+ f W95 Ext'd (LBA)
/dev/hda5 9735516 26105624 8185054+ 83 Linux
/dev/hda6 26105688 36869174 5381743+ 83 Linux
/dev/hda7 36869238 49158899 6144831 83 Linux
/dev/hda8 49158963 62059094 6450066 83 Linux
/dev/hda9 62059158 63071189 506016 83 Linux
/dev/hda10 63071253 79457489 8193118+ 83 Linux
/dev/hda11 79457553 90108584 5325516 83 Linux
/dev/hda12 90108648 106494884 8193118+ 83 Linux
/dev/hda13 106494948 118784609 6144831 83 Linux
/dev/hda14 118784673 139267484 10241406 83 Linux
/dev/hda15 139267548 147460634 4096543+ 83 Linux
/dev/hda16 147460698 156296384 4417843+ 83 Linux
/dev/hda17 156296448 163846934 3775243+ 7 HPFS/NTFS
/dev/hda18 163846998 176120594 6136798+ 83 Linux
/dev/hda19 176120658 196587404 10233373+ 83 Linux
|
and
Code: | # /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:03:38 azarah Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.
# <fs> <mountpoint> <type> <opts> <dump/pass>
/dev/hda10 / reiser4 noatime 0 0
#hdc13:
/dev/hda5 /newsys reiserfs noatime,notail 0 1
#hdc15:
/dev/hda7 /broken-e3 ext3 noauto 0 1
/dev/hda8 /suse reiserfs notail 0 0
/dev/sda1 /voldport reiser4 noauto,noatime 0 0
/dev/hda3 /boot ext3 noatime 0 2
#/dev/hdc3 /boot ext3 noatime 0 2
#hdc12:
/dev/hda9 none swap sw 0 0
#hdc10,5,6,7.8.9
/dev/hda11 /wine ext3 defaults 0 0
#/dev/hda12 /home ext3 defaults 0 0
/dev/hda13 /cdimg ext3 noauto 0 0
/dev/hda14 /iso reiserfs noatime 0 0
/dev/hda15 /tmpd reiser4 noatime 0 0
/dev/hda16 /rar ext3 defaults 0 0
## end of clonage ##
#/dev/hda17 /ubu ext3 defaults 0 0
/dev/hda17 /win_G vfat noauto,noatime,user 0 0
/dev/hda18 /dvclone reiserfs notail 0 0
#hdc14:
/dev/hda6 /usr/portage reiser4 noatime 0 0
#/dev/hda6 /devsys/usr/portage reiser4 noatime,noauto 0 0
#/usr/portage /devsys/usr/portage auto defaults,bind 0 0
/dev/hda1 /win_C ntfs noauto,noatime,ro,user,umask=000 0 0
/dev/hda1 /win_capt captive-ntfs noauto,noatime,ro,user,umask=0777 0 0
/dev/hda2 /win_D vfat noauto,user,umask=000 0 0
#user accessible mounts
/dev/cdrom /mnt/cdrom iso9660 noauto,ro,user,unhide 0 0
/dev/cdrom1 /mnt/cdrom1 iso9660 noauto,ro,user,unhide 0 0
[ line 1/66 (1%), col 1/46 (2%), char 0/3071
/dev/dvd /mnt/dvd iso9660 noauto,noatime,user 0 0
/dev/fd0 /mnt/floppy vfat noauto,noatime,user,shortname=winnt 0 0
/dev/fd0 /mnt/fd msdos noauto,noatime,user 0 0
/dev/camera /mnt/fuji vfat ro,noauto,user,shortname=winnt 0 0
#for usb key:
/dev/sda1 /mnt/usb vfat user,noauto,user,shortname=winnt 0 0
# NOTE: The next line is critical for boot!
none /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:
none /dev/shm tmpfs defaults 0 0
|
Basically the same as the main system with /devsys swapped for / and a few commented out partitions.
Make sense?
Thx ![Cool 8)](images/smiles/icon_cool.gif) _________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Gentree Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/1364161114417d616b9645b.jpg)
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Mon Jul 11, 2005 10:34 pm Post subject: |
|
|
Headrush wrote: | Did you bind the mount points into the chroot environment? |
Only the one that works
Code: |
/dev/hda6 5113708 4645448 468260 91% /usr/portage |
That's presumably the problem but any chance you could explain the chrooted /etc/fstab does not take care of it?
Thanks. ![Cool 8)](images/smiles/icon_cool.gif) _________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Headrush Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/111332295641fa913c28fea.jpg)
Joined: 06 Nov 2003 Posts: 5597 Location: Bizarro World
|
Posted: Tue Jul 12, 2005 1:14 am Post subject: |
|
|
Gentree wrote: | That's presumably the problem but any chance you could explain the chrooted /etc/fstab does not take care of it? |
My guess is that the df command uses /etc/fstab or /etc/mtab to see what mount points exists.
It then uses that to determine which filesystem to lookup. Since they aren't mounted in your chroot, it repeats the value of /. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54815 Location: 56N 3W
|
Posted: Tue Jul 12, 2005 3:53 pm Post subject: |
|
|
Gentree,
Is mounting the same filesystem in two places intentional?
Code: | /dev/hda1 /win_C ntfs noauto,noatime,ro,user,umask=000 0 0
/dev/hda1 /win_capt captive-ntfs noauto,noatime,ro,user,umask=0777 0 0 |
Its not wrong but often the path to madness.
df shows the content of /etc/mtab which during an install is missing in the chroot and the command fails.
If its OK when you do the df from outside the chroot, its probably a 'feature'. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|