LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mount local hard drive in DSL? (https://www.linuxquestions.org/questions/linux-newbie-8/mount-local-hard-drive-in-dsl-684035/)

needcoffee 11-17-2008 07:32 AM

mount local hard drive in DSL?
 
Hi, I don't know how to mount a local hard drive (NTFS) from DSL - which i'm running in QEMU (under Windows 2000) from a USB stick. Can anyone tell me how I would go about it?
There is just one hard drive which may be ide or sata, i'm not sure and the PC is too locked down for me to check without cracking open the case.

BrianK 11-17-2008 12:54 PM

DSL I'm guessing means "Damn Small Linux", yes?

I've not used that distro, but one can find their available internal disks using fdisk:

sudo fdisk -l

... then you simply mount the partition like you would any other, i.e. "mount /dev/sdb1 /some/local/directory" (you may have to sudo or be root depending on your fstab). I'm not sure if DSL comes with NTFS support out of the box, so you may have to install that.

onebuck 11-17-2008 01:32 PM

Hi,
Quote:

Originally Posted by needcoffee (Post 3344819)
Hi, I don't know how to mount a local hard drive (NTFS) from DSL - which i'm running in QEMU (under Windows 2000) from a USB stick. Can anyone tell me how I would go about it?
There is just one hard drive which may be ide or sata, i'm not sure and the PC is too locked down for me to check without cracking open the case.

You are running DSL VM client on a VM host running W2K with QEMU. You should look at the documentation as too how you would read a host filesystem. If it is a USB flash/drive then you have to make certain that the USB is enabled for the client. Once that has been enabled it is just a manner of mount/umount for the device from the 'cli'.

needcoffee 11-17-2008 02:27 PM

Thanks for the input guys, yes DSL = Damn Small Linux. I think there may be some fundamental problem, I shall check out the DSL documentation but I need a quick answer really.

From a root shell I tried fdisk -l and this was the output:

Code:

Disk /dev/hda: 128 MB, 128057344 bytes
255 heads, 63 sectors/track, 15 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

Needless to say that is the USB flash drive, not the local hard drive.

Maybe I should give up with DSL and use an ubuntu live CD? Unless anyone has a bright Idea? I tried using samba on localhost but either i'm not doing it right or it isn't possible.

Cheers,

onebuck 11-18-2008 10:20 AM

Hi,

Apparently your device is showing no partitions. What filesystem is supposed to be there?

Just remember that if you allocate a space for the client it still has to be prepared with a filesystem.

If '/dev/hda' is the correct device then either create partition(s) then make the filesystem or just make the filesystem on that device.


All times are GMT -5. The time now is 12:20 PM.