LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 01-14-2004, 07:08 AM   #1
scarah
LQ Newbie
 
Registered: Jan 2004
Location: Charlottesville, VA USA
Distribution: Suse 9.0
Posts: 8

Rep: Reputation: 0
how to change /dev/hdd to /dev/zip in Suse 9.0


I am a noob and I would like to know how to change a device name from /dev/hdd to /dev/zip. I already seached a bunch of pages and found instructions for redhat, but that isn't working (says it doesn't recognize the command).

I would appreciate any help!!
 
Old 01-14-2004, 07:25 AM   #2
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
I wouldn't change it but create a link to it
ln /dev/hdd /dev/zip;
 
Old 01-14-2004, 08:00 AM   #3
scarah
LQ Newbie
 
Registered: Jan 2004
Location: Charlottesville, VA USA
Distribution: Suse 9.0
Posts: 8

Original Poster
Rep: Reputation: 0
Can the device entry in fstab be /dev/zip then instead of /dev/hdd??
 
Old 01-14-2004, 08:04 AM   #4
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
So long as you have created the link in the dev filesystem.
 
Old 01-14-2004, 08:43 AM   #5
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 57
Is it really wise to create a hard link in /dev? I have never seen one. I use symbolic links and they work fine - ln -s /dev/hdd /dev/zip.

Håkan
 
Old 01-14-2004, 10:26 AM   #6
scarah
LQ Newbie
 
Registered: Jan 2004
Location: Charlottesville, VA USA
Distribution: Suse 9.0
Posts: 8

Original Poster
Rep: Reputation: 0
I created the link and that seems to work fine. However, it is still showing /hdd mount during bootup. The only problem with this is my zip drive is removable (I have a laptop) and I sometimes have the floppy drive in instead. I thought there might be issues with bootup if it looks like part of the hard drive isn't there. I changed the fstab entry to:

/dev/zip /media/zip auto noauto,ro,users,exec 00

This is like the floppy drive entry, which is automatically detected/mounted, but that isn't working for my zip. I can still use it, and I can save to it, though the /media/zip folder doesn't work, the /zip folder does which is a bit odd. But I have to mount it everytime I start up the computer. Is the /hdd thing during bootup going to be a problem??
 
Old 01-14-2004, 01:29 PM   #7
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
hw-tph hard link or soft link doesn't really matter. It works both was it is just a matter of preference.
Scarah what disrto are you using?

Last edited by g-rod; 01-14-2004 at 01:30 PM.
 
Old 01-14-2004, 02:45 PM   #8
scarah
LQ Newbie
 
Registered: Jan 2004
Location: Charlottesville, VA USA
Distribution: Suse 9.0
Posts: 8

Original Poster
Rep: Reputation: 0
I am using Suse 9.0 prof.
 
Old 01-14-2004, 06:27 PM   #9
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
You could use autofs to automount the filesystem when you change to the mount point, but that is not exactly what you want. You would still need to manually unmount the disk or wait for a timeout to occur before exfecting the media. Mankrake has something called supermount which automatically mounts the disk and flush the cache immediately to disk allowing you to eject the disk without having to umount it. I don't know much details about it, but I am checking into it now. This is a good like to start with.
http://supermount-ng.sourceforge.net/
 
Old 01-15-2004, 04:33 PM   #10
scarah
LQ Newbie
 
Registered: Jan 2004
Location: Charlottesville, VA USA
Distribution: Suse 9.0
Posts: 8

Original Poster
Rep: Reputation: 0
I finally got it working properly. Here's what I did:

fdisk /dev/hdd
added partition 1
mke2fs /dev/hdd1
I already had a directory for /media/zip
my fstab directory looks like:
/dev/hdd1 /media/zip ext2 noauto,rw,user,nosuid,sync 0 0
I also had to do a:
chmod a+rw /media/zip to allow reading and writing for all users

When I first boot, the noauto will allow for boot even if the /hdd1 is not available (as I understand it) which is necessary for me because my zip is removable.

It is not mounted at first, but if I click on the zip icon on my desktop, it automatically mounts.

I think I have avoided the problems that I was concerned about.

Last edited by scarah; 01-15-2004 at 06:09 PM.
 
  


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
Trying to add a third hard drive (hdd) and get Unable to open /dev/hdd MikeyCarter Linux - Hardware 4 12-26-2005 11:27 PM
I cannot access EITHER CD drive! And there's no /dev/hdc or /dev/hdd or /dev/cdrom! Dmalic Linux - Hardware 13 11-18-2005 08:11 PM
Disappearing /dev/sda4 and external USB Zip Drive rps63ifid Mandriva 1 01-08-2005 03:16 PM
/dev/cdrom constantly linked to /dev/hdd r_jensen11 Linux - Hardware 6 09-24-2004 02:51 PM
i have no /dev/hdc or /dev/hdd qwijibow Linux - General 3 07-18-2004 06:25 AM


All times are GMT -5. The time now is 10:18 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration