Hardware :: Shutdown A USB Device (pen Drive) From A Console?

Sep 26, 2010

The umount command sync and release the USB device (pen drive or external HD) from the filesystem, but does not shutdown it, like Nautilus does with the safe remove. How can i properly shutdown it from the command line?

View 7 Replies


ADVERTISEMENT

Ubuntu :: See Console Text On Restart/shutdown?

Aug 4, 2011

I'm running Ubuntu 11.04 on an IBM Thinkpad T60, when I try to Logoff, Restart, or Shutdown the system just goes to a black screen and I'm forced to do a hard reset to restart the system. I did a reinstall and things seemed to be working fine until I applied updates and reloaded my package list from my previous install then I got the same conditions as before. I suspect that this my be a result of a bad package or update. What I want to know is if their is a way to display console text of the shutdown process so I can see where the system hangs and possibly remove the problem application. I have an AMD 64 bit desktop running with the same package lists and have no issues I suspect it is a hardware specific issue for the laptop or an error with a 32 bit install.

View 1 Replies View Related

Slackware :: Console App Causing System To Hang On Shutdown?

Jul 14, 2011

I have been looking for a lightweight bandwidth monitoring app and came across bmon. It does what I need. However it has an interesting way of exiting.

when it is running and you close it down it ask you 'Really quit (y/n)' and does not shut down. I am used to just right clicking on my desktop and selecting 'leave' when it comes to shutdown time.

A few times now the laptop hangs on shutdown if bmon is open. I guess it is due to the app asking if it should shutdown. Is there a way to disable the app asking or alternatively nuke it for sure with some script on shutdown.

I could search the relevant konsole running the app and go thru the steps to shut it down but sometimes I am in a hurry and it doesn't feel like the way to go anyhow?

View 3 Replies View Related

Slackware :: Telinit 4 - Kdm - Open Console Session Prevents Shutdown - 64 13.37

Jun 4, 2011

I have a question regarding runlevels, shutdown procedure and KDM. I am on a freshly installed Slackware64 13.37 multilib system. The default runlevel in /etc/inittab is set to 3: multiuser w/o X.

Now, I log in as root and issue the command:

Code:

As expected, KDM starts up, and I log in to KDE (or another WM/DE) as a normal users. When I am finished, I either issues

Code:

In Konsole or click on Shutdown in the KDE menu. The shutdown process is initiated, as expected, but then it stops, and a window alerts me, that there is a session open by user 'root'. If I click OK, the machine is finally shut down.

Now, if I interpret this correctly, the behaviour of Slackware64 13.37 has changed here, compared to 13.1. In previous versions, the root seesion was closed, when I changed the runlevel to 4 with the telinit command. Now, the session remains open, obviously.

My question is: Is this the correct behaviour, and isn't this a security whole? An unnoticed (!) open root session while I am surfing the web as an unprivileged user in KDE could be dangerous, I think...

Is it misconfiguration in my system, or is this the way it should be?

View 2 Replies View Related

Networking :: Device Is Configurable Only Over Console Line?

Oct 18, 2010

I have a configuration file for a network device(2100 lines). This device is configurable only over console line. If I copy chunks of those lines into terminal(I use minicom), there will be mistakes (sometimes some characters missing, space characters added etc). Hardware flow control and software flow control doesn't help either(as I use RS232-to-USB converter, I'm even not sure, if RTS and CTS signals are implemented). I tried with cu utility, but same issues appeared. There will be mistakes even if I copy in ~100 line parts. What causes those missing/added characters? Is there a terminal emulation program under Linux, which supports pausing before each byte/line transfer?

View 2 Replies View Related

General :: Instruct The Kernel To Use A USB Keyboard And FB Device As It's Boot Console?

Jul 8, 2010

I'm guessing the answer to my question is in manipulating the kernel command line. But with what arguments? (and does the kernel have it's own fonts to be used on a FB device?)

The host is a ARM9 based embedded system with a 1-bit LCD screen.

This is a prelude question to: Naming a Frame buffer Device

View 1 Replies View Related

Ubuntu :: Loop Device Error When Shutdown Since Upgrade To 9.10

Apr 6, 2010

When I shutdown, I have a black screen with a message of I/O error, loop device... And the computer doesn't complete to shut down. This problem appear since I upgrade to ubuntu 9.10.

View 1 Replies View Related

General :: Mounted Loop Device Prevents Proper Shutdown

May 4, 2011

