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 12-22-2006, 09:04 PM   #1
bookgekgom
Member
 
Registered: Dec 2006
Posts: 41

Rep: Reputation: 15
help with hard drive (im a super noob)


ok.
-in windows i could move all movie files from C; -> D;
just cut and paste.
how can i move my files from first hard drive to second hard drive in Fedora core 6?

-do i need to mount 2nd hard disk?

-how?

plz give me friendly short and exact answers. thanks.

i use 2x250 gb hard disks.


##I typed fdisk -l and I got this below##

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 30401 244091610 8e Linux LVM

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 30401 244196001 8e Linux LVM

-----------------------------------------------------------------------------------------

Last edited by bookgekgom; 12-22-2006 at 09:11 PM.
 
Old 12-23-2006, 12:14 AM   #2
letitgo
Member
 
Registered: Jul 2003
Location: New Orleans
Distribution: Slackware 14.2
Posts: 116
Blog Entries: 1

Rep: Reputation: 16
Hi,
There is no short answer for a question as general as you've
asked.
In Linux the structure one moves files between is called
a directory. When you installed fedora for instance, you
were asked where to install the root directory. When you
first logged in as a non-root user you were in the
/home/<username> directory.

If you have gnome or kde as your desktop gui I think you'll
find drag and drop between open filemanager windows
much the same as in windows. To use the command line the basic
command is "mv" If you wished to move a file called "file"
between a directory with its mount point /dir1 on hard disk
"hda" to a directory /dir2 mounted on "hdb" The "hdx" names
are not used. At the prompt one enters:

#mv /dir1/file /dir2/

and to rename while moving

#mv /dir1/file /dir2/newname

Note that the where the directories themselves are mounted
will determine if the file moves from one physical hard drive
to another.

You can view the mount points several ways..perhaps the easiest
at a terminal is

#cat /etc/fstab

My fstab looks like this
Code:
/dev/hda3        swap             swap        defaults         0   0
/dev/hdb3        swap             swap        defaults         0   0
/dev/hdb2        /                reiserfs    defaults         1   1
/dev/hdb1        /boot            reiserfs    defaults         1   2
/dev/hdb5        /home            reiserfs    defaults         1   2
/dev/hdb6        /spare           reiserfs    defaults         1   2
/dev/hda5        /nemo1           ext2        defaults,user    1   2
/dev/hda6        /nemo2           ext2        defaults,user    1   2
/dev/hda7        /nemo3           ext2        defaults,user    1   2
/dev/hda1        /XP              ntfs        ro               1   0
/dev/hda2        /fat-e           vfat        defaults,unmask=000  1   0
/dev/sr0         /mnt/cdrom       iso9660     noauto,user,ro   0   0
/dev/scd0        /mnt/cdrecorder  auto        noauto,user,unhide   0   0
/dev/fd0         /mnt/floppy      auto        noauto,user      0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
none             /mnt/ramfs       tmpfs       defaults         0   0
tmpfs            /dev/shm         tmpfs       defaults         0   0
Where the first col is the physical device, the second is the
mount point. The directory /home is mounted on physical
device hdb on partition 5 I.E., hdb5

Most distributions come with some basic docs, and if you google things like "linux commands" info is plentiful.

I hope this helps
--Lawrence
 
Old 12-23-2006, 12:54 AM   #3
bookgekgom
Member
 
Registered: Dec 2006
Posts: 41

Original Poster
Rep: Reputation: 15
aw u r really good.

ur simple explanations that i could understand.
actually u told me what i need. if i can know which directory is on which hard disk, i can move my big files to other hardisk.
i typed to know what directories were installed on which hard disk.
TYPED "cat /etc/fstab" and got.
------------------------------------------------------------------------------
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
-------------------------------------------------------------------------------
because i installed with LVM my both hard disks are in group "/dev/VolGroup00/LogVol00 /"
i want to know if there is anyway to seperate my 2 hard disks for the one group.
cuz, i am worried about if i download huge file which is over 250gb, that would cause problems on one hard drive.
or, if i download 250gb file, does linux sperate them 125gb each on each hard drives?

when i bought 2 hard drives, i was planning one for system and another for my own stuff...
T_T
plz help.

--------------------------------------------------------------------------------extra info----
typed "lvdisplay" and got
------------------------------------------------------------------------------------------
File descriptor 11 left open
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol00
VG Name VolGroup00
LV UUID DnwMvJ-KKBQ-pRe9-atXH-iCil-Ky9h-rsIzI8
LV Write Access read/write
LV Status available
# open 1
LV Size 463.66 GB
Current LE 14837
Segments 2
Allocation inherit
Read ahead sectors 0
Block device 253:0

--- Logical volume ---
LV Name /dev/VolGroup00/LogVol01
VG Name VolGroup00
LV UUID WdsodE-lVZT-k2MD-V17q-H5EM-8Saw-rHJrfc
LV Write Access read/write
LV Status available
# open 1
LV Size 1.94 GB
Current LE 62
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:1
-----------------------------------------------------------------------------------------
thanks for helping.
 
Old 12-23-2006, 06:57 PM   #4
letitgo
Member
 
Registered: Jul 2003
Location: New Orleans
Distribution: Slackware 14.2
Posts: 116
Blog Entries: 1

Rep: Reputation: 16
This is less basic. I don't use raid logical volumes,
but I believe that logical volumes may be split over two or
more physical devices. I may be mistaken, but I have
the impression that one sets the map from volume to device
before installation, then the raid hardware/software controls
where files and their images are stored. Forcing a particular
split to physical device sounds to me as though it defeats the
purpose of a raid array. But I'm just guessing, I don't know
how to do what you want to do. Perhaps someone else does.

Sorry,
--Lawrence
 
Old 12-23-2006, 07:03 PM   #5
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
With the particular LVM you have set up it appears you have a volume group with both of your hard drives in it, and thus the OS only sees one HDD. This makes it impossible to transfer files from one disc to another as you are using both as one.

Regards,

Alunduil
 
Old 12-23-2006, 08:25 PM   #6
bookgekgom
Member
 
Registered: Dec 2006
Posts: 41

Original Poster
Rep: Reputation: 15
thanks for all helping.
actually i decided to stop worrying about it. cuz i was worrying about that system would freeze if the first drive(which has linux system in it) will be full.
however, someone told me the hard drive wont freeze although first drive is full cuz they will use other drive.
i got confused cuz i used windows too much....and it made me worry about having lack of space.
oh well. this is great.
linux rocks.
however, what's gonna happen if i wanna take one hard drive out...will it effect my system?
hehe thanks
 
Old 12-25-2006, 03:09 PM   #7
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
Since the OS is seeing only one disc and using LVM to do so, yes, your system would be unusable without both of your hard drives.

Regards,

Alunduil
 
  


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
Xfce! A few simple questions for a super-noob Taigrr Linux - Software 3 04-04-2006 05:16 PM
Linux super noob questions(very urgent) lolz Fedora 19 10-23-2005 09:39 PM
Super noob question about make jimjamjahaa Linux - Newbie 3 03-10-2005 02:35 PM
SUPER ultra noob question lellyville Slackware 7 03-03-2005 02:04 PM
Super duper NOOB I don't know what su and root is boundsofdreams Linux - Newbie 1 06-19-2004 09:30 AM

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

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