In preparation foe openSuse 11, I am trying to add a second hard drive (250gb). I pre-configured the second drive with gparted to make it extended with an ext3 partition. Gparted reported 232gb available.
Firstly there is a funny in that suse sees my hard drives as sata, when they are in fact pata
So sda has my present system and it works.
If I do a hardware check I have /dev/sda & /dev/ sdb
I have added in fstab the following:
/dev/sdb1 /media/sdb auto defaults 0 2
After reboot I look in /media/sdb and find 6.5gb free of 19.7gb
This shows that /dev/sdb1 is an Extended partition. This means that it contains partitions numbered higher then 4. In this case it contains the partion /dev/sda5. This last one is th real partition you should use. So change your fstab to mount /dev/sda5 instead of dev/sda1 (hope /dev/sda1 is not ruined in the meantime.
Btw, I do not know why an Extended partition is made. This is not realy needed when you only want only one partition on the disk. Your other disk just has three partitions, none of them in an the extended partition (which was thus not made at all). Maybe it is a hobby of the tool you used .
In your first post you said: I pre-configured the second drive with gparted to make it extended with an ext3 partition.
When this is true, it is you that made an extended (I do not know why) we know as sdb1 and then a logical partition in it (sdb5). Now you say you made it ext3. I know almost nothing about gparted, but when gparted can make ext3 file systems on partitions and you told it to do so I suppose that is OK. Did you try to mount it in the way I told you?
When you mount there will be two possibilities:
a. the fs is OK and when you type **df **you will see the Gigs.
b. the fs is not there and you will get an error.
Btw why did you not use YaST > System > Partitioner. This can make partitions and filesystems on them and has fields to fill in for the mounting. All in one!
And btw I wouldn’t mount it under media, that directory should
be reserved for removable media like CD/DVD or USB memories,
although this is not mandatory, just a good habit. Create a
top level directory on your primary drive, say /mysecond and
use yast>system>partitioner to change the mountpoint to this
Or, if this space is ment for a specific user, put it somewhere in his home dirrectory.
I think the meaning of these last posts is to learn you that it is not like e.g. MS-DOS and derivates where all disk(partition)s are at the toplevel and each has its own directory tree, in Linux you can put your disk(partition) where you need it anywhere in the directory tree. So it is well worth to meditate a little bit about it. :rolleyes:
I started from the beginning again. To summarise for those who are not so clued op (like me):
Set the second hard drive to slave.
Check in hardware that the drive is recognised
Use partioner in yast to set to ext3 and set mountpoint.
edit fstab as described above Set permissions -
go to console and log in as root
chmod 777 directoryname (or filename) (this gives all permissions :root, group & user)
Thanks to all who helped me - I am now backing up my home folder !!! :):)