I've recently started using Linux Mint (version 10) on a Dell Mini 1012 netbook. I'm using a loop device to mount a file on a NAS but whenever this loop device is mounted and has been accessed, my machine fails to shutdown.

Firstly I mount a share on the NAS using cifs (the NAS is aimed at Windows machines so doesn't support NFS). I have a sparse file on the share (which I created using Cygwin in Windows, using the dd command).

I used losetup to create a loop device and formatted it as reiserfs.This works and I can successfully use the mount point. I'm using it with Backintime.If I try to shutdown my machine without unmounting the loop device, shutdown hangs.

These messages just keep repeating and the system never shuts down.So I assume the problem is something to do with unmounting the CIFS/loop device.If I unmount the loop device all is fine. I don't need to unmount the cifs share.Any ideas on how to resolve? Should I add a script to run during shutdown (i.e linked from /etc/rc0.d and /etc/rc6.d) to sync and unmount the loop device? Or is there a better solution?

View 1 Replies View Related

Fedora :: LVM On External USB Drive - Recovery Console?

Jan 17, 2010

I'm having an issue with LVM on an external USB drive. When booting, the system drops into a recovery console if the external drive is not powered on because it cannot find the volume group and members. The setup is one system drive with fedora 12 installed, one internal data drive; LVM volume group vg1 with 5 partitions and one external backup drive LVM volume group vg2 with 5 partitions. Both the data drive and external backup are the same size and identical layout.

I use an rsync script that I wrote to execute backups (mirroring actually).
fstab is set 'noauto' on the external partitions.
I am new to LVM and I'm stumped as how to make the system 'ignore' the external drive at boot, if not powered on.

View 1 Replies View Related

Ubuntu :: Use External Had Drive From Text Console?

Feb 2, 2010

I'm not able to login to my GUI. So I have to use text console only. But the hard drive is not getting detected from text console. What should I do ?

View 1 Replies View Related

Debian :: Console Only Session - Hard Drive Malfunction

Jun 16, 2009

My hard drive's file system has become totally mucked up. I had a few partitions on it, 0 is XP, 1 is vista, 2 is Debian, and 3 is the data. I know that it's this hard drive because when I disconnect it, any liveCD runs ok. After failing to boot puppy linux (liveCD), xp (bootmgr not found), debian (ended in kernal panic), I tried GPARTED. The xp and vista partitions are listed as existing, but they show a problem flag, gparted says they are corrupt, and they are not listed as having a start, end, or any data. However, the main data partition does list a start, end, size, and data space used.

I need to either format those or get into something that will let me access the data partition. Gparted either hangs on boot or doesn't recognise the mouse so I can't reformat the bad partitions. Are there any programs that will ignore the bad partitions and let me access the good ones? Any time I go into a linux distro it either ends up in kernel panic or the mouse doesn't respond. It's hard to explain. With GPARTED, sometimes it hangs at the third line, sometimes it fails at "mounting hard drives", and sometimes it makes it to the GUI but I can't use the mouse. Debian alternates between these as well.

If I keep trying it looks like I can boot, and it will recognise the partitions, but I can't use the mouse. I'm kind of familar with bash, is there a way to start up the terminal with no gui? If I could get a terminal up with a hotkey in the GUI or just start up from a terminal (no gui), I could type mv dev/sda3/ or whatnot. If I could get into a terminal of gparted I could format the bad parts of the drive to see if that would work. Otherwise it looks like I'm going to have to zero out the drive with the WD diag tool. The data isn't life or death, but it would save me some time.

View 3 Replies View Related

General :: Generating SSH Key At The Console - What File Needs To Be Copied To Usb Drive

Feb 17, 2011

I've been giving the task to go to a Linux console as root. and generate a ssh rsa 4096bit key, and copy the private key to a USB drive.

1) What command should I use here? ssh-keygen -t rsa -b 4096 ?

2) Do I need to append the new private key to the authorized_users file? Which file exactly must be appended there? Would this be sufficient?

mkdir -p /home/myuser/.ssh
cat id_rsa_LOCAL.pub >> /home/myuser/.ssh/authorized_keys

Should any special permissions be applied to this file?

3) Which file must be sent to my usb drive so that I can take it home to connect with?

View 5 Replies View Related

Ubuntu :: Fresh 11.4 Usb Hard Drive Install Results Hd0 Out Of Disk Grub Console

Jun 3, 2011

Company laptop HP Compaq 6710b, NTFS on hd0, Win7 installed. BIOS allows boot from USB drive, so wanted to use Ubuntu with no influence on laptop (no disconnecting internal drive, no dual boot, etc). Performed an install from CD to an USB drive making a JFS partition mounted on / and a swap partition. The installer made the JFS partition bootable (boot flag is set) as I asked. On first boot I got:

error: hd0 out of disk.
grub rescue>

View 14 Replies View Related

General :: Hard Drive - Does Check Disks During Boot Instead Of Shutdown?

Dec 3, 2010

I'm just curious - why do all linux distros (all I've seen) run their periodic disk checks during boot? I mean, I understand that a disk should be checked now and then, but why does the system do it during boot, when I'm waiting for it to load, instead of checking them during shutdown, when (most probably) user doesn't need the computer anymore.

View 5 Replies View Related

General :: Drive Didn't Unmount On Shutdown And It Might Damage Files?

Oct 1, 2010

i don't understand this, why do you have to mount a usb or cd to use them? its such a hassle, in windows the usb/cd just works, but in linux you have to mount it, why? when ever i shutdown in linux, i am using ubuntu it says my drive didn't unmount on shutdown and it might damage my files?

View 2 Replies View Related

Server :: Shutdown The Nodes From The Master Terminal Using "shutdown -h Now" Get Shutdown?

Dec 10, 2010

I have installed a cluster computer with 10 nodes . The manufacturer is HP . All nodes and the master node have redhat enterprise linux installed in them . When I shutdown the nodes from the master terminal using "shutdown -h now" they get shutdown . But they dont get completely turned off . This issue bothers me when the power supply is given , all nodes boot up simultaneously generating a huge heat .

Thing to note : When we shutdown our PC they get completely turned off . When the power supply is given , a press on the Power On button is required to boot the system. But , why does it not happpen in the case of cluster? Is there any other way of completely turning off the nodes from the master terminal ?

View 1 Replies View Related

Software :: Start A Program From Tty1 Console To Be Executed In Tty2 Console?

Sep 8, 2010

How can I start a program from tty1 console text mode to be executed in tty2 console text mode? Actualy I would like to start a program (chat client cli program) in tty8 automaticaly when linux PC boots.

View 6 Replies View Related

Fedora :: Change The Name Any Device (usb Drive)

Jul 22, 2009

how to change the name of any device (usb drive) instead of assign by system ,i am using fedora 10

View 1 Replies View Related

Ubuntu :: External Hard Drive Device Name?

Aug 11, 2010

I am setting up a Linux laptop for my parents, and want to also create some backup scripts to allow them to easily back up to an external hard drive. [And for them to be able to use it, it has to be super simple.]

For security purposes (should the external drive ever get lost or stolen), I want to encrypt the entire device using TrueCrypt. That means my scripts will have to use TrueCrypt to mount the backup volume using the device name. [Right?]

Now to the actual question(s): 1) Is there a way to ensure that an external hard drive will ALWAYS be assigned the same device name when plugged in? [That would be the simplest solution for me.]

2) Alternatively, is there a way (using bash scripting) to "find" the device name of a particular external hard drive, even if it might not be known in advance.

View 2 Replies View Related

Ubuntu Installation :: 10.04.1 USB Drive Device Changes After Install?

Sep 2, 2010

I have loaded the Ubuntu 10.04.1 Live CD onto my HP p386i desktop. It loads easily and responds well in the "Try It" mode. I purchased a 16 gb USB Flash drive and did an install from the Live CD. After booting the CD ROM to the window where given a choice to "try" or "install", I inserted my flash drive into the USB port and selected "install". I had my 2 hard drives disconnected. At install point #4 I selected my USB drive and also selected manual partition . The partition displayed as follows:

Partition: /dev/sdf
/dev/sdf1 Type: EXT2 Mount at "/" Size=15,300mg Used=33
/dev/sdf2 Type: Swap Size= 718mg Used= 0

[code]....

View 3 Replies View Related

Hardware :: Boot From USB Drive - Force Device As Sda

May 9, 2011

I have system (Ubuntu 10.10) on my pendrive. I want to use this system always from this pen - by boot on startup.

If I remove all of my hard disk from laptop and boot from pendrive - everything is ok, but when i try boot from pen when hard disks are plugged - its not working - because linuks want pass to sda2 partition, and this partition is already assign to wrong disk (should be in pendrive).

I have crypt(luks) and lvm on this pen.

I just want to make sure that my pendrive will be always shown as "sda" - how i can do this? I think it will probably fix my problem.

How to disable mount other disk - mount only this pendrive.

View 10 Replies View Related

Hardware :: Cannot Find USB Floppy Drive Device?

Jun 10, 2010

/dev/fd0 does not exist. I have floppy disks I wish to use.m using debian unstable.Nautilus doesn't recognize it, nor does dolphin. I have no clue if the floppies are formatted or not.fdisk -l only sees sda, my hard drive.Floppies are so neat! I want to use them in linux.

View 12 Replies View Related

OpenSUSE Install :: Using An External Drive As A Root Device?

Jan 6, 2010

I have a large external drive, which I connect to my laptop via a PCMCIA card - the machine is old and does not have USB 2.0 built in, so I use the PCMCIA card for that.

I am thinking of the following setup, and hope you can give me some tips on whether or not that would be a sound solution:

- designate a boot partition on the laptop's internal hard drive, which could store kernels

- make up a linux partition (or more than one) to use as root for any distribution on the external drive

- keep /home as separate partition on the external drive

My goal in mind is to be able to boot more than one Linux partition from the external drive. I can't make it through USB boot because the PCMCIA card is not recognized before a kernel module is loaded, and I can't use the internal USB 1.1 port for the external drive.

Do you think this is the way to go? Currently, I only have my /home partition mounted off the external drive.

View 5 Replies View Related

General :: Ubuntu - Find The Device Associated With A Mounted USB Drive?

Jun 23, 2010

How do you find the device (e.g. /dev/*) for a mounted USB drive in Linux (Ubuntu 10.04)? I'm trying to format a Cruzer USB flash drive, and when I plug it in, the icon for the mounted filesystem appears on my desktop. However, when I open GParted, it doesn't list the filesystem as an option to partition.

The recommendations I've found through Google include monitoring tail -f /var/log/messages, which they claim should list the device name when the drive is mounted, but this never happens for me. I've also read that the USB drive would usually be linked to /dev/sdb, but this appears as a broken link on my filesystem. How else would I find the device?

View 3 Replies View Related

Ubuntu :: 9.04 - Very Slow Copying Speed To Any Device / Drive

Jul 8, 2010

I have installed ubuntu 9.04 version. But now its too slow to copy files to any devices or even to other drives.

View 3 Replies View Related

Ubuntu Installation :: Install On Client Device That Does Not Have CD / DVD Drive

Jul 15, 2010

I need to install Ubuntu on a client device that does not have a CD/DVD drive. It's on the same network and I'd like to be able to insert the Ubuntu CD into my desktop linux machine and install the OS onto this other device remotely.Is there way to do this easily? The client device is a barebones. There is nothing on it and I want to use the entire partition for this.

View 1 Replies View Related

Ubuntu :: Mounted Device / Drive Icon On Desktop

Feb 8, 2011

I've some icons of mounted devices on my desktop. I want to display only some of them which I need. All drives are mounted automatically while booting or by scripts while logging in.For example: I've 4 mounted devices and 4 icons on my desktop and I want to have 4 mounted devices but only 2 icons.There is possibility of hiding all of icons in gconf, but I want to hide only some of them.Is it possible?

View 4 Replies View Related

Hardware :: Usb Hard Drive / No On/off Switch On The Actual Device?

Aug 29, 2010

This isnt a linux related question as such, but I'd still like to ask.

I have purchased a 1tb external usb hard drive, which came with its own power supply, and the HD device is connected to the power mains 24/7.

However, there is no on/off switch on the actual device, and I dont want to have it permantly connected to my computer, perhaps only for an hour or so everyday.

Could I harm the usb HD by regularly pullling its usb cable from the computer usb port? (ofcourse I would unmount it first).

View 4 Replies View Related

General :: Mount USB Drive - Device Pointers Static?

Jun 6, 2011

I'm using an external USB drive to perform system backups. The script I'm using has a mount command - mount /dev/sdcx /systembak, it works fine until the external drive is mounted into a different USB port which causes the device path to change and the script needs to be modified to reflect that change. Looking in the /dev/disk/ directory I see ./by-id ./by-label ./by-path ./by-uuid. I've been able to mount the disk using one of the device pointers in those directories; are any of those device pointers static or do they change every time the USB disk is plugged into a different USB port.

OS: RHEL/CentOS

View 4 Replies View Related

General :: Reading The Manufacturer Data / Device ID On A USB Drive?

Jun 28, 2011

I wish to read the Manufacturer data and other details such as Device ID, Serial number on a USB drive.

1. Could anyone help me out with information on the memory structure of a USB drive? (which location is the mnfr data stored?)

2. Are there are any commands in Linux that will help in reading/accessing this data?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved