Debian :: Automount An Ext2 USB Disk ?

May 18, 2009

I have recently bought a Toshiba 1TB external USB disk.

I have formatted it using gparted to ext2 and Debian see's it but gives me an error "unable to mount volume" with some extra stuff about programs shouldn't disconnect shared drives.

I can mount it ok by creating a folder called usbdisk and the mount command "mount -t ext2 /dev/sda1 /home/mike/usbdisk" and it works fine, but I have to do this everytime I start the machine.

Does anyone know what exactly I should put into a setup file to make the machine do this everytime , but only if its there.

As I'm not very clued up on bash scripting , I'm assuming it something along these lines:

How would I add this at boot?? Would I add it to the end of "init.d/rc" ?

View 1 Replies


Fedora :: Hard Disk Data Recovery Of Ext2 And Ext3

Jul 1, 2010

I am student of MCS and working on final project. I am the user of windows xp. I am new in Linux. I am working on a project that titles "Hard disk data Recovery of ext2 and ext3 in linux". In windows, including dos.h and bios.h header files in program of c language I can send interrupt to bios and access most of the devices like parallel port, hard disks etc. But problem is that there is no bios.h and dos.h files in gcc. Now how can I access my hard drive using c program. How can I call int13h interrupt in linux or there is any other function in the linux to access the hard disk. In fact I want to access sectors of my hard disk using c language program. How can I do it?

View 2 Replies View Related

SUSE / Novell :: Automount USB Disk Without Being Logged In

Nov 30, 2008

I have OpenSuSE 11.0 running on a machine. I want to be able to automount a USB disk but it seems at the moment automounting only works if your logged in to a KDE desktop. That's no use to me as I want the disk to be used by automated processes when available.

How can I set the disk up so that it auto mounts when I plug it in regardless of whether there is an active desktop or console session. It should be able to handle being removed and then reinserted with out a reboot or without having to log on.

View 8 Replies View Related

General :: Unable To Automount Ext3 Formated Usb Disk

Jun 14, 2010

I have a NAS from WD that runs some stripped down flavor of linux. The NAS has one USB port at the back which can be used to expand the storage. If I plug in an external disk formated in either NTFS or HFS+ then the system automatically mounts the disk and shares it over samba. If I plug in a disk that is formated in ext3, the disk is recognized but that's about it. It doesn't mount or get shared or anything. I have tried asking WD about this and I have tried asking google. But after two days of searching I am turning here for some more expert advice.

Here is what I've managed to figure out so far.

If I check dmesg before and after plugging in the ext3 usb disk I have found out that these lines are added to the log:


I have tried googleing those last two lines but I haven't found any info that I can make any sense of.

If I run the command "mount -a" I get the following messages from the shell: "mount: Cannot read /etc/fstab: No such file or directory"

Hover I am able to mount the ext3 disk manually. First I get this info from fdisk


And then I run these two commands:


This makes the usb disk visible in the shell, but since this is a NAS, it is kinda useless as long as it doesn't show up in samba.

Since I'm pretty new to linux I don't know what to try next so I'm hoping for some advice as to what I can do to make the ext3 usb disk automount.

View 6 Replies View Related

Red Hat / Fedora :: Automount LUKS Encrypted NTFS USB Disk In RHEL 5.3

Dec 23, 2009

I have an external 300GB (Toshiba) disk which I encrypted (using cryptsetup luksFormat) and then installed an NTFS filesystem on (need to be able to use it in both Linux and Windows - using FreeOTFE). The disk mounts fine in windows and on my Fedora 10 system it automounts.

I can manually mount it on the RHEL5.3 system, and gnome-mount gets as far as recognising that it is encrypted and asking for the key, but it doesn't then mount it - I then have to manually mount the /dev/mapper/luks... device.

Does anyone know how to do this - if it works in Fedora 10 it ought to be possible to get it to work in EL5.3 I'd have thought.

View 4 Replies View Related

Slackware :: Automount LUKS Encrypted USB Disk As Regular User

Oct 29, 2009

How can I get a LUKS encrypted partition on an external USB device automounted with r/w access for non-privileged users?

I just reformatted an external USB device with ext4. The only partition is LUKS encrypted. Now, when I plug the device to my computer, KDE notifies me and asks me to enter the LUKS passphrase. Then it mounts the device. Little snag here: Non-privileged users have read-only access.

My user is a member of group plugdev, but not of group disk, as this was discouraged several times, e. g. by Robby Workman. With non-encrypted disks regular users have read/write access, or can change the filemodes accordingly, as far as I recall (currently I have no more non-encrypted disks left to verify it...)

