LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-10-2003, 10:08 PM   #1
slappycakes
Member
 
Registered: Aug 2003
Location: Japan
Distribution: Slackware 10
Posts: 88

Rep: Reputation: 15
Unhappy Where is my data?


I searched and couldn't find a similar thread so, I thought I would ask.

I have a slight concern, well it's more of a problem really. Here are the details:

/dev/hdh <-- Has about 100 gigs of MP3's on it (RIAA NOTICE: my own collection and totally legal, thank you)

/dev/hdh <--- Is mounted as /music


The problem:
I created a new user called music and assigned it the home directory of /music. Now I can't see my music anymore.

I don't care about the music on the drive because I have backups but the real question I have is how NOT to do that again. I remember reading somewhere in some book cautioning about this exact thing but the name of the book eludes me.

Any ideas?

Slappy
 
Old 11-10-2003, 11:12 PM   #2
watashiwaotaku7
Member
 
Registered: Oct 2002
Location: wisconsin -- The Badger state
Distribution: gentoo
Posts: 654

Rep: Reputation: 30
check that you have permissions to access those drives (man chmod) and that they are mounted
 
Old 11-10-2003, 11:29 PM   #3
slappycakes
Member
 
Registered: Aug 2003
Location: Japan
Distribution: Slackware 10
Posts: 88

Original Poster
Rep: Reputation: 15
I mounted the drive fine and I have permission to the drive. The drive still shows 0% used.
 
Old 11-11-2003, 12:13 AM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by slappycakes
I mounted the drive fine and I have permission to the drive. The drive still shows 0% used.
You must have done something to wipe the drive clean most likely.
 
Old 11-11-2003, 12:22 AM   #5
linuxbotx
Member
 
Registered: Oct 2003
Location: USA
Distribution: Fedora Core 4
Posts: 247

Rep: Reputation: 30
Let me get this straight. You set a drive mount to be the exact same directory as your users home dir?????? Theres your mistake. And your answer. ALWAYS keep your user directories in the /home dir. You can make a script to have the user start out in the /music dir. Just do a chmod -R 777 /music as root, so your music user can have access to your music (and all other users), then when you log in as user music, just have a script move that user into the /music dir.
 
Old 11-11-2003, 12:34 AM   #6
slappycakes
Member
 
Registered: Aug 2003
Location: Japan
Distribution: Slackware 10
Posts: 88

Original Poster
Rep: Reputation: 15
Trickykid: I did nothing else but what I stated in the first post.

Any good references for customizing user scripts? And, judging from the last response, the data is lost?

Slappy

Last edited by slappycakes; 11-11-2003 at 12:40 AM.
 
Old 11-11-2003, 12:45 AM   #7
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Creating a users home directory doesn't have to be in the /home directory. I have plenty of users that have /var/www/htdocs and /data/ftp and so on that I've created and created users when data was already existent...

Your users home directory does not have to be in /home...

Something happened though to wipe the data on the partition though. How did you create the user, thru a GUI tool or by command line? There is a chance its gone but still wondering what could have caused that myself.
 
Old 11-11-2003, 12:51 AM   #8
slappycakes
Member
 
Registered: Aug 2003
Location: Japan
Distribution: Slackware 10
Posts: 88

Original Poster
Rep: Reputation: 15
I created the users via the command line. I was setting up vsftpd (that's another story) and wanted a user that could only go to one directory and no other as well as not change any directories.

So, I created the user 'music' and assigned it the home directory of '/music'.
 
Old 11-11-2003, 01:29 AM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Well .... if I have a directory with content,
and then mount stuff on top of that, the original
content becomes "invisible" ... this seems
to be the other way round?

Can you post your fstab?

Also, I find it a bit odd that you used
a raw-device for the mp3's ...

Cheers,
Tink

P.S.:
Quote:
/dev/hdh <-- Has about 100 gigs of MP3's on it (RIAA NOTICE: my own collection and totally legal, thank you)
That strongly depends on the country you live in ;)
In NZ you'd be a criminal.
 
Old 11-11-2003, 01:45 AM   #10
scott_R
Member
 
Registered: Jul 2003
Location: Brighton, Michigan, USA
Distribution: Lots of distros in the past, now Linux Mint
Posts: 748

Rep: Reputation: 31
try to 'umount /dev/hdh', then mount it under a different directory. It may only look erased because /music (the user) is plopped down on top of it. If it gives you an error that it's can't umount because the device is being used (or something similar), you might need to use your rescue disk (or knoppix, or something similar) to boot a minimal system, then adjust your fstab/user/mount stuff there. At the very least, the alternate boot will allow you to see if the data's still there (personally, I'd be ticked if I had to load 100 gig back onto a drive, especially using your "legal" cds )

-----------
I just had to add this for the RIAA CIA/FBI wannabe chumps. I don't steal artist's music, just the stuff you guys put out.
-----------

Disclamer for above. Actually, I don't "steal"/download anybody's music with napster or anything else. I buy most of the sheet/tab music at my local guitar store, my friends buy most of their music for bass, keyboards, drums, etc., and we play our favorite songs. At the same time, nobody at the RIAA is cracking down on any transcription sites. Because it's not an exact copy, it's legal, but someone bright should have argued that MP3's and oog files aren't exact copies. On the other hand, the RIAA's probably going to start suing transcription sites in an ever so SCO fashion.

Sorry folks, my bad.

Last edited by scott_R; 11-11-2003 at 01:58 AM.
 
Old 11-11-2003, 01:47 AM   #11
slappycakes
Member
 
Registered: Aug 2003
Location: Japan
Distribution: Slackware 10
Posts: 88

Original Poster
Rep: Reputation: 15
How can you be a criminal for making mp3's from cd's you bought?

I will be visiting NZ in December, I WAS going to bring my IPOD but I guess you changed my mind.

What did you mean about the raw device comment?

Slappy
 
Old 11-11-2003, 02:14 AM   #12
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally posted by slappycakes
How can you be a criminal for making mp3's from cd's you bought?

I will be visiting NZ in December, I WAS going to bring my IPOD but I guess you changed my mind.
Well, I haven't heard of a case that someone with
an IPOD was charged, but under NZ laws you
wouldn't even be allowed to tape a CD you bought
for use in the car. I come from Germany and find
this law outrageously stupid :) ... In Germany the
GEMA gets fees from sales of "empty media" like
tapes and CD-R's and the devices used for
reproduction, and it's perfectly legal to make
private copies even as give-away for a mate.
Quote:
What did you mean about the raw device comment?

Slappy
/dev/hdh
You don't seem to have any partition defined, which
is rather unusual :) to say the least!

Cheers,
Tink
 
Old 11-11-2003, 02:54 AM   #13
slappycakes
Member
 
Registered: Aug 2003
Location: Japan
Distribution: Slackware 10
Posts: 88

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Tinkster Well, I haven't heard of a case that someone with
an IPOD was charged, but under NZ laws you
wouldn't even be allowed to tape a CD you bought
for use in the car.
I find that absolutely facinating! Such differences in society.

I formatted the whole HD rather than making partions. Not good? Can you suggest a better way?

Slappy
 
Old 11-11-2003, 06:22 AM   #14
slappycakes
Member
 
Registered: Aug 2003
Location: Japan
Distribution: Slackware 10
Posts: 88

Original Poster
Rep: Reputation: 15
I give up, formatting now.

scott_R -> Thanks for the advice. I tried what you suggested but no luck. Do you remeber when harmony-central was under attack from the music industry for posting user submitted music tableture? Crazy huh?

What I have accomplished such far:

1. Never let anyone know you have an MP3 collection while in NZ
2. Bad practice to use a raw device
3. Test before you make a change

Looks like I will be restoring from backups. Not a problem but in the future I think I will test the command first and then apply it on the the real system.

AND to clarify the large MP3 collection--> I can't stream music from work (firewalls) so I use ftp to grab it from home and listen to it at work.

(climbing on the soap box) It is not illegal to make an MP3 file from your music CD's. Some would want to you to think that, but it is not. (stepping off the soap box)

Amen,
Slappy
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Software to acess and recover data on Fat32 data NeoSpawn Linux - Software 2 09-04-2005 11:37 AM
appending data to a data grid VB.net mrobertson Programming 6 07-28-2005 08:57 AM
Home Office Biotech Data Mining - Data Collection Adler Linux - General 20 11-03-2004 04:17 AM
Burn Data DVD... Read Data in Linux and Windows SaintStrive Linux - Newbie 3 09-18-2004 05:04 PM
What is the definition of Full Data and Ordered Data? WhiteTornado Linux - Software 2 01-30-2004 03:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:52 PM.

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