SAVING TO A SECOND HARD DRIVE

i tried to search the forum for a solution to the prob i am encountering but did not find one…so i apologize if this is a repost…

i recently added a second hard drive (sdb) to my suse box…

here is the output of mount -ls:

/dev/sdb1 on /home1 type ext3 (rw,acl,user_xattr) ]

(i created the /home1 directory just as mount point)…

what i would like to do is save my downloads and other files to this second drive, but do not know how to access it…

how do i gain access to it?

i am using suse 11.1; gnome; x-64.

thank you

You can copy using “cp”. Example…cp filename /home1. Or you can configure your browser to save doanloads to /home1. Just remember that if the drive is not mounted it will cause an error. You might want to check your /etc/fstab file to insure that the mounting takes place at boot time.

okay, thanks…

i think what has me a little confused is that when i do save something to /home1 (which was created in my home directory) and i unmount sdb1 (umount /dev/sdb1), i can still access what is in /home1…

my thought is that if i unmount the drive i shouldn’t be able to access whatever is on the drive, correct?

/etc/fstab does show it mounting at boot…

Exactly. But when your partition is not mounted on /home1, /home1 is stil a directory. And you can write files / create dirctories in a directory, can’t you?

But when you then mount again, all that is in that directory becomes unreachable, because now the partition is there.

Many system managers create a file in such a directory (that is intended to be a mount point) with a name like

This-is-the-mount-point-of-sdb3

or another usefull alert message, so you can immedeatly see it when the partition is not mounted.

thank you very much…

that explains a lot…

Well that’s the way it works on my system. Once a drive is unmounted it is no longer part of your file system. But something puzzles me. You say that your mount point is /home1 but that it was “created in my home directory”. Normally your home directory would be /home/username in which case your mount point would be /home/username/home1. Are you sure you haven’t created two mount points one being /home1 and the other /home/username/home1?

If you invoke the “mount” command without parameters you will see if /dev/sdb1 is mounted to more than one mount point.

I think you need a little more understanding of the mount process. When a disk
partition is mounted “over” a directory on your / partition, the original
contents of that directory become hidden. For example on my system, I have a
Ubuntu distribution on partition /dev/sda1 that is normally mounted on /ubuntu.
When it is mounted, the command ‘ls /ubuntu’ shows all the directories of the
root of a distro. Once it is unmounted, the ‘ls /ubuntu’ command shows nothing.
If I now create a file there using ‘touch /ubuntu/junk’, it will show up in the
listing; however, if the partition is remounted, the file ‘junk’ is hidden - it
still occupies disk space in my / partition, but I cannot get to it.

the problem and solution was found in previous two posts…

i created two mount points…/home1 and /home/user/home1…

the disk was mounted on /home1, but i was looking for it at /home/user/home1…

with proper mounting i was able to get it functioning as expected…

thanks for the help…

:’( … now it is mounted and i can’t get to it (as regular user) cause it requires root privilege…

soccy wrote:
> :’( … now it is mounted and i can’t get to it (as regular user) cause
> it requires root privilege…

What is the info for that drive in /etc/fstab?

the computer in question is my desktop and i am away from home…

as soon as i return, i will have that info…