LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 10-19-2006, 12:18 PM   #1
eyt
Member
 
Registered: Sep 2003
Posts: 76

Rep: Reputation: 15
Fedora 5 label disk


Hi all,

I install Fedora 5 on my new machine and this is the first time I installed Fedora.

I noticed that in /etc/fstab, there is LABEL for the partition.
The fstab layout is totally different from the Mandrake.

I need to add an old data disk (disk with data) which is removed from my old mandrake machine to this new Fedora machine as a slave disk.

How do I label the old disk and edit the /etc/fstab to mount the old disk.

The fstab of my new machine is as follows:
# cat /etc/fstab
LABEL=/1 / ext3 defaults 1 1
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
LABEL=/home /home ext3 defaults 1 2
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
LABEL=/usr /usr ext3 defaults 1 2
LABEL=/var /var ext3 defaults 1 2
LABEL=SWAP-hda5 swap swap defaults 0 0
 
Old 10-19-2006, 12:45 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,853

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
labels are not necessary. You can still use the device ID i.e.
/dev/hdb1 /mnt/old_drive .....
 
Old 10-19-2006, 12:54 PM   #3
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
You do not need labels for the old hard drive, just use the actual partitions and create the line entries in /etc/fstab

For example lets say the old hard drive is attached to the system as hdb and has three partitions all ext3 then the entries would looke like;

Code:
/dev/hdb1      /media/part1       ext3 defaults 1 2
/dev/hdb2      /media/part2       ext3 defaults 1 2
/dev/hdb3      /media/part3       ext3 defaults 1 2
Just remember to create the mountpoints (/media/part1{2,3}) beforehand;

mkdir /media/part1

After the drive is attached then you can check which partitions and filesystem(s) you really need by using something like; fdisk -l (that's the lower case letter L in the command) before creating the fstab entries and mountpoints BTW
 
Old 10-19-2006, 02:03 PM   #4
eyt
Member
 
Registered: Sep 2003
Posts: 76

Original Poster
Rep: Reputation: 15
Thanks all. It works now
 
  


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
How to change the label of a disk dtournas Red Hat 0 08-17-2004 08:02 AM
Change disk label sizes? hypodermic *BSD 5 03-12-2004 06:44 PM
Disk label problem Juniper34 *BSD 2 08-21-2003 06:01 AM
Disk label strangeness? MadCactus Linux - General 2 08-13-2003 12:24 PM
Disk Label Editor Philo *BSD 13 07-06-2003 08:27 AM


All times are GMT -5. The time now is 08:48 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration