LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   putting extended hda into /etc/mtab & /etc/fstab (https://www.linuxquestions.org/questions/linux-hardware-18/putting-extended-hda-into-etc-mtab-and-etc-fstab-427832/)

tomolesonjr 03-23-2006 07:00 PM

putting extended hda into /etc/mtab & /etc/fstab
 
On installation I created an extended partition hda. it has reiserfs format and on suse 10.0.

when I go to mount it says I have nothing in the /etc/fstab and /etc/mtab.

what goes into those two files? thanks.

michaelk 03-23-2006 07:05 PM

In a nutshell an extended partition is a container for logical partitions and can not be mounted. Logical partitions start at ID5 so you would want to mount /dev/hda5. However you may have more then one logical partition. To find out exactly how your drive is partition look at the output of the fdisk command (as root)
fdisk -l /dev/hda

tomolesonjr 03-23-2006 08:13 PM

I tried that. acutally I think I messed up the 4 gb drive. I am trying to reinstall and the hba won't come up... first time installing onto 2 hd. live and learn...

syg00 03-23-2006 08:52 PM

Mount only goes looking in fstab/mtab if you don't specify enough on the command. You can't just say something like "mount /media/whatever" you need (at least) the physical device - maybe type as well.

tomolesonjr 04-05-2006 05:00 AM

Thanks. fyi
I did get the 4 gb drive to be readable again. nt is good for something. :) I half way installed nt. it fixed it. it was readable again.

I will keep that in mind.

thanks,
tom

jschiwal 04-05-2006 05:05 AM

You can use the YaST partitioner to mount a new partition. This will edit your /etc/fstab file also.
The mtab file is written by the system to indicate what partitions are currently mounted.

tomolesonjr 04-05-2006 12:07 PM

I had formatted the extended partion. it said 0 bytes. and I cleared the partition table. YaST partitioner wouldn't read it. thanks for the info about mtab and fstab. next time I will use the partitioner first thing. :)


All times are GMT -5. The time now is 12:35 AM.