View 11 Replies View Related

Debian Configuration :: Create Lenny Usb-hdd Live With Ext2?

Feb 10, 2011

create lenny usb-hdd live and would like to have ext2 on the usb stick.I changed in config/binary to ext2:LH_BINARY_FILESYSTEM="ext2"but get this problem:# lh_clean # lh_build W: You have selected values of LH_BOOTLOADER and LH_BINARY_FILESYSTEM which are incompatible - syslinux only supports FAT filesystems.

P: Setting up cleanup function

View 7 Replies View Related

Debian :: Convert Ext3 To Ext2 On A Existing System ?

Jan 24, 2011

How to convert all ext3 partitions to ext2 on a existing Lenny without damage a system?


View 2 Replies View Related

Debian Installation :: How To Format Persistent Partition (EXT2 / FAT32)

Feb 18, 2011

I have created live persistent usb-hdd (fat32) image, put into USB stick, but now I should create persistent live-rw partition. How this persistent partition should be formatted? Should I format with ext2, or fat32?

View 1 Replies View Related

Debian :: Usb Automount With RW ?

Nov 20, 2010

I have a simple usb mount problem, but after looking around, haven't been able to solve it. So far I've come across hal, dev, usbmount,pmount, and got lost in all this.

So, when I plug my usb as non-root I get that "not authorized" message. I solved this by installing usbmount package. After that, as non-root, usb mounts, but I can't write, I only have read rights. I tried changing "MOUNT OPTIONS" in usbmount.conf, but no luck.

What is the proper way of automounting usb and how to control access rights and what user can do what?

I also tried with fstab entries, but everytime I unplug my usb stick and plug it back in, /dev entry changes...

View 14 Replies View Related

Debian :: How To Get Debian Lenny To Automount CDs Same As Ubuntu Does?

Aug 21, 2009

Could anyone tell me how to get Debian Lenny to automount CDs the same as Ubuntu does i.e. automatically, with a Desktop icon etc.I've worked out how to automount CDs using autofs, which is OK, but it still doesn't seem quite as good as the way Ubuntu does it.

View 6 Replies View Related

Debian :: Cryptsetup Automount USB Key

Aug 27, 2015

I setup a luks encrypted /home partition on my Debian jessie, with an automount when my usb key containing the luks secret is plugged in at startup.

I did configure /etc/fstab so that my usb key be mounted at startup to /media/usb1, and /etc/crypttab to open my encrypted partition with the key at /media/usb1/homekey. It works.

However, when my usb key is not plugged in, boot fails and never shows welcome screen. I would change this behaviour so that when my usb is missing, boot resumes and do not mount /home partition. How could I manage this?

View 0 Replies View Related

Debian :: Automount USB Drives

Oct 2, 2015

Is there a way to set up your system (running CLI only, no X) to automount flash drives? I know how to mount them manually, but I'd really like it if there was a way to just have the system do it automatically when I plug the drive in so I don't have to do it myself every time.

View 4 Replies View Related

Debian :: Automount - How Does It Work?

Feb 20, 2011

I would ask how automounting of devices works in debian. I'm trying to modify the name of automatic mount point from the label name of devices (or their UUID) to the devices name. That because the UUID is often a very complicated string, meanwhile the label often contains spaces; so become difficult working with theme in scripts...

View 7 Replies View Related

Debian Configuration :: USB Harddisk Does Not Automount?

Jan 6, 2011

I have a small issue where an USB harddisk is not automounting. CD's, USB pens etc. are automounting without issues, so it is a little bit strange.I am mounting it with UUID, because I want the mount point to be the same everytime.As you can see from the fstab, it is NTFS.

[92.388083] usb 1-1: new high speed USB device using ehci_hcd and address 4
[93.079778] usb 1-1: New USB device found, idVendor=0bc2, idProduct=0502


View 10 Replies View Related

Debian :: Automount Inserted Devices?

Jun 5, 2010

I don't have an opportunity to check it out now... Does Debian 6 testing mount inserted CDs/Flash-drives automatically like Ubuntu does? Or the only way to mount them after inserting is to use mount command?

View 7 Replies View Related

Debian Installation :: Errors On Boot: "fsck.ext2: No Such File"?

Jan 19, 2011

I've installed Debian Lenny from USB with the small 8MB netboot image. I only chose "Standard system" in Tasksel during install, to get a clean, minimal install. I also chose for LVM and a separate partition for /home. I have one 1.5TB SATA drive in this machine.

Now everything seems to install just fine, but when I reboot I get the following error:

fsck.ext2: No such file or directory while trying to open /dev/sdb1

