LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-01-2005, 11:42 AM   #1
Berticus
Member
 
Registered: Jul 2005
Distribution: Arch
Posts: 159

Rep: Reputation: 31
Mounting partitions


I have debian and fedora on one harddrive. I'm going to try to mount debian on fedora first. So in /etc/fstab, I used to have this:
Code:
LABEL=/1                /                       ext3    defaults        1 1
/dev/devpts             /dev/pts                devpts  gid=5,mode=620  0 0
/dev/shm                /dev/shm                tmpfs   defaults        0 0
/dev/proc               /proc                   proc    defaults        0 0
/dev/sys                /sys                    sysfs   defaults        0 0
/dev/sda1               /media/UDISK_20X        vfat    pamconsole,exec,noauto,managedsss 0 0
/dev/hdd                /media/cdrecorder       auto    pamconsole,exec,noauto,managed 0 0
/dev/hdc                /media/cdrecorder1      auto    pamconsole,exec,noauto,managed 0 0
I changed it to this:
Code:
LABEL=/1                /                       ext3    defaults        1 1
/dev/hda1               /mnt/hda1               ext3    noauto,users,exec 0 0
/dev/devpts             /dev/pts                devpts  gid=5,mode=620  0 0
/dev/shm                /dev/shm                tmpfs   defaults        0 0
/dev/proc               /proc                   proc    defaults        0 0
/dev/sys                /sys                    sysfs   defaults        0 0
/dev/sda1               /media/UDISK_20X        vfat    pamconsole,exec,noauto,managedsss 0 0
/dev/hdd                /media/cdrecorder       auto    pamconsole,exec,noauto,managed 0 0
/dev/hdc                /media/cdrecorder1      auto    pamconsole,exec,noauto,managed 0 0
It was able to mount and everything. However, when I went to /mnt/hda1/home/username/ it said I didn't have the right permission to access that location. How do I fix this problem?
 
Old 10-01-2005, 12:01 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,750

Rep: Reputation: 271Reputation: 271Reputation: 271
"when I went to /mnt/hda1/home/username/ it said I didn't have the right permission to access that location. "

The problem could possibly be that the username that you are running under in Fedora is different than the username in the file permissions on /mnt/hda1/home/username/. If that is the case you might be able to get around the problem with group names. Or you might su to root on Fedora to access /mnt/hda1/home/username/.

--------------------
Steve Stites

Last edited by jailbait; 10-01-2005 at 02:18 PM.
 
Old 10-01-2005, 01:09 PM   #3
Carroarmato0
Member
 
Registered: Feb 2005
Location: Belgium
Distribution: Ubuntu 10.04
Posts: 120

Rep: Reputation: 15
You are accessing a directory from another system

The only way to enter it without changing rights is to access it as root
 
Old 10-02-2005, 08:11 PM   #4
Berticus
Member
 
Registered: Jul 2005
Distribution: Arch
Posts: 159

Original Poster
Rep: Reputation: 31
Ah, well I think I won't mount it then. I tried to chmod it, and it worked. However, now when I boot up debian, everything is unprotected. I can access apps I know I'm not allowed to access as a regular user. And synaptic is now having trouble

Anybody know how to fix this?

--------------------------------Edited--------------------------------
All the usernames are the same

Last edited by Berticus; 10-02-2005 at 08:34 PM.
 
Old 10-03-2005, 10:56 PM   #5
Berticus
Member
 
Registered: Jul 2005
Distribution: Arch
Posts: 159

Original Poster
Rep: Reputation: 31
Does that mean I need to reformat Debian? :/
 
Old 10-04-2005, 01:03 AM   #6
tskears
Member
 
Registered: Apr 2005
Location: Ottawa, Canada.
Distribution: PCLinuxOS.
Posts: 122

Rep: Reputation: 15
I was trying to do exactly this with Suse and Debian, with exactly the same result. I couldn't access /mnt/debian/home/me from Suse except as root, even though I was using same username/password on both.

I discovered that the User ID's assigned by Suse and Debian were different. Suse assigned me 1000, and I think Debian was 501. Once I set UID's for my account on both distro's the same, everything worked fine.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mounting partitions alanbarnard Ubuntu 3 06-26-2005 05:00 PM
Mounting partitions thebored Linux - Networking 3 04-10-2005 07:09 AM
mounting partitions Niflheim Linux - Newbie 3 01-25-2005 11:10 PM
Mounting Partitions? nez Linux - Newbie 5 05-26-2004 08:21 PM
Mounting partitions skeletal29 Linux - General 2 05-01-2002 04:49 PM


All times are GMT -5. The time now is 03:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration