LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-21-2003, 04:22 PM   #1
1_8_7
Member
 
Registered: Apr 2003
Distribution: slackware 9.0
Posts: 44

Rep: Reputation: 15
Hard Drive question


I just loaded slackware 9.0 and im new to linux all together . I love it so far and i want to use it as my server. I was running Windows 2000 Server on this machine before with 2 hard drives and the second one being only for my FTP server. I want linux to be able to see this second drive with all the data thats already there because i can't lose this data. Is there a way for linux to see this drive with all the data i have on it without having to change the file system on it? If so how, and also how do i mount this thing. Thanks in advance for some help.
 
Old 04-21-2003, 04:28 PM   #2
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
Sure is ...
and depends on the file-system in use...

add
/dev/hdb1 /mnt/ftp vfat auto,user,rw 1 2
(or the like) to your /etc/fstab if it's a fat-partition.

Create the mount point you want to mount it to.

Change vfat to ntfs if that's what you have.

Be aware that ntfs can't be written to safely
from Linux..

Cheers,
Tink
 
Old 04-21-2003, 04:40 PM   #3
1_8_7
Member
 
Registered: Apr 2003
Distribution: slackware 9.0
Posts: 44

Original Poster
Rep: Reputation: 15
thanks, ill give that a try...im new though remember so i gotta read what you wrote very carefully ...and don't be surprised if im back saying i don't understand!
 
Old 04-21-2003, 04:45 PM   #4
1_8_7
Member
 
Registered: Apr 2003
Distribution: slackware 9.0
Posts: 44

Original Poster
Rep: Reputation: 15
how do i get into my fstab? im trying this:

cd /etc/fstab and it says directory does not exist.
 
Old 04-21-2003, 04:49 PM   #5
nakkaya
LQ Guru
 
Registered: Jan 2003
Location: Turkey&USA
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398

Rep: Reputation: 45
thats not a directory thats a file

su root <-first command
cd /etc
<editor> fstab
 
Old 04-21-2003, 04:58 PM   #6
1_8_7
Member
 
Registered: Apr 2003
Distribution: slackware 9.0
Posts: 44

Original Poster
Rep: Reputation: 15
Ok, everything is added. Now, how do i create the map point and what is a map point exactly and where would i want to create the map point?
 
Old 04-21-2003, 05:00 PM   #7
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
It's mount point,
as root do a
mkdir /path_to_dir/dir
whereever you want it

Commonly it would be under /mnt

Cheers,
Tink
 
Old 04-21-2003, 10:58 PM   #8
TexasDex
Member
 
Registered: Feb 2003
Location: The Attic. Nowhere near Texas.
Distribution: Gentoo, Kubuntu, formerly LFS, SuSE, and RedHat
Posts: 133

Rep: Reputation: 15
The (quick) Guide to mounting volumes by TexasDex:

DEVICE NAMES: Each partition has a device name that looks like /dev/hda3
The HD means it's a hard disk, the A means it's the first (master) hard disk, and the number means it's the third partition on the disk.
So to access the first partition on the second disk you would use the device /dev/hdb1

MOUNTING: Because Linux has only one Root directory (referred to by the symbol / ) every other partition must be mounted into a directory on that file structure. This is most obvious when you need to use a CD or floppy: There is no A: or D: drive but instead a /mnt/floppy and a /mnt/cdrom as the default points for mounting those external drives.

To mount a partition:
First you need to make the mount point (fancy name for a directory with a partition mounted on it)
Use this command:
mkdir /mnt/old_hd

To mount your windows partition you would use this command:
mount -t vfat /dev/hda1 /mnt/old_hd

REMEMBER: All linux commands are case-sensitive!

WARNING: Linux does not manage file permissions well with non ext2/3 file systems. I reccomend you move the files to another drive and reformat the partition as ext3.

I hope this helps.

<edit>
Information on /etc/fstab
FSTAB is a list of partitions to load when the computer boots. Each partition needs an entry there unless you don't mind mounting it manually (if you are not using the partition over a long period it isn't nessesary)
</edit>

Last edited by TexasDex; 04-23-2003 at 05:09 PM.
 
Old 08-18-2003, 12:22 PM   #9
len
Member
 
Registered: Jun 2003
Distribution: slackware 14
Posts: 143

