LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   access to slave drive in 7.10 (https://www.linuxquestions.org/questions/ubuntu-63/access-to-slave-drive-in-7-10-a-626659/)

reddog 03-08-2008 04:04 PM

access to slave drive in 7.10
 
I added a slave drive to my system from an old distro. I can't access the drive because I don't have permission, even tho I'm set as administrator. Any ideas??
thanks,
reddog

PTrenholme 03-08-2008 04:19 PM

How did you try to access the drive? (I.e., which commands did you use?)

Generally speaking you need to mount the device using the mount commands at some mount point in your file system (created with the mkdir command), for each different partition on the drive, specifying the file system and type of access you need.

If you want the drive automatically mounted, you'll find it easier to put the needed information in /etc/fstb. Here's what my Kubuntu fs table looks like:
Code:

$ cat /Ubuntu/etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>  <type>  <options>      <dump>  <pass>
proc /proc proc defaults 0 0
# /dev/sda2
UUID=9b52dc27-f2c9-4238-afaa-c8e4691ea777 / ext3 nouser,defaults,errors=remount-ro,atime,auto,rw,dev,exec,suid 0 1
# /dev/sda1
UUID=e8e90e29-1025-433d-aaab-fdab05150ddf /boot3 ext3 nouser,defaults,atime,auto,rw,dev,exec,suid 0 2
# /dev/sdb1
UUID=7E4C217A4C212E79  /XP    ntfs-3g    defaults,rw,umask=007,gid=4 0      1
# /dev/sda3
UUID=62a6c022-0e83-4992-a130-b5091116b0a2 none swap sw 0 0
/dev/hde /media/cdrom0 udf,iso9660 user,atime,noauto,rw,dev,exec,suid 0 0
/dev/fd0 /media/floppy0 auto user,atime,noauto,rw,dev,exec,suid 0 0
/dev/FC7/Base /F7 ext3 nouser,defaults,atime,auto,rw,dev,exec,suid 0 0
UUID=9c3634d8-0a19-4ae5-ab1d-17447c134ea4 /F7/boot ext3 nouser,defaults,atime,auto,rw,dev,exec,suid 0 0
/dev/F8/Base /F8 ext3 nouser,defaults,atime,auto,rw,dev,exec,suid 0 0
LABEL=/boot1 /F8/boot ext3 nouser,defaults,atime,auto,rw,dev,exec,suid 0 0

The information in the UUID= or LABEL= descriptors may be found in the subdirectories of /dev/disk

reddog 03-09-2008 03:53 PM

fixed it
 
Thanx for the reply. Sorry I couldn't get back earlier, my internet access is limited and catch as catch can. I was running the live distro and the drive was installed before starting. Ubuntu recognized the drive and it was listed but my old home directories were access denied. I finally dug out my old copy of Running Linux and looked up the chmod command. Then after cd'ing into the dir above the locked directory: /media/disk/home, I did:

sudo chmod 755 directory

Then the directory tree was availble to me. This was an old hard drive from my old system. The computer died and I was wondering if my old files were ok. They are!

Thanx again,

reddog


All times are GMT -5. The time now is 12:50 PM.