View previous topic :: View next topic |
Author |
Message |
fusion1275 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 30 Oct 2005 Posts: 185
|
Posted: Sun Oct 30, 2005 3:58 am Post subject: Helloo mr hard drive, are you out there???????? [SOLVED] |
|
|
Hi there everyone,
I have been a gentoo user on and off for a while now but I have been stumped by a real silly situation.....
Gentoo was installed a while ago now but before I started the install I copied alot of my files from win xp to my 2nd hard drive which was just a spare disk on with a windows partition. The plan was.... to copy the files.... remove windows.... install gentoo and then copy the files back over into /home.
BUT....
How the hell do I read the 2nd hard drive to get to the files??? I have been searching around but had no luck. I installed webmin the other day too and in an option on that "Partitions on local disks (under hardware tab)" it picked up the drive with all my little babies on it, But where do I go from here??
I really hope someone can give me some clue or direction.
Many thanks in advance. _________________ AMD XP 2600+
Mem: 1gb
Disk1: 60gb
Disk2: 250gb
Disk3: 250gb
Kernel: 2.6.19-r5
KDE: 3.5.5
Last edited by fusion1275 on Sun Oct 30, 2005 5:56 am; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
yabbadabbadont Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/13361939844cd4b5d53ebe4.jpg)
Joined: 14 Mar 2003 Posts: 4791 Location: 2 exits past crazy
|
Posted: Sun Oct 30, 2005 4:25 am Post subject: |
|
|
Post the contents of /etc/fstab and the output of 'fdisk -l'. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
sargek Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/666594299476b0ce5d3041.jpg)
Joined: 13 Mar 2005 Posts: 170 Location: Texas
|
Posted: Sun Oct 30, 2005 4:26 am Post subject: Re: Helloo mr hard drive, are you out there???????? |
|
|
fusion1275 wrote: | Hi there everyone,
I have been a gentoo user on and off for a while now but I have been stumped by a real silly situation.....
Gentoo was installed a while ago now but before I started the install I copied alot of my files from win xp to my 2nd hard drive which was just a spare disk on with a windows partition. The plan was.... to copy the files.... remove windows.... install gentoo and then copy the files back over into /home.
BUT....
How the hell do I read the 2nd hard drive to get to the files??? I have been searching around but had no luck. I installed webmin the other day too and in an option on that "Partitions on local disks (under hardware tab)" it picked up the drive with all my little babies on it, But where do I go from here??
I really hope someone can give me some clue or direction.
Many thanks in advance. |
No problem is silly, it's just a challenge waiting to be solved! I am assuming you are running Gentoo on the machine with two hard drives in it, one of them the drive in question, right? If so, have you run to see what the drive designation is for the drive in question? If you know the drive designation (/dev/hda, /dev/hdb, etc), then you can mount it and pull the files off it. _________________ "Amongst all things, knowledge is truly the best thing: from it's not being liable ever to be stolen, from it's not being purchasable, and from it's being imperishable." |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fusion1275 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 30 Oct 2005 Posts: 185
|
Posted: Sun Oct 30, 2005 4:45 am Post subject: |
|
|
Hi there
Thanks for your reply. Basically I have gentoo installed as my 1 and only OS now on the 60gb disk as described in my signature list below. The 40gb disk was just a junk extra disk I used to use with windows which I had previous to gentoo and yes both HD's are in the same pc. Here is my fstab as requested:
/dev/hdb1 /boot ext3 noauto 1 1
/dev/hdb3 / reiserfs noatime,notail,rw 0 1
/dev/hdb2 none swap sw 0 0
/dev/hdb5 /var reiserfs noatime,notail,rw,auto 0 2
/dev/hdb6 /opt reiserfs noatime,notail,auto 0 2
/dev/hdb7 /usr reiserfs noatime,notail,rw,auto 0 2
/dev/hdb8 /home reiserfs noatime,notail,rw,auto 0 2
/dev/cdrom /mnt/cdrom auto noauto,ro 0 0
/dev/fd0 /mnt/floppy auto noauto 0 0
# NOTE: The next line is critical for boot!
none /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
The disk in question was formatted as a fat32 and can be picked up on webmin but I just dont know how to mount the badboy. I did the "fdisl -l" and here is it:
Disk /dev/hda: 40.9 GB, 40982151168 bytes
255 heads, 63 sectors/track, 4982 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 3502 28129783+ c W95 FAT32 (LBA)
/dev/hda2 3503 4981 11880067+ f W95 Ext'd (LBA)
/dev/hda5 3503 4981 11880036 7 HPFS/NTFS
Disk /dev/hdb: 60.0 GB, 60040544256 bytes
16 heads, 63 sectors/track, 116336 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 69 34744+ 83 Linux
/dev/hdb2 70 2054 1000440 82 Linux swap / Solaris
/dev/hdb3 2055 4039 1000440 83 Linux
/dev/hdb4 4040 116336 56597688 5 Extended
/dev/hdb5 4040 17929 7000528+ 83 Linux
/dev/hdb6 17930 21898 2000344+ 83 Linux
/dev/hdb7 21899 31820 5000656+ 83 Linux
/dev/hdb8 31821 51662 10000336+ 83 Linux
Ok so I see it is on dev/hda1/hda2/hda5. So im guessing I need to add this in the fstab? kinda something like....
/dev/hda1 /mnt/win vfat noauto 1 1
Is that anywhere near? And would I do it for all 3? _________________ AMD XP 2600+
Mem: 1gb
Disk1: 60gb
Disk2: 250gb
Disk3: 250gb
Kernel: 2.6.19-r5
KDE: 3.5.5 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
yabbadabbadont Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/13361939844cd4b5d53ebe4.jpg)
Joined: 14 Mar 2003 Posts: 4791 Location: 2 exits past crazy
|
Posted: Sun Oct 30, 2005 5:02 am Post subject: |
|
|
That will work for /dev/hda1, but /dev/hda2 is an extended partition and can't be mounted. You can mount /dev/hda5, but you will need NTFS read support in your kernel and will need to change the filesystem type accordingly in the fstab line for it.
Something like this for /dev/hda5: Code: | /dev/hda5 /mnt/win2 ntfs ro,nls=iso8859-1,uid=1000,gid=100 0 0 |
Here is my /etc/fstab which contains entries for vfat, ntfs, and ext3 partitions: Code: | /dev/sda8 / ext3 noatime 0 1
/dev/sda7 none swap sw 0 0
/dev/hda1 /mnt/win ntfs ro,nls=iso8859-1,uid=1000,gid=100 0 0
/dev/sda6 /mnt/mp3 vfat defaults,sync,umask=0 0 0
/dev/sda9 /mnt/flac ext3 noatime 0 2
/dev/hdc /mnt/dvd udf,iso9660 user,noauto 0 0
/dev/hdd /mnt/cdrom udf,iso9660 user,noauto 0 0
/dev/fd0 /mnt/floppy auto user,noauto,sync 0 0
/dev/sdb1 /mnt/usb vfat user,noauto,sync,umask=0 0 0
# NOTE: The next line is critical for boot!
proc /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fusion1275 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 30 Oct 2005 Posts: 185
|
Posted: Sun Oct 30, 2005 5:07 am Post subject: |
|
|
Ok thanks I will give it a try now.
Dont suppose your /mnt/mp3 partition is an external mp3 player kinda like an Archos for an example???? If so I think you have just solved another one of my little problems ![Very Happy :D](images/smiles/icon_biggrin.gif) _________________ AMD XP 2600+
Mem: 1gb
Disk1: 60gb
Disk2: 250gb
Disk3: 250gb
Kernel: 2.6.19-r5
KDE: 3.5.5 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
sargek Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/666594299476b0ce5d3041.jpg)
Joined: 13 Mar 2005 Posts: 170 Location: Texas
|
Posted: Sun Oct 30, 2005 5:09 am Post subject: Mounts |
|
|
Before you add them to your /etc/fstab, you might want to mount them from the command line first. BUT, before you do that, do you have support for vfat and ntfs in your kernel? If you have support built into the kernel, try mounting the drive from the command line like this:
Code: |
mount -t vfat /dev/hda1 /mnt/windows
|
You will need to create a directory (/mnt/windows) or whatever you want to call it, for each partition you want to mount. This command will only mount one partition at a time, so you will need to run it (with the appropriate partition #) for each partition you want to mount. If you can successfully read data from them, you can mount them in your /etc/fstab. I do not know how reliable the NTFS read/write capabilities are in Linux because I have never written to an NTFS drive before. I do know you can read and write to fat32 (vfat) all day long though...Your /etc/fstab line (/dev/hda1 /mnt/win vfat noauto 1 1 ) is good, but I am not sure about the 1 1 at the end - that is for a file system check, and not sure if that will work. Better to say 0 0. If you are going to keep this file system intact and use it in the future, you will need to tweak the permissions in your /etc/fstab. My line for my usb sticks (vfat) is as follows:
Code: |
/dev/sdb1 /mnt/usbhome vfat user,rw,noauto,umask=000 0 0
|
Don't pay attention to the drive designation, I am just pointing out the user,rw,umask=000 00 portion. Do not include the 'noauto' statement if you want to mount this in your /etc/fstab automatically though - my entry here is for a usb stick, which I mount on demand. I may get guff for the 'umask=000' entry because of permissions (too loose), but this is my machine, no one has access to it, and this drive isn't mounted for more than a few seconds while I do a backup.
Do not forget to unmount the partitions before you shut down the machine! Basically, that's just or whatever partition you mounted. If you are just going to read files from this drive then blow it away later, you will only need to read the data, and won't need to write. If that's the case, you probably don't need to add the drive partitions to your /etc/fstab either, unless you are going to eventually format it and use it with a Linux file system. _________________ "Amongst all things, knowledge is truly the best thing: from it's not being liable ever to be stolen, from it's not being purchasable, and from it's being imperishable." |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
yabbadabbadont Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/13361939844cd4b5d53ebe4.jpg)
Joined: 14 Mar 2003 Posts: 4791 Location: 2 exits past crazy
|
Posted: Sun Oct 30, 2005 5:17 am Post subject: |
|
|
Nope. Just another partition on my 250GB SATA harddrive... I still have 64GB of unpartitioned space. Of course, I remember when I would have killed for a 5 megabyte MFM drive. That machine had one 360K 5-1/4" drive, 320K of memory, and ran at a whopping 7MH... and it was a step up from the previous machine. I do NOT miss the good ole days.
I have a Nomad Jukebox (original 6GB version) and a Sonic Blue Rio SP250 (hacked with the IRiver firmware since S.B. went belly up). I use either gnomad2 or zen explorer to transfer files to the Nomad. What model player do you have? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fusion1275 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 30 Oct 2005 Posts: 185
|
Posted: Sun Oct 30, 2005 5:26 am Post subject: |
|
|
Thank you very much everyone all is now mounted and all files now transfered over!
You lot rock!!!!
I have an Archos AV400 with a 60gb disk in it. Any idea on how get that picked up and mounts itself when turned on? Its plugged in via USB.
I just ran "tail -f /var/log/messages" and this is the output:
Oct 30 05:23:43 fusion scsi0 : SCSI emulation for USB Mass Storage devices
Oct 30 05:23:43 fusion usb-storage: device found at 3
Oct 30 05:23:43 fusion usb-storage: waiting for device to settle before scanning
Oct 30 05:23:48 fusion Vendor: TOSHIBA Model: MK6021GAS Rev: GA02
Oct 30 05:23:48 fusion Type: Direct-Access ANSI SCSI revision: 00
Oct 30 05:23:48 fusion SCSI device sda: 117210241 512-byte hdwr sectors (60012 MB)
Oct 30 05:23:48 fusion sda: assuming drive cache: write through
Oct 30 05:23:48 fusion SCSI device sda: 117210241 512-byte hdwr sectors (60012 MB)
Oct 30 05:23:48 fusion sda: assuming drive cache: write through
Oct 30 05:23:48 fusion sda: sda1
Oct 30 05:23:48 fusion Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
Oct 30 05:23:48 fusion Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0
Oct 30 05:23:48 fusion usb-storage: device scan complete
Oct 30 05:23:48 fusion scsi.agent[14472]: disk at /devices/pci0000:00/0000:00:10.0/usb2/2-1/2-1:1.0/host0/target0:0:0/0:0:0:0
So it does get picked up but how to I get it mounted as soon as it comes alive?? _________________ AMD XP 2600+
Mem: 1gb
Disk1: 60gb
Disk2: 250gb
Disk3: 250gb
Kernel: 2.6.19-r5
KDE: 3.5.5 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
yabbadabbadont Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/13361939844cd4b5d53ebe4.jpg)
Joined: 14 Mar 2003 Posts: 4791 Location: 2 exits past crazy
|
Posted: Sun Oct 30, 2005 5:30 am Post subject: |
|
|
Create a mount point for it and try to mount it manually first.
Run 'fdisk -l /dev/sda' and see what type of partition it says it has. It is probably vfat.
Then you can 'mount -t vfat /dev/sda1 /mnt/Achros' or 'mount -t auto /dev/sda1 /mnt/Achros'
EDIT: I just looked up your player on Amazon.com... I know what I want for Christmas! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fusion1275 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 30 Oct 2005 Posts: 185
|
Posted: Sun Oct 30, 2005 5:40 am Post subject: |
|
|
SUPERB!! its mounted and I have my music back once again
So will it be detected evertime I connect it to my pc and switch it on? or will I have to mount it everytime?
This is what I used and worked:
mount -t vfat /dev/sda1 /mnt/mp3 _________________ AMD XP 2600+
Mem: 1gb
Disk1: 60gb
Disk2: 250gb
Disk3: 250gb
Kernel: 2.6.19-r5
KDE: 3.5.5 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fusion1275 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 30 Oct 2005 Posts: 185
|
Posted: Sun Oct 30, 2005 5:42 am Post subject: |
|
|
And yes get one dude! They kick ass... damn pricey but well worth the value ![Very Happy :D](images/smiles/icon_biggrin.gif) _________________ AMD XP 2600+
Mem: 1gb
Disk1: 60gb
Disk2: 250gb
Disk3: 250gb
Kernel: 2.6.19-r5
KDE: 3.5.5 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
yabbadabbadont Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/13361939844cd4b5d53ebe4.jpg)
Joined: 14 Mar 2003 Posts: 4791 Location: 2 exits past crazy
|
Posted: Sun Oct 30, 2005 5:45 am Post subject: |
|
|
If you add it to your fstab with a noauto option then you will need to mount it with a command like 'mount /mnt/mp3'. You don't want to add it to fstab without the noauto option.
There are ways of getting USB media mounting automagically, (read up on HAL, DBUS, IVMAN), but I've never found them to be reliable. (I may just not have had them configured correctly)
If you use KDE, you can create an icon on your desktop that refers to the fstab entry. You can then just right-click the icon and choose to mount or unmount the device. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fusion1275 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 30 Oct 2005 Posts: 185
|
Posted: Sun Oct 30, 2005 5:49 am Post subject: |
|
|
You are a star!!
Many thanks for your help. I will be able to sleep better now ![Very Happy :D](images/smiles/icon_biggrin.gif) _________________ AMD XP 2600+
Mem: 1gb
Disk1: 60gb
Disk2: 250gb
Disk3: 250gb
Kernel: 2.6.19-r5
KDE: 3.5.5 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
yabbadabbadont Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/13361939844cd4b5d53ebe4.jpg)
Joined: 14 Mar 2003 Posts: 4791 Location: 2 exits past crazy
|
Posted: Sun Oct 30, 2005 5:52 am Post subject: |
|
|
<nag mode>Don't forget to edit the subject line of your original post to include the word SOLVED.</nag mode>
(and you get an extra hour of sleep tonight too, what a deal ) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fusion1275 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 30 Oct 2005 Posts: 185
|
Posted: Sun Oct 30, 2005 5:55 am Post subject: Helloo mr hard drive, are you out there????????[SOLVED] |
|
|
LIFE IS GOOD hehehehe [/b] _________________ AMD XP 2600+
Mem: 1gb
Disk1: 60gb
Disk2: 250gb
Disk3: 250gb
Kernel: 2.6.19-r5
KDE: 3.5.5 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|