Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 03-23-2008, 02:28 PM   #1
Senior Member
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,621

Rep: Reputation: 55
Smile Changing sda to sdb

FC 8 i386.

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' ?
Old 03-23-2008, 05:05 PM   #2
Registered: Dec 2002
Location: Brisbane, Australia
Distribution: RedHat (RHEL, FC, CentOS), openSuSE, Mac OS X
Posts: 653

Rep: Reputation: 32
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
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

hope that gives you some ideas.

Old 04-20-2008, 10:58 PM   #3
Registered: Sep 2005
Location: Baltimore, MD, USA
Distribution: Fedora, Gentoo, Debian, Slackware, IRIX, OS X
Posts: 192

Rep: Reputation: 32
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.
Old 04-20-2008, 11:02 PM   #4
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
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?
Old 04-21-2008, 12:22 AM   #5
Registered: Sep 2005
Location: Baltimore, MD, USA
Distribution: Fedora, Gentoo, Debian, Slackware, IRIX, OS X
Posts: 192

Rep: Reputation: 32
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.


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
New disk presentation allows sdb but not sda to be partitioned sbf132 Linux - Hardware 0 02-12-2008 07:21 PM
sda or sdb? stevest SUSE / openSUSE 7 12-18-2007 11:57 AM
FC6 drive/partitions reconfig question sda sdb swap CaptainInsane Fedora 6 02-02-2007 03:00 PM
cannot find sda or sdb for mounting pen drive in RH9 sakal_woman Linux - Hardware 3 11-20-2006 09:41 PM
zip drive alternately mounts on /sda and /sdb timsch75 Linux - Hardware 6 09-26-2004 10:00 AM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 01:58 AM.

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