Koozali.org: home of the SME Server

Strange partition?

Dennis J

Strange partition?
« on: January 06, 2003, 10:55:08 PM »
Hi there,

I’ve upgraded my SME 5.5 to 5.6 beta 7 and have added all upgrades.

The upgrade ran nice, and after words, I’ve added an extra harddisk mounted as /dev/hdd – Slave on second IDE port.

It’s mainly for the use of ext3 file system, that I upgraded the system.

After the install, and the setup in the /etc/fstab file where the ekstra harddisk is mounted directly into an ibay,

I now gets a strange error in my admin mailbox, saying:

“Cannot query your quota for 'seti' on '/dev/hdd2' - Quota error (are you using NFS?): Not a standard file system”

The same error message comes on all the users on the system.

The funny thing is that I don’t have a partition called hdd2?

The command “fdisk /dev/hdd” then “p for print the partition table” says the following:

Disk /dev/hdd: 255 heads, 63 sectors, 7476 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hdd1             1      7476  60050938+  83  Linux

As I see it, there is no hdd2 partition.

But if I do a “df” command the system says:

[root@server root]# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hdd2             39294220   4014420  33283728  11% /
/dev/hda1                15522      5816      8905  40% /boot
/dev/hdb              44327448  18679640  23396064  45% /home/e-smith/files/ibays/mp3/files
none                    257148         0    257148   0% /dev/shm
/dev/hdd1             59106972  39383084  16721344  71% /home/e-smith/files/ibays/movies/files

Can anyone put me in the right direction?

/ Dennis

Damien Curtain

Re: Strange partition?
« Reply #1 on: January 07, 2003, 07:00:51 AM »
Dennis J wrote:
>
> Hi there,
>
> I’ve upgraded my SME 5.5 to 5.6 beta 7 and have added all
> upgrades.
>
> The upgrade ran nice, and after words, I’ve added an extra
> harddisk mounted as /dev/hdd – Slave on second IDE port.
>
> It’s mainly for the use of ext3 file system, that I upgraded
> the system.
>
> After the install, and the setup in the /etc/fstab file where
> the ekstra harddisk is mounted directly into an ibay,
>
> I now gets a strange error in my admin mailbox, saying:
>
> “Cannot query your quota for 'seti' on '/dev/hdd2' - Quota
> error (are you using NFS?): Not a standard file system”
>
> The same error message comes on all the users on the system.
>
> The funny thing is that I don’t have a partition called hdd2?
>
> The command “fdisk /dev/hdd” then “p for print the partition
> table” says the following:
>
> Disk /dev/hdd: 255 heads, 63 sectors, 7476 cylinders
> Units = cylinders of 16065 * 512 bytes
>
>    Device Boot    Start       End    Blocks   Id  System
> /dev/hdd1             1      7476  60050938+  83  Linux
>
> As I see it, there is no hdd2 partition.
>
> But if I do a “df” command the system says:
>
> [root@server root]# df
> Filesystem           1k-blocks      Used Available Use%
> Mounted on
> /dev/hdd2             39294220   4014420  33283728  11% /
> /dev/hda1                15522      5816      8905  40% /boot
> /dev/hdb              44327448  18679640  23396064  45%
> /home/e-smith/files/ibays/mp3/files
> none                    257148         0    257148   0%
> /dev/shm
> /dev/hdd1             59106972  39383084  16721344  71%
> /home/e-smith/files/ibays/movies/files
>
> Can anyone put me in the right direction?

There's at least one entry you'd rather not see in that list.

What is in your fstab? What does cat /proc/partition show?
--
 Damien

Dennis Johansen

Re: Strange partition?
« Reply #2 on: January 07, 2003, 09:02:24 AM »
Damien Curtain wrote:
Hi Damien,

>
> There's at least one entry you'd rather not see in that list.
>
> What is in your fstab?

fstab says:

#Copyright (c) 2002 Mitel Networks Corporation
#-------------------------------------------------------------------------------------------------
LABEL=/           /                                             ext3         usrquota,grpquota 1 1
LABEL=/           /boot                                      ext3          defaults      1 2
#----------these partition are added by dj@hegnstoften.net
/dev/hdb           /home/e-smith/files/ibays/mp3/files        ext3      defaults     1 2
/dev/hdd1         /home/e-smith/files/ibays/movies/files     ext3      defaults     1 2
#--------the below part are standard
/dev/cdrom       /mnt/cdrom                               iso9660  noauto,owner,ro  0 0
/dev/fd0           /mnt/floppy                                auto       noauto,owner      0 0
none               /proc                                         proc       defaults              0 0
none               /dev/shm                                   tmpfs     defaults              0 0
none               /dev/pts                                    devpts     gid=5,mode=620  0 0
/dev/hda5        swap                                        swap       defaults             0 0


>What does cat /proc/partition show?

partitions says:

Major  minor  #blocks      name         rio    
22        64     60051600   hdd  16633 218549
22        65     60050938   hdd1  16610 218408
3          0      40209120    hda  18332  11346
3          1           16033    hda1  51  528  1158
3          2                  1    hda2  0 0 0
3          5         265041    hda5  3 0 24
3          6     39921493     hda6  18275  10809 232666
3         64    45034920     hdb   249669 3667737 31338858

Is there anything wrong here?

/ Dennis

Robert

Re: Strange partition?
« Reply #3 on: January 09, 2003, 01:50:05 PM »
There appears to be something wrong with the filesystem labels. Both /boot and / partitions would seem to have a label of /. Maybe /dev/hdd1 has a label of / too. What does 'e2label /dev/hdd1' return?
Try entering your partitions by device name rather than filesystem label in /etc/fstab. Replace 'LABEL=/' with '/dev/hdaX' where X is the correct partition number.
Also you have '/dev/hdb' listed as a partition in /etc/fstab. That doesn't seem to cause any problems, but I believe '/dev/hdb1' would be more correct.

Dennis Johansen

Re: Strange partition?
« Reply #4 on: January 10, 2003, 11:05:13 PM »
Robert wrote:
>
> There appears to be something wrong with the filesystem
> labels. Both /boot and / partitions would seem to have a
> label of /. Maybe /dev/hdd1 has a label of / too. What does
> 'e2label /dev/hdd1' return?

Nothing?

What should it return with?

Regards

Dennis

Robert

Re: Strange partition?
« Reply #5 on: January 11, 2003, 02:52:15 AM »
Dennis Johansen wrote:
>
> Robert wrote:
> >
> > There appears to be something wrong with the filesystem
> > labels. Both /boot and / partitions would seem to have a
> > label of /. Maybe /dev/hdd1 has a label of / too. What does
> > 'e2label /dev/hdd1' return?
>
> Nothing?
>
> What should it return with?
>
> Regards
>
> Dennis

I thought it might return "/". My guess was that you had a number of partitions with the same label and that that was causing the confusion. Guess not.

Dennis Johansen

Re: Strange partition?
« Reply #6 on: January 11, 2003, 10:04:47 AM »
Robert wrote:
>
> I thought it might return "/". My guess was that you had a
> number of partitions with the same label and that that was
> causing the confusion. Guess not.

Hi Robert,

I also assumed that I'd made too many partitions, but if I use fdisk, the system says the following:

[root@server root]# fdisk /dev/hdd

The number of cylinders for this disk is set to 7476.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/hdd: 255 heads, 63 sectors, 7476 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hdd1             1      7476  60050938+  83  Linux

As I see it, there is only one partition.

Any clues?

Regards Dennis

Damien Curtain

Re: Strange partition?
« Reply #7 on: January 11, 2003, 12:17:10 PM »
Dennis Johansen wrote:
>
> Damien Curtain wrote:

> fstab says:
>
> #Copyright (c) 2002 Mitel Networks Corporation
> #-------------------------------------------------------------------------------------------------
> LABEL=/          
> /                                             ext3        
> usrquota,grpquota 1 1
> LABEL=/           /boot                                    
> ext3          defaults      1 2
> #----------these partition are added by dj@hegnstoften.net
> /dev/hdb           /home/e-smith/files/ibays/mp3/files      
> ext3      defaults     1 2
> /dev/hdd1         /home/e-smith/files/ibays/movies/files    
> ext3      defaults     1 2
> #--------the below part are standard
> /dev/cdrom       /mnt/cdrom                              
> iso9660  noauto,owner,ro  0 0
> /dev/fd0           /mnt/floppy                              
> auto       noauto,owner      0 0
> none              
> /proc                                         proc      
> defaults              0 0
> none               /dev/shm                                  
> tmpfs     defaults              0 0
> none              
> /dev/pts                                    devpts    
> gid=5,mode=620  0 0
> /dev/hda5        swap                                      
> swap       defaults             0 0

I'd suggest you run

/sbin/tune2fs -L /boot /dev/hda1

and modify the line:

LABEL=/ /boot ext3 defaults 1 2
to
LABEL=/boot /boot ext3 defaults 1 2

/dev/hdb is just wrong. You should back the data up off this and fdisk this drive and create a partition on it. It would appear you've just run mke2fs /dev/hdb

> >What does cat /proc/partition show?
>
> partitions says:
>
> Major  minor  #blocks      name         rio    
> 22        64     60051600   hdd  16633 218549
> 22        65     60050938   hdd1  16610 218408
> 3          0      40209120    hda  18332  11346
> 3          1           16033    hda1  51  528  1158
> 3          2                  1    hda2  0 0 0
> 3          5         265041    hda5  3 0 24
> 3          6     39921493     hda6  18275  10809 232666
> 3         64    45034920     hdb   249669 3667737 31338858
>
> Is there anything wrong here?

What does /etc/mtab say? This is where df reads the mounted filesystems from.
--
 Damien

Dennis Johansen

Re: Strange partition?
« Reply #8 on: January 12, 2003, 12:08:19 PM »
Hi Damien,
 
> What does /etc/mtab say? This is where df reads the mounted
> filesystems from.
> --

My /etc/mtab seems to be the problem, it says:

/dev/hdd2      /   ext3 rw, usrquota,grpquota 0 0
none   /proc  proc rw 0 0
usbdevfs /proc/bus/usb usbdevfs rw 0 0
/dev/hda1 /boot ext3 rw 0 0
/dev/hdb /home/e-smith/files/ibays/mp3/files ext3 rw 0 0
none /dev/shm tmpfs rw 0 0
none /dev/pts devpts rw,gid=5,mode=620 0 0
/dev/hdd1 /home/e-smith/files/ibays/movies/files ext3 rw 0 0

I will backup the data on /dev/hdb as you suggest, and make new partition correct partition called /dev/hdb1

How about the first line in /etc/mtab ?

Can I just delete it, or is that a bad idea?

When I’m finished with adding my new hard disks I will write a how-to and send it to www.e-smith.org . I can’t be the only one having problems adding disks to the system.

It’s strange that they didn’t include a fdisk session in the installer like the one on RedHat, and then made it possible to mount disks to ibays from the server-manager.

Maybe it’s something for the wish list?

/ Dennis

Robert

Re: Strange partition?
« Reply #9 on: January 12, 2003, 02:21:41 PM »
>
> How about the first line in /etc/mtab ?
>
> Can I just delete it, or is that a bad idea?
>
It's no use to edit mtab. mtab simply contains information about your mounted filesystems. If it contains incorrect information, it's because it got the wrong information from somewhere else.
You should first edit /etc/fstab like Damien and I suggested and see if that solves the problem. Damien and I both seem to think that the problem is related to filesystem labels. That is why I suggested you remove the 'LABEL=/' entries from /etc/fstab and use device names instead. And it's likely why Damien suggested that you change the filesystem label for your boot partition and edit /etc/fstab accordingly. If you're going to follow Damien's suggestion, I would also change the filesystem label for /dev/hdd1, just to be sure. Like Damien wrote, you can change the label with 'tune2fs -L', or you can use 'e2label', which is exactly the same thing.
 
> When I’m finished with adding my new hard disks I will write
> a how-to and send it to www.e-smith.org . I can’t be the only
> one having problems adding disks to the system.
>
> It’s strange that they didn’t include a fdisk session in the
> installer like the one on RedHat,

At least up to SME 5.1.2 is was quite simple to change the installer's kickstart routine so that you could add all the partitions you like. The details can be found in these forums. I haven't tried this with 5.5.

> and then made it possible
> to mount disks to ibays from the server-manager.
>
> Maybe it’s something for the wish list?
>
> / Dennis