I run a headless Ubuntu 8.04 server, which acts as a web, email and file server. I am sticking with 8.04 as it is a LTS release and will upgrade to the next LTS when it is released.
I have two external USB drives, that I need to mount at boot. I have been using /etc/fstab up until now, with the following entries:
Code:
However, as I gather from doing searches is quite common, occasionally I get an error during boot (causing the system to drop to a recovery shell) because the USB drives take time to wake up and the system hasn't found them by the time it reads /etc/fstab.
From doing searches, it seems there is nothing you can do to fstab to fix this, so you need to mount them using an rc.local script instead, using:
Code:
The problem is, as I have two USB drives, their /dev/sdxx location changes between boots. I thus want to use UUID codes as I do in fstab, however I haven't found anything about this.
Does anyone know how I can use the mount command and UUID to mount a drive in rc.local and what options I have to use the mount the drive with the same options that I am using in my fstab entry? Obvisouly, I can't refer back to fstab using the mount command, because then I will still get the boot error issue if they are listed in fstab. And there is no space internally for the USB drives as there is already two internal drives.
I have 2 internal drives. One is for the OS and one is for the Data. I tried to get the Data drive to mount automatically at login using some crap I found on a linux blog. Safe to say it didn't work and now I can't mount it with the OS on the OS Drive.
It mounts from a live CD and all the data is perfectly safe. When I try to mount the drive I get this error message: "Error mounting: mount exited with exit code 1: helper failed with: mount: only root can mount /dev/sdb1 on /media/data" What have I done wrong and how can I make it mount again? Preferably this time at login.
I have been trying to share folders from my main PC which is running Ubuntu 10.04. I have been able to figure out Samba enough to get my a couple of folders shared, but I have been unable to share any folders which are on my external harddrive. After entering the path in my smb.conf file they appear on the network but I am unable to navigate to them. When trying to navigate to them through the network folder on the pc they are actually connected to I get an "Unable to mount location: Failed to mount windows share" dialog box. On the windows pc I am trying to share with I get, "Windows cannot acces \Josh-Desktop ame of folder"
My smb.conf file looks like this:
That folders I cannot access are Music and Videos.
How do I configure my Debian installation to mount external USB drives to mount points based on the volume names of the drives? For instance, if I have a thumb drive with the volume name of "SWORDFISH," how do I have Linux mount it at /media/SWORDFISH? I'm aware that this can be setup in FSTAB, but that requires that I know the UUID of the device beforehand and that I take the time to set each external device up in FSTAB first. That does nothing for me when I have a thumb drive that has never been plugged into my computer before.
This seems to be setup by default in Ubuntu/Kubuntu, but is not working for me with a fresh installation of Debian Squeeze and KDE4. I've spent the past 2 hours Googling for a solution and have turned up nothing. UPDATE: My results are inconsistent. Sometimes Debian mounts devices to mount points based on the volume names, and other times it gives them generic mount points (e.g. /media/usb1).
I have servers installed with RHEL 4 2.6.9-89.0.9 ELsmp. I tried using uuid and label in /etc/fstab to automount usb drives to mountpoints that I specify after reboot. Unfortunately, it just does not work in all my RHEL4 servers. After every reboot, /etc/fstab will be automatically modified and all configurations related to my USB drives will be changed. Irregardless of whether i use UUID or LABEL in my /etc/fstab.However, it works on RHEL5. But, upgrading is not an option in my environment. I have been googling around looking for alternatives but everything seems to point back to using UUID or LABEL in /etc/fstab. Anyone has tried something that works? Please help me, thank you.
Its annoying to unmount my flash drive twice.. its not a major problem actually but its kinda annoying , its whenever i plug-in my flash drive.. everything works well except when i need to un-mount it.. I usually unmount it twice using right-click of the mouse, then it mounts itself back, so i have to unmount it again.. Is there any way to control this? How do i setup the auto-mount option for USB flash drives?
I was trying to figure out how to get my network drive to mount as a local drive on my computer. This was back on 9.10. Since I've upgraded to 10.04, my boot process halts and tells me (paraphrasing) /shared is not ready to mount. To continue, pres S to skip or M to manually mount the drive.
Well, I have it mounting now through GVFS and I don't need this in my startup anymore. Frankly, it's just annoying that it won't boot into Ubuntu right away. So, what's the startup file I need to edit to remove the attempt to mount the network drive?
I have just installed Xubuntu and suprisingly it did not ask me to create a partition within its installer like Ubuntu does. So now, I am left with 150mb of free space. I want to expand that amount. The problem is, I do not know where it has been installed on. I have a C and an E drive. Currently, the C drive is mounted and the E drive will not mount even if i press the mount button. Does anyone have a solution?
no entries exist in the /dev folder for hdc,cdrom,dvd, or any other drive or drive type than hda. The only other similar device is sg0 which doesn't work either. I have tried every variation of mount I can find with every available drive and drive type and nothing works, but this is the drive I installed FC14 with, and it installed perfectly (except for forgetting where it came from!!)Do I have to install a module or recompile the kernel just to get linux to recognize the drive it came from?
I have a problem in my ubuntu 10.01 that it can't load a drive/volume in ubuntu. When I tried, it said: "Unable to mount location Error mounting: mount: /dev/sda1: can't read superblock". And when I boot my pc with 'Windows', it said : "UNMOUNTABLE_BOOT_VOLUME" under a blue screen. What can I do to solve this problem?
I just reinstalled Ubuntu 10.04 because of problems with windows. I can see both my drives with gparted, but I cannot mount the d drive, I put the Ubuntu install next to windows on the c drive but last time I installed 10.04 I could see my d drive, that is where all my music and .avi files are located. I get an error when trying to mount this drive:
[Code]...
Just found out that after the 10.04 install, my d drive was wiped out, any way of getting those files back? I haven't formatted yet with windows. Windows needs to format it and Ubuntu can't mount it, it is nowhere land.
"Old" disk was the primary - and only - drive. 500 GB.
I have to move that drive to a new machine off-site, so I'd like to get the 10 or so GB of data from it and put the data on a "new" drive - 80 GB, with an existing maverick installation.
I tried to use Acronis to create an image. That way, the new drive would be a clone of the old drive, other than being much smaller. Acronis wouldn't allow it because of the size difference.
When booting to the "new" sda everything works ... except that maverick "sees" sdb, but won't let me access the data partition sdb2.disk utility "sees" sdb and describes it as having boot partition sdb1, and the other 499 GB , sdb2 (and sdb5) nautilus and dolphin both "see" sda and can access all of the data (such as it is, given that it's a new installation) nautilus and dolphin both "see" sdb, but only access the 255 MB boot partition sdb1 I tried doing a clean install on the "new" drive. In that install I left the old drive in place as a second drive - hoping that the installation would recognize it as a second drive and mount it properly.
However: 1) it didn't do anything with the old drive and
2) the results are the same - no access to the data partition on the "old" drive.
I think the problem is that I need to mount sdb2, but I can't figure out how. Here is the information from fdisk:
Do I enter information in fstab to enable mounting? If so, which information do I use?
Or is there another way to access the 10 GB of data on sdb and get it on to sda?
By the way, in the course of messing with this, I managed to make the "old" drive unbootable, so I can't just reverse the drives' roles. The "old" drive has the boot partition marked as bootable, and I switch drive jumpers (and cable setup)
Error mounting: mount exited with exit code 32: mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so
I get this when I try to mount this drive. I was working just fine and then when I tried to mount again to pull some data off It gave me an error. It is an internal hard sata hard drive hook up via usb with a usb to sata converter. Is there some kind of disk check i can do to find errors. There is data on there I would like to keep
I want to automatically mount an SSH server on boot. I am able to do this manually by running this script after I reboot
Code: #!/bin/bash clear sshfs -o idmap=user user@server:/ /home/fro1269/sshmount I have put the script in /etc/networking/if-up.d/
but it does not mount after the network is connected. This is on a laptop that connects via wifi. So my network connection does not start until a few seconds after the desktop loads. I am running 10.04.
I mounted a hard drive and its working ok. But I want to expand on it. I'd like to make it accessible via another folder, like make it look like /home/cackles/added as well as simply just /added. Is it just like when you mount the drive and add the line to fstab?
Ubuntu 10.04 - it lives on 1TB drive. Then I have another 1TB drive that has 2 partitions. One of the partitions has XP and other is empty awaiting a WIN7 install. Then I also have a 2TB back up drive. All said - on the odd boot I'm unable to mount the other drives.
I have got 2 hard drives running one one of my computers which i am running as an server. I was using Ubnntu Server which is good but i have decided to change the way that i am going to use the server and have installed Xubuntu over ubuntu server. However in the installation the hard drives shwn when it asked where i would like to install the operateing system. It installed sucessfully and is working but it cant mount my other hard drive which has all of my data on it.
I had tried mounting it throught the command prompt and had no success. After which i have checked if the the toher hard drive is being reconised by Xubuntu and it is as sdb1 but i caqnt mount it and get to my data. I hoped that i can try and put in my ubuntu live cd and see if it can pick the seoncd hard drive up and mount it which it has not been able to.
I have 2 20 gigabyte hard drives atm the moment and i am not adding the others until i can get to all my stuff again form the other hdd.
My friend gave me a usb drive which doesn't mount. When I plugged it in, I got this on dmesg:
[Code]....
The usb drive is supposed to be on /dev/sdb, however when I try to read /dev/sdb with head, I get: head: cannot open `/dev/sdb' for reading: No medium found I cannot get it to work with fdisk, gparted, mount, and all I can get is No medium found. I am ready to call this drive dead.
I installed Ubuntu 10.04 and I love it. the only problem I'm having is that I can't seem to mount my windows drive in order to see my files(music, pics, vids). How can I do this? I have 4 500gb disks and i can only see two of them and neither one is my windows drive. Windows 7/ubuntu 10.04 installed using wubi.
I have an usb external hd I need to delay mount. If I enter the information in the /etc/fstab, on a reboot I get an error that the drive is not ready.If I manually mount it, it works fine. problem only occurs after a reboot or restart.I need to mount it automatically after I have logged in. I am not sure how to go about doing this.this is the out put of the fdisk -l
Device Boot Start End Blocks Id System /dev/sdh1 1 121601 976760001 83 Linux
Well here is my situation, I had to install win xp and another ubuntu so I can try things with risk-free, after installing every thing, the new grub editor was installed, but not detecting y prvious ubuntu, and I tried updating grub 2 it also did't detect it.so I went to Computer and tried to enter the system file drive but with no luck.It tells me that it's unable to mount the drive.I'm now on windows, I will be on ubuntu after few minutes and I'll post back exactly the error messege
I want to pull a few things off this external hard drive I have that is an ubuntu install from last year. However, my mac won't recognize the file system and mount it so I can pull the few files I need off of it.
What's the trick to getting a mac to find an ubuntu hard drive?
My other option is removing my laptop hard drive, installing the ubuntu one, opening ubuntu manually, burning the information I need to a CD, or a usb key, and then removing the ubuntu hard drive, and reinstalling my mac osx drive to the laptop bay.