LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 08-09-2004, 11:15 AM   #1
gfem
Member
 
Registered: Apr 2003
Distribution: Fedora
Posts: 126

Rep: Reputation: 15
help adding new hard drive with label


I am adding a new hd /dev/hdd1 and I want to format it with the label /video. I have an existing partition with that label and want to replace it with the new one and change the old /video to /games. I need help making the correct modifications to the /etc/fstab.

here is the config before adding the drive.
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
LABEL=/video /video ext3 defaults 1 2
/dev/hda2 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,r
o 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
none /var/lib/jack/tmp tmpfs defaults 0 0

Help is very much appreciated.

-Gregg
 
Old 08-09-2004, 01:44 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,729

Rep: Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919
To change the labels see man pages for tune2fs and mkfs.
If the /games directory does not exist create it using mkdir. Add a line to your fstab for /games just like your /video.
 
Old 08-10-2004, 10:20 AM   #3
gfem
Member
 
Registered: Apr 2003
Distribution: Fedora
Posts: 126

Original Poster
Rep: Reputation: 15
Thanks. I made the changes and I can mount /video , but I get an error when mounting /games.

[root@mythtv video]# tune2fs -L /games /dev/hda5
tune2fs 1.34 (25-Jul-2003)
[root@mythtv video]# mount /games
mount: mount point /games does not exist

here is my /etc/fstab


LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
LABEL=/video /video xfs defaults 1 2
/dev/hda2 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
none /var/lib/jack/tmp tmpfs defaults 0 0
LABEL=/games /games ext3 defaults 1 2
 
Old 08-10-2004, 10:50 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,729

Rep: Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919
You did not create the directory /games.
The command is:
mkdir /games
 
Old 08-10-2004, 10:54 AM   #5
gfem
Member
 
Registered: Apr 2003
Distribution: Fedora
Posts: 126

Original Poster
Rep: Reputation: 15
Thanks. I was confused on where to put it. Dumb mistake.

Woks great.
 
  


Reply



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
Adding a second hard drive AxXium Slackware 9 03-24-2006 02:27 AM
How to mount a special label of my external hard drive? faezeh Fedora 6 03-21-2005 04:22 AM
Adding a Hard Drive texmansru47 Slackware 2 12-13-2004 11:19 AM
Adding a hard drive Mack_T Linux - Hardware 10 09-21-2003 11:46 AM
Adding a Hard drive jfisk Linux - General 3 08-08-2003 12:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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

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
Open Source Consulting | Domain Registration