Rep: Reputation: 15
i have a similar situation- added a slave hdd installed slackware 9.0. master hdd has a fubar'd damn small linux hdd instal on hda1. i am attempting to mount hda1 from slackware hdb1 w/ any luck. /dev/hda1 doesn't exist in /ect/fstab- so i am assuming that i need to mannually add it in there- i'm just not sure how to do this. hda1 has ext2 file system would it look like this
Code:
mount -t ext2 /dev/hda1 /mnt/old_hd
or do i need to write something into /ect/fstab first before attempting this?- and whats the proper label for ext2 file system e2fs, or ext2fs, or something else?
 
Old 08-18-2003, 12:31 PM   #10
len
Member
 
Registered: Jun 2003
Distribution: slackware 14
Posts: 143

Rep: Reputation: 15
i think i did it. i used this
Code:
mount -t ext2 /dev/hda1 /root
and then did 'ls /root/root', and see a specific file that is only on that hda1 partition. now i need to be able to somehow locate the specific files desired, copy and paste them (or use a command to make it happen) to hdb1. i'm still a bit lost. any input is appreciated.

edit- perhaps i should create aboot disk, or trouble shoot the hda1 partition, as it doesn't currently boot up. holy crap, like i'm a veteran linux user- don't i wish.

Last edited by len; 08-18-2003 at 12:37 PM.
 
Old 08-18-2003, 01:10 PM   #11
Bjørn
LQ Newbie
 
Registered: Aug 2003
Location: The Netherlands
Posts: 24

Rep: Reputation: 15
Copy command: cp

cp [options] file path
cp [options] file... directory

See 'man cp' for more details. Now you want them on your hdb1 disk so you'll need to mount that somewhere too. Suppose you mount that on /mnt/hdb1, then:

cp -R /root/root /mnt/hdb1

Will copy your /root/root directory to your /mnt/hdb1 directory, having specified -R to make it copy subdirectories recursively. If cp finishes succesfull, /mnt/hdb1/root will look identical to /root/root, with the addition of files that may have already been present on your hdb1 disk.

Hmm, maybe I should note: I am not responsible for any mistakes or any unwanted effects my instructions might have...
 
Old 08-18-2003, 01:22 PM   #12
len
Member
 
Registered: Jun 2003
Distribution: slackware 14
Posts: 143

Rep: Reputation: 15
Quote:
Hmm, maybe I should note: I am not responsible for any mistakes or any unwanted effects my instructions might have...
this is comforting.

perhaps i need to copy to temp for safety reasons, just to verify procedures?

Last edited by len; 08-18-2003 at 01:26 PM.
 
Old 08-18-2003, 03:32 PM   #13
georg9
LQ Newbie
 
Registered: Jul 2003
Location: europe
Distribution: slackware
Posts: 13

Rep: Reputation: 0
> Be aware that ntfs can't be written to safely

I have a similar situation using windows 98

Can slackware safely write to fat32 ?
(mounted as vfat)
 
Old 08-20-2003, 06:11 AM   #14
Bjørn
LQ Newbie
 
Registered: Aug 2003
Location: The Netherlands
Posts: 24

Rep: Reputation: 15
Yes, writing to FAT32 is stable enough that it can be enabled without hacking about. :-) Here's a line for /etc/fstab that mounts my FAT32 music partition (shared between Windows and Slackware), making it readable and writable by all users:

/dev/hda6 /mnt/music vfat defaults,umask=000 0 0

The umask=000 is for permissions stuff, I do not know if permissions on /mnt/music have any effect.

len:
If you have enough space on the partition with /tmp on it, sure try it and see what happens. I would try it with a small part though.
 
Old 08-20-2003, 09:05 AM   #15
georg9
LQ Newbie
 
Registered: Jul 2003
Location: europe
Distribution: slackware
Posts: 13

Rep: Reputation: 0
> Yes, writing to FAT32 is stable enough that it can be
> enabled without hacking about. :-)

Does Linux "know" that fat32 doesn't accept files larger than 2 GByte? Or do I eventually blow up the fat32 partition if I accidentally copy a larger file to it by Linux?
 
  


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
Hard Drive Question Ghost of War Linux - Hardware 2 10-21-2003 01:35 PM
2 Hard Drive Question jmelgin Linux - Newbie 2 09-15-2003 07:06 PM
hard drive question Joey.Dale Linux - Hardware 1 09-01-2003 11:42 AM
hard drive question wr3ck3d Linux - Hardware 2 03-14-2003 02:54 PM
hard drive question kylo8787 Linux - General 2 03-01-2002 03:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:32 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