FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm making a slight change to a friends computer that lives about 700 miles from me, He now has a 40gb harddrive with Fedora 6 installed.
I'm installing FC 8 on a 120gb harddrive for him.
I want to take his 40gb drive and change jumpers to make it a slave or sdb,
and the 120 gb as sda , which is how it is being loaded with FC 8 .
On sda in /etc/fstab I have a line,
/dev/sdb3 /mnt/Backup ext3 defaults 1 2
sdb3 is where his home directory is on the 40gb drive.
I did a chmod 755 /dev/sdb3 /mnt/Backup and now I can read/write onto /mnt/Backup, but /home/tom on sdb3, needs permissions to allow him to read/write, and to retrieve files from his old /home/tom directory.
I was thinking, could I, before changing drive from sda to sdb is to do a
chmod 755 on /home/tom and then it will already have the permissions to rw on sdb ?
One last ??? on FC 6 the drives where labeled as 'hd' instead of 'sd'
how will that affect /etc/fstab on the 120gb as 'sda' ?
Last ??? first: the labeling of the disk like that sd vs hd is kernel / udev based. Sadly i can not find anything via the Google oracle that states that in definitive terms so here is what you should do:
man e2label and then run `e2label /dev/sdb3 /home/tom`
that way you can then change the line
/dev/sdb3 /mnt/Backup ext3 defaults 1 2
to
LABEL=/home/tom /mnt/Backup ext3 defaults 1 2
NOW here is the pickle of your original question: because you are mounting /home/tom and because the mount occurs by root at startup you are a little bit screwed (it can be fixed). Personally i prefer to have the partition as /home and then the underlying directory is /home/chakkerz which is on the drive so when it get's mounted it is already owned by me.
There is little you can do easily to get around the ownership issue, but you can do a couple of things:
1) move everything in /home/tom to /home/tom/tom , chown / chmod /home/tom/tom appropriately and mount it as /mnt/Backup again. Tom will be able to read/write from /mnt/Backup/tom no worries
2) you make the line:
LABEL=/home/tom /mnt/Backup ext3 noauto,users,rw,exec 1 2
That way /mnt/Backup won't be mounted automatically at boot, but users (such as tom) can mount the device and will be able to read and write as well as execute software on said device.
3) same as two, but you put something in ~tom/.profile to mount /mnt/Backup when he log's on
Distribution: Fedora, Gentoo, Debian, Slackware, IRIX, OS X
Posts: 192
Rep:
for the labeling question....I think that that's what UUID is supposed to solve, but, I'm not well versed on the material. I'd try sd? and hd? myself to see what works.
It's be /dev/sdb from F8's perspective irrespective of what FC6 sees it as. The "labelling" you refer to is different from the naming/labelling of partitions.
Make sure his uid/gid are the same in F8 as FC6 and he should be right to read his home dir.
Edit -oops - pretty old thread - why did you responsd to this after a month?
Distribution: Fedora, Gentoo, Debian, Slackware, IRIX, OS X
Posts: 192
Rep:
I responded because it showed up on my list for "View new posts", and it's only been a since Friday that I was here. Must have been a glitch in the DB.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.