I get offered to enter a maintenance shell, or press CTRL-D to resume booting. When I do, the system boots fine and nothing seems wrong. But it is inconvenient, because I can't reboot the machine without physically going to it to press CTRL-D on the keyboard

I have googled for this error and it is mentioned on several forums, but they were all related to other things specific to their installs/machines.

(ps. the only slightly strange thing during install is that the Debian installer included my 1GB USB thumbdrive when it shows all the drives and the partitions before formatting. I removed the USB thumbdrive directly after install, but if I plug it in, I still get the error)

These are the errors during boot:

I've only installed Debian on my laptops, which never had any problems.

View 2 Replies View Related

Debian :: Automount Windows Partition In RW Mode

May 9, 2011

I'm using Debian Squeeze XFCE along with Windows 7 as dual boot on my notebook. I want to access my Windows 7 partitions from Debian for both reading and writing. I was a Ubuntu user in which the Windows partitions were visible by default. I want to know how to mount the drives used by Windows 7 automatically on startup.

View 4 Replies View Related

Debian :: PCMANFM Automount By Non-root User?

Feb 26, 2011

I'm trying to familiarize myself with LXDE to help a friend of mine and one thing I just cannot solve, despite many googles, is how to allow a non-root user to auto-mount drives in the left-hand pane of PCMANFM.Everything works just fine as long as I have the root passwd. Not a huge problem but very irritating none-the-less.

View 9 Replies View Related

Debian Configuration :: Automount External USB HD Using Udev

Jan 23, 2011

I have a problem copying my udev rules from other distro to another pc running debian. My box is running debian without any DE and I want my USB disks to be automounted based on the label; I believe udev is the nicest way to do this task.

Anyways : my rules are (copied from archlinux wiki btw)
cat /etc/udev/rules.d/92-my-media-automount.rules
# vim:enc=utf-8:nu:ai:si:et:ts=4:sw=4:ft=udevrules:
# /etc/udev/rules.d/92-my-media-automount.rules
# Only work on sd*
KERNEL!="sd[a-z]*", GOTO="my_media_automount_end"
ACTION=="add", PROGRAM!="/sbin/blkid %N", GOTO="my_media_automount_end" .....

I notice the directory is made successfully up inserting the usb HD, but the mount doesn't succeed. If I manually execute above command, the mount goes ok.

View 7 Replies View Related

Debian Configuration :: How To Automount Flash Disks

May 17, 2011

I have installed a minimal system with openbox window decorator. (without any window manager) when i insert a flash disk to my computer, system doesn't mount it automaticly. i must mount it to a folder to use it.

for example:

View 14 Replies View Related

Debian Configuration :: Automount In Xfce 4 Not Working?

Jun 15, 2011

I'm running Debian sid and currently have xfce 4.8.0 installed. I have the thunar-volman package and it is configured to automount everything (cdrom & usb). I have hal, udev, gamin and autofs installed as well.For some reason though, automount just isn't working. It's starting to annoy me.I can mount the devices manually.I looked around already but most posts just advise you to install hal or something.

View 4 Replies View Related

Debian Multimedia :: No Automount In GNOME Flashback?

Aug 17, 2015

I'm running Debian 8.1 Jessie on a Dell Latitude D400 using the GNOME Flashback DE. I cannot for the life of me figure out why it doesn't automout my USB drives and CD/DVDs.The regular GNOME and GNOME Classic will automount no problem but Flashback will not. It shows up in Nautilus but I have to mount it manually through Nautilus. I checked in dconf Editor under org/gnome/desktop/media-handling and automount IS checked. So I can't figure out why its not automounting.

Is there a way to fix that so Flashback will automount my CD/DVDs and USB drives or is it just a bug in Flashback that I gotta wait to get fixed?I've already searched the forum and Google to no avail but its possible I didn't use the right searh terms in Google.

View 0 Replies View Related

Debian Multimedia :: Why No Desktop Icon With Automount

Sep 9, 2010

I have a 2 Computers:
Computer A has a RAID array in it, and everything works perfectly fine. When Computer A powers on, the RAID array is automatically mounted, mdadm takes care of all of the things it's supposed to, and an icon for the RAID array is automatically placed on the desktop. Everything Just Works (TM).
Computer B is configured similarly to Computer A. They have identical configuration files (at least, all the ones I've checked are identical), and when Computer B powers on, the RAID array is automatically mounted, mdadm takes care of all of the things it's supposed to, BUT, NO icon for the RAID array is automatically placed on the desktop. How do I change that?

They have identical /etc/fstab's (the lines in bold are the ones that matter):
Computer A
mediaserver:/home/mediaserver/Desktop# cat /etc/fstab .....

Computer B
mediaserver:/home/mediaserver# cat /etc/fstab
# /etc/fstab: static file system information .....

They have identical /etc/mdadm/mdadm.conf's
Computer A
mediaserver:/home/mediaserver/Desktop# cat /etc/mdadm/mdadm.conf
DEVICE partitions
CREATE owner=root group=disk mode=0660 auto=yes
HOMEHOST <system>
ARRAY /dev/md0 level=raid5 num-devices=4 metadata=0.90 UUID=82bfcecf:5cd4d557:2f1fbd23:68e2797c

Computer B
mediaserver:/home/mediaserver# cat /etc/mdadm/mdadm.conf
DEVICE partitions
CREATE owner=root group=disk mode=0660 auto=yes
HOMEHOST <system>
ARRAY /dev/md0 level=raid5 num-devices=4 metadata=0.90 UUID=6c24c0e5:84ead07e:c109596b:d7e29b7e

The outputs of mount are also very similar:
Computer A
mediaserver:/home/mediaserver/Desktop# mount
/dev/hda1 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/md0 on /mnt/arrayCOMP_A type xfs (rw)

Computer B
mediaserver@mediaserver:~$ mount
/dev/hdc1 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/md0 on /mnt/arrayCOMP_B type xfs (rw)

So how do I get an icon for the device /dev/md0 to automagically appear on the desktop every time the device is mounted (which occurs every time the computer boots up)?

View 7 Replies View Related

Debian Hardware :: Not Automount A Dosfs Usb Drive?

Mar 23, 2011

I have a usb drive formatted using mkdosfs, and it must be manually mounted every time because it says "wrong fs type, bad option. bad superblock on /dev/sdb1, missing codepage or helper program, or other error" but it mounts just fine when I manually mount it. It would be nice if gnome would mount it when I plug it in instead of me having to go into root and mount the drive.

View 1 Replies View Related

Debian :: Disable Automount Of Usb Devices Under Xfce?

Mar 8, 2011

I have squeeze with xfce4 installed. How to disable automount of usb devices under xfce?

View 2 Replies View Related

Debian :: Install Does Not "see" Formated Ext2 Partition?

Mar 15, 2011

I have already set up, with disc partitioning software (Acronis) , a ext2 partition and a swap space. I have two hard disc drives arranged in a raid 0.

When I try the Debian network install, I am asked to create a partition. The only option that I am given is to partition the whole disc. I most certainly do not want to do this because of all of the information and programs that I have on the other partitions.

I remember from the past that we used to use "Fdisk" to manually partition drives. I was not able to invoke it.

So, the basic question is, how do I direct the install to a partition that is already formatted?

View 3 Replies View Related

Debian :: Mount Point For Automount Usb Drives In Jessie

Oct 5, 2015

I'm running KDE in Jessie and also have Gnome installed. When I connect a usb drive it gets mounted at /media/username/disklabel. I would like to have it mounted at /media/disklabel which is how it worked in Wheezy. How can I make that change?

View 2 Replies View Related

Debian Configuration :: RAID - Md0p1 Won't Automount At Boot

Mar 24, 2011

If you want, skip straight to the 'QUESTION' at the end of my post & refer to the 'EXPLANATION' later. EXPLANATION: Using Debian 6.01 Squeeze 64-bit. Just put together a brand new 3.3Ghz 6-core AMD. I had a nightmare with my Highpoint 640 raid controller, apparently because Debian Squeeze now handles raid through sysfs rather than /proc/scsi. The solution to this, of course, is to recompile the kernel with the appropriate module for /proc/scsi support. So I thought "screw that" and I've yanked out the raid card & went with Debians software raid. This allowed me to basically complete my mission. The raid is totally up and running, except for one final step... I can't get the raid to automount at boot.

My hardware setup;
- Debian is running totally on a 64Gb SSD. (sda)
- I have 3x 2Tb hard drives used for storage on a raid 1 array (sdc,sdd,sde)


View 2 Replies View Related

Debian Multimedia :: Require Users To Be In A Group For HAL Automount?

Nov 3, 2010

I'm using squeeze. hal allows any user (at least, ones logged into the console) the ability to automount any removable drive that is plugged in. I want to restrict the ability to automount to users who are in the group that owns the device node for the drive (some distributions use the "plugdev" group for this.) I know I can turn off automount individually in each desktop, but seeing as hal is the thing that runs as root and is actually doing the mounting, it seems to make the most sense to change the setting in hal.

View 2 Replies View Related

Copyrights 2005-15, All rights reserved