Hello...


John R. Jackson wrote:

>> From amcheck:
>> ...
>>      Amanda Backup Client Hosts Check
>> --------------------------------
>> ERROR: dev: [can not access /dev/root (/): No such file or directory]
>> ...
>> From disklist:
>> ...
>> dev             /               my-type-inc
> 
> 
> First question, what's wrong with this?  Is "/" mounted from "/dev/root"?
> If so, then Amanda did the right thing and you need to change the
> permissions on /dev/root.



---from Jean:
The problem is that /proc/mounts list /dev/root as the device
for /, but /dev/root doesn't exist.

Could you try this patch. If the device doesn't exist, it will take
the entry from /etc/mtab.

Jean-Louis

------end from

( I'll try the patch tomorrow night )



[chrismcc@dev chrismcc]$ cd /proc/

[chrismcc@dev /proc]$ cat mounts
/dev/root / ext2 rw 0 0
/proc /proc proc rw 0 0
/dev/sda1 /boot ext2 rw 0 0
/dev/sdb1 /usr/local ext2 rw 0 0
none /dev/pts devpts rw 0 0

[chrismcc@dev /proc]$ ls -l /dev/root
ls: /dev/root: No such file or directory

[chrismcc@dev /proc]$ mount
/dev/sda6 on / type ext2 (rw)
/dev/sda1 on /boot type ext2 (rw)
/dev/sdb1 on /usr/local type ext2 (rw)
...
/etc/fstab:
/dev/sda6 
/
/dev/sda1 
/boot
/dev/sdb1 
/usr/local


Disclaimer:  I'm primarily a sysadmin, not a C programmer.

I poked around.  Look at mount_guess_rootdev.c from util-linux-2.10r. 
It does something from (basically) cat /proc/cmdline and look at root=xxx.


[chrismcc@dev mount]$ cat /proc/cmdline
auto BOOT_IMAGE=linux ro root=806

[chrismcc@dev mount]$ ls -l /dev/sda6
brw-rw----   1 root     disk       8,   6 Dec 28 16:36 /dev/sda6






> 
> This says that when Amanda asked the OS (via getmntent) what the device
> was for "/" it got back "/dev/root".  So if that's not right, you need
> to find out where that's coming from and change it.
> 
> As I recall, I put in a change at 2.4.2p1 to deal with the Linux disk
> label stuff, so it may be coming from there rather than /etc/fstab.
> Do a "cat /proc/mounts" to see what Amanda sees (as I recall).
> 
> 
>> Christopher McCrory
> 
> 
> John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]


-- 

Christopher McCrory
"The guy that keeps the servers running"
[EMAIL PROTECTED]
http://www.pricegrabber.com

"Linux: Because rebooting is for adding new hardware"

Reply via email to