LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > DamnSmallLinux
User Name
Password
DamnSmallLinux This forum is for the discussion of DamnSmallLinux.

Notices


Reply
  Search this Thread
Old 05-09-2007, 08:30 PM   #1
Andriy
Member
 
Registered: Dec 2005
Distribution: Slackware, SLAX, Redhat, Fedora
Posts: 133

Rep: Reputation: 15
Cool How do I configure DSL to automatically see and mount local partitions?


I have partitions that I normally use for Slack11. Whenever I use windows, I want to do some things on Linux so I tried using DSL(embedded). To my surprise when I issued df -h command, it only shows the filesystem created by DSL. Therefore, I can't manually/automatically mount those partitions. How do I do approach this? Do i have to make custom configuration on /etc/fstab? Thanks in advance.
 
Old 05-10-2007, 01:23 AM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
First, the df command only shows the partitions that are currently mounted. If you want to see all hard disk partitions (mounted or not) that DSL can see, use (as root):

fdisk -l

(the parameter is the letter "el", not the numeral "one")

I have never worked with DSL embedded, so I don't know if it has the ability to seel the real hard drive partitions or not. But if it does, you should be able to mount them manually with the mount command. For example:

mount /dev/hda3 /mnt/hda3

would mount /dev/hda3 on mount point /mnt/hda3. The command must be run as root (or using sudo) and the mount point must already exist.

Alternatively, you can, as root edit your etc/fstab file.
 
Old 05-22-2007, 03:33 AM   #3
Jon Briggs
Member
 
Registered: Aug 2006
Distribution: openSUSE 11.1 and pupeee
Posts: 90

Rep: Reputation: 15
that command doesn't work if you run DSL on a usb stick becuase it doesn't see the NTFS drives at all in the first place.

I have this problem too and not found a solution to it yet. And for me its a bit of a deal breaker becuase the main purpose for me trying DSL in the first place is so i can boot to it and recover peoples data either by copying it to the usb stick itself or over the network to a share on another pc. Therefore automounting ntfs is pretty fundamental which is why its surprising it doesn't do this out of the box.

I'd certainly consider this feature far more important than most of the other apps etc it has like pdf viewer etc etc.
 
Old 05-22-2007, 07:28 AM   #4
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
Originally Posted by Jon Briggs
that command doesn't work if you run DSL on a usb stick becuase it doesn't see the NTFS drives at all in the first place.
Are you actually booting from the usb stick or are you running it from within MS Windows by executing dsl-windows.bat? I just tried reading NTFS from a DSL 2.4 CD on a NTFS partition created with GParted (I don't have the ability to create a "real Windows partition.") and it worked fine. If you are actually booting from the usb drive, I would expect it to work the same as a CD. If you are launching this from within MS Windows as I believe the OP is doing, then I am not totally surprised that you can't see the real hard drive partitions (although I have not tried it myself).

Quote:
Therefore automounting ntfs is pretty fundamental which is why its surprising it doesn't do this out of the box.
No matter how you boot or from what medium, DSL will not automount any hard drive partitions. You have to do that yourself, either using the GUI tool in the lower right hand corner (on the versions I've seen) or via the command line. And on the version of DSL I have (2.4), it will refuse to mount NTFS read-write. But you can still copy files from the NTFS partition.

Last edited by blackhole54; 05-22-2007 at 07:31 AM.
 
Old 05-23-2007, 04:04 AM   #5
Jon Briggs
Member
 
Registered: Aug 2006
Distribution: openSUSE 11.1 and pupeee
Posts: 90

Rep: Reputation: 15
ah it seems you were right. I was using qemu before to test it within windows xp. But if i boot straight to the stick it does see the NTFS drives. I think it set the ntfs drive as hdb1 and the flash drive as sda1, somthing like that.

So i used the explorer type program and got a directory on the flash drive on the right and the ntfs drive on the left.

so i try and make a directory on the usb stick so i could copy over some data form the ntfs drive. Now it says permission denied! So what do i need to do to sort that out?
 
Old 05-23-2007, 11:04 PM   #6
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
Originally Posted by Jon Briggs
so i try and make a directory on the usb stick so i could copy over some data form the ntfs drive. Now it says permission denied! So what do i need to do to sort that out?
I've never run from flash so I am not totally sure. If you're at all comfortable with the command line, use the mount command (w/o parameters) and see if the flash drive is mounted rw. If not, try the command

Code:
sudo mount -o remount,rw /dev/sda1
If it is already mounted rw, see if you can create a directory from the command line something like:

Code:
mkdir /mnt/sda1/testdir
(assuming /mnt/sda1 is where /dev/sda1 is mounted -- that's how they did it in older versions of DSL) If that fails, take a look at the ownership and permissions of /mnt/sda1 with

Code:
ls -ld /mnt/sda1
 
Old 05-24-2007, 02:50 PM   #7
Jon Briggs
Member
 
Registered: Aug 2006
Distribution: openSUSE 11.1 and pupeee
Posts: 90

Rep: Reputation: 15
hey thanks for the reply, but the answer was fairly simple. I just logged in to a shell as 'sudo su' then ran emelfm from there. So i had root access and could copy files so that worked well.

I have had some problems with the saving settings thing too but i guess i should make another thread

Thanks for the help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Help Me, automatically mount ntfs partitions on USB and Firewire drives RottenMutt Fedora 1 11-01-2006 12:27 PM
How do I get X to automatically configure/re-configure at boot? BaptismOfFire Linux - Hardware 4 08-08-2005 09:37 AM
How to mount FAT partitions under Linux automatically cquedugdylp Linux - Hardware 9 03-23-2005 10:14 PM
Why a FSTAB entry will mount using -a switch but will not mount automatically at boot mjen Linux - Newbie 3 05-19-2004 07:45 AM
how do i automatically mount partitions when system starts coolinuxguy246 Linux - Newbie 3 04-25-2004 09:38 AM

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

All times are GMT -5. The time now is 11:40 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration