MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
/dev/ide/host0/bus0/target0/lun0/part3 on / type ext3 (rw)
none on /proc type proc (rw)
none on /proc/bus/usb type usbfs (rw)
none on /dev type devfs (rw)
none on /sys type sysfs (rw)
/dev/ide/host0/bus0/target0/lun0/part1 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,mode=0620)
/dev/ide/host0/bus1/target0/lun0/part1 on /mnt/removable type ext3 (rw)
--------------------------------
cat /proc/diskstats shows;
I've removed /etc/mtab and rebooted, nothing changes.
I'm running Mandrake 10, I just added hdb and the fs is ext3. It is mounted in the right location (proper mount point) and I have full access to it, without any problems, even through Samba from another machine. So, it really is there.
Summary, everything works the way it should right now, except for the 'df' command.
Why doesn't the 'df' command show it?
And jut as important, how do I fix this?
It is mounted in the right location (proper mount point) and I have full access to it, without any problems, even through Samba from another machine.
Are you sure?
Both mtab and mount show it is not mounted...and df will not show free space for partitions which are not mounted. The better question is why are you trying to mount it twice to different mount points?
Code:
/dev/ide/host0/bus0/target1/lun0/part1 /mnt/hd auto umask=0,user,iocharset=iso8859-1,kudzu,codepage=850,noauto,exec 0 0
... snip ...
/dev/hdb1 /mnt/drive2 auto umask=0,user,iocharset=iso8859-1,kudzu,codepage=850,noauto,exec 0 0
These are the same drive and partition. Remove one and perhaps your problem will clear up...
Thanks for the reply. Hopefully, I can learn something now.
If I remove the line '/dev/ide/host0/bus0/target1/lun0/part1 /mnt/hd auto umask=0' and reboot, that line gets put back into fstab automatically when the system comes back up.
From where does this happen? Or, what is happening here?
If I remove the line '/dev/hdb1 /mnt/drive2 auto umask=0,user,iocharset=iso8859' , it now becomes very strange....
If I go to /mnt/hd, and do an 'ls', nothing shows up.
I can go to /mnt/drive2, even though there is nothing in the fstab file and see everything on that disk. It IS mounted, but how?
Also, with the line '/dev/hdb1 /mnt/drive2 auto umask=0,user,iocharset=iso8859' removed, 'df' still doesn't show any hdb drive of any sort.
Any further suggestions? Also if you know why the one line gets put back in automatically, maybe you can tell me what to look for. I can't find anything on Mandrake site or google for this problem.
p.s. Again, mtab and mount show it is not mounted, so how am I able to access it at /mnt/drive2 mount point?
Are you sure you posted accurate output of those commands? Because nowhere is /dev/hdb mounted,
nor is any disk mounted at /mnt/drive2. The only thing that I can think of is that the files you see at
/mnt/drive2 are physically located on the partition you mounted as root, /dev/hda3. Or maybe
your computer is possessed.
As for the two different lines in fstab, the /dev/hdb1 line is the standard way to specify mounts, and the
/dev/ide/host0/bus0/target1/lun0/part1 line is DevFS notation. I am not familiar with Mandrake, but I would
imagine that your system uses, or is trying to use DevFS, and some script run at boot is starting the
devfsd daemon. I would not try tinkering with your devfs settings unless someone more
knowlegable than myself can assist you.
If you have a question ask, but unfortunately I don't know what to tell you.
'Bus0/target1/lun0/part1 /mnt/hd' *should* be the 2nd drive that I'm trying to mount. This *should* be hdb by the old standard way of mounting drives. If I goto /mnt/hd and do 'ls', nothing shows up. If I do 'df' that drive doesn't show up.
When I added the new 2nd drive, hdb, I went into fdisk, then called up 'harddrake' from the system menu to make the file system and tell it the mount point. After that, fstab showed the added line of '/dev/hdb1 /mnt/drive2 auto umask=0,user,iocharset=iso8859-1,kudzu,codepage=850,noauto,exec 0 0'.
With both of those line in fstab, 'df' still did not show anything more than what it shows above.
Why would Mandrake put in two different lines in fstab in different formats to begin with ?
What did Mandrake's devfs mount at /mnt/hd ?
And, why doesn't 'df' show anything mounted at 'dev/ide/host0/bus0/target1' ?
Can you see why I'm confused?
Mandrake does use devfsd and the /etc/devfsd.conf file show this snip for setting up the hard disks at bootup:
---------------------------------------------
# If you have removable media and want to force media revalidation when looking
# up new or old compatibility names, uncomment the following lines
# SCSI NEWCOMPAT /dev/sd/* names
LOOKUP ^(sd/c[0-9]+b[0-9]+t[0-9]+u[0-9]+)p[0-9]+$ EXECUTE /bin/dd if=$mntpnt/\1 of=/dev/nu
ll count=1
# SCSI OLDCOMPAT /dev/sd?? names
LOOKUP ^(sd[a-z]+)[0-9]+$ EXECUTE /bin/dd if=$mntpnt/\1 of=/dev/null count=1
# IDE NEWCOMPAT /dev/ide/hd/* names
LOOKUP ^(ide/hd/c[0-9]+b[0-9]+t[0-9]+u[0-9]+)p[0-9]+$ EXECUTE /bin/dd if=$mntpnt/\1 of=/dev/nu
ll count=1
# IDE OLDCOMPAT /dev/hd?? names
LOOKUP ^(hd[a-z])[0-9]+$ EXECUTE /bin/dd if=$mntpnt/\1 of=/dev/null count=1
If you noticed that fstab file, it also creates another mount for mnt/hd2 besides /mnt/hd.
Both of these are empty. I can copy stuff into them and see if with the 'ls' command.
What are these two drives? How do I find out? And, if fstab (Mandrake) searched for, and mounted these, why don't they show up in either 'df' or 'mount' ?
Very confusing.
Hope someone that knows the answer sees this post because I'm lost. Any idea where else I could post this? I'm not subscribed to Mandrake Club.
Also, can you think of anything I could try in order to get to the bottom of this?
Everything in the /dev and procs were linked to the right disks, so that wasn't much help. Everything I read from googling was no help except for the fact that devsfd will be going away soon, which made my day, since I thought Mandrake 10 was cutting edge.
Anyway, I knew that if I went into fstab and deleted the /dev/ide/ line that Mandrake put in there, that it would show back up upon reboot. This meant that somewhere Mandrake was keeping this alive. I can't find out where that is.
I figured that maybe the 'Harddrake' utility would set things right, so I went into Harddrake and deleted the /mnt/hd disk and added the /mnt/drive2 mount point. Previously, I had added the /mnt/drive2 and it showed up in the old format in the fstab file. So, this time, I was hoping that it would again put it in fstab in the old format of /dev/hdb1, which it did. Except this time, I hoped that Harddrake would remove the devfs line.
After reboot, I looked in fstab and found what I was hoping for. The new stype devfs line was removed and the old /dev/hdb1 line was inserted with the proper mount point of /mnt/drive2.
Now everything works right! 'df', 'mount', 'ls', fstab, everything!
Of course the curious fellow that I am, it leaves me with a few nagging questions.
How does someone know to delete the automatically inserted line in fstab through Harddrake?
Where does Mandrake store that stuff in order to add the line in fstab, even though you delete by hand?
Where do you change the name of /dev/hd to what you want?
Why didn't 'mount' or 'df' show the Mandrake auto configured drive?
If it really mounted the second drive, why didn't anything show up using 'ls'?
You know what, I may be a real idiot here...your fstab lines dealing with hdb are flaged as 'noauto', which
means they do not get mounted automatically at boot...you can either remove the noauto flag to have it
mounted at boot, or use 'mount /dev/hdb' to do it manually...however, this still doesn't explain how you
were seeing data at /mnt/disk2
The script that writes these lines automatically to fstab are almost certainly in one of the init scripts run at
boot. Have a look in /etc/init.d or perhaps /etc/rc.d and have a look for a script with 'devfs' or similar in
the name. Still though...not a good idea to mess with these unless you know what you are doing.
Don't feel bad. I missed that noauto also. Working on a problem for 24 hours isn't the best course of action.
The /mnt/drive2, which I can't figure out where or how it was, or got mounted, had both the owner and group as root, when both fstab lines were in there to begin with. I can't figure out how I was able to use that drive when NOTHING showed that drive to be mounted. The 'mount' command didn't show it. The 'df' command didn't show it. /proc/mounts didn't show it. The only thing that showed it was 'fdisk'.
Also, even if I mounted it over top of something the system did, it still didn't show up anywhere!
And, if the /mnt/hd and /mnt/hd2 weren't mounted, how was I able to copy stuff to them?
And here's the real mystery. Without that line that mounts /mnt/hd, I can still go to /mnt/hd and see the files that I copied there when I was trying to figure out what that drive was. So, what the heck IS that drive(/mnt/hd)? I don't see it mounted anywhere!
(Do I hear twilight zone music playing in the background?)
So, being that the /mnt/hd was set noauto, why, by removing that line and adding the older /dev/hdb1 mount command, does everything seem to work properly and that drive, /mnt/drive2, now shows up everywhere it should?
This (Mandrake10) is the first Linux distro that I haven't got a lot of documentation for, since I was beta testing it before it was released and know many different Linuxes pretty well. This problem has to do with how Mandrake, specifically handles their bootup scripts for devfsd.
Since devfsd will be going away shortly, I don't feel like becoming an expert on it at this stage.
I use my Linux machines for actual work, not playing around on. Of course, when you don't have to cuss out BillyG, any computer is fun to work on :-)
I bought a brand new emachine with Winxp on it about a year ago. The first week I had it, it crashed 3 times on me. I hadn't put any new software on it. It crashed using Microsoft Office twice and IE6 once. During the next few months, I loaded it up with some software and redid the registry to clean out everything that wasn't necessary. Since then, it has been fairly stable. I use it solely for the purpose of seeing how websties look on IE6 and other browsers running under windwoze. I can keep it up for about 9 days, before it becomes unstable and I have to reboot.
Understand that this computer is just sitting there doing nothing! It's not running any programs, except for the few times that run one of the browsers to check something. And it still becomes unstable after 8 to 9 days. The longest I had it running was 10 days before reboot.
I've got a Red Hat 7.3 computer running here for over 314 days now. And as we all know, a Linux box only gets shut down because the admin *wants* to shut it down ;-)
Sorry about the length of this. I actually got some sleep since I solved this problem, so I feel good.
Thanks for your suggestions, but there are still too many unanswered questions.
And, if the /mnt/hd and /mnt/hd2 weren't mounted, how was I able to copy stuff to them?
This is what I was trying to tell you -> /mnt/hd and /mnt/hd2 are just part of your root ie: '/' filesystem. If there is
nothing mounted there, then any files copied there are physically in that directory.
When you mount something there they 'disappear', which is to say they are hidden
(un-accessable) until whatever partition that resides there is unmounted, then you
can see them again.
I think what you did was merrily copy your files over to /mnt/wherever thinking /dev/hdb was mounted when in fact it was not...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.