LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   help with hard drive (im a super noob) (https://www.linuxquestions.org/questions/linux-hardware-18/help-with-hard-drive-im-a-super-noob-513018/)

bookgekgom 12-22-2006 09:04 PM

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

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

letitgo 12-23-2006 12:14 AM

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

bookgekgom 12-23-2006 12:54 AM

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.

letitgo 12-23-2006 06:57 PM

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

alunduil 12-23-2006 07:03 PM

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

bookgekgom 12-23-2006 08:25 PM

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

alunduil 12-25-2006 03:09 PM

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


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