Jump to content



Photo

#!Crunchbang Issue on my Minecraft Server


  • Please log in to reply
9 replies to this topic

#1 +Mindovermaster

Mindovermaster

    Neowinian Senior

  • Tech Issues Solved: 9
  • Joined: 25-January 07
  • Location: /USA/Wisconsin/
  • OS: Mint Debian LMDE
  • Phone: HTC ONE V

Posted 13 October 2013 - 23:23

The 15GB USB Flash, that I use on my Minecraft server, is becoming non-responsive. 

 

When I try and boot it:

/bin/sh: can't access tty; job control turned off
(initramfs)

And it just freezes on that, I looked online, and I tried doing this:

 

 

 

You have to make sure that this problem is resolved when Ubuntu boots, too. To do that:
  1. Boot your computer so that GRUB is displayed.
  2. Press the "e" key to go into edit mode.
  3. Press "o" to add a new line to the script.
  4. Type the following: acpi=off irqpoll
  5. Press the Escape key.

In the event that acpi=off doesn't work try replacing the entry above with one of the following:
  • acpi=force irqpoll
  • nacpitimer irqpoll

 

But, this is to no avail. This was a bit old, too. (2008)

 

 

When I try to access the Flash drive from my own PC, this comes up:

Error mounting: mount: block device /dev/sde1 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/sde1,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

Help?  :cry:

 

Edit: Oh, forgot, it is formatted to EXT4, so why is it saying wrong file system?

 

Edit2: This server is our test server, so a lot of projects went into here, for testing purposes, so if there is any way to save this, I will praise you. Otherwise, I think we're FTL.




#2 +Karl L.

Karl L.

    xorangekiller

  • Tech Issues Solved: 15
  • Joined: 24-January 09
  • Location: Virginia, USA
  • OS: Debian Testing

Posted 13 October 2013 - 23:41

It looks like your flash drive is failing. Make an image of it with ddrescue (contained in the gddrescue package in Debian), then use testdisk to repair the partition table. (On the disk image, not your flash drive. TestDisk is very powerful, but it is potentially destructive. If you have enough disk space, it might be helpful to make a second copy of the image so you don't have to read from your failing flash drive a second time if you irreparably damage the image you are operating on.) If TestDisk fails to repair it, photorec might be able to recover some of your data. If TestDisk succeeds, mount the partition in your repaired image, and make a copy of the data.



#3 OP +Mindovermaster

Mindovermaster

    Neowinian Senior

  • Tech Issues Solved: 9
  • Joined: 25-January 07
  • Location: /USA/Wisconsin/
  • OS: Mint Debian LMDE
  • Phone: HTC ONE V

Posted 13 October 2013 - 23:54

Thanks, orange. Running ddrescue atm. (had to apt-get, but got it now) I'll write back when it gets done here. *fingers crossed*



#4 +Karl L.

Karl L.

    xorangekiller

  • Tech Issues Solved: 15
  • Joined: 24-January 09
  • Location: Virginia, USA
  • OS: Debian Testing

Posted 14 October 2013 - 00:07

While ddrescue is running, it would behoove you to watch the Linux Action Show's Linux Drive Recovery episode if you are unfamiliar with data recovery from a failing disk. I have used many of the techniques described in that episode for years. It is an excellent primer.



#5 OP +Mindovermaster

Mindovermaster

    Neowinian Senior

  • Tech Issues Solved: 9
  • Joined: 25-January 07
  • Location: /USA/Wisconsin/
  • OS: Mint Debian LMDE
  • Phone: HTC ONE V

Posted 14 October 2013 - 00:10

I might, as I really have nothing more to do. :laugh:

 

It's about 1/3 of the way through now.



#6 OP +Mindovermaster

Mindovermaster

    Neowinian Senior

  • Tech Issues Solved: 9
  • Joined: 25-January 07
  • Location: /USA/Wisconsin/
  • OS: Mint Debian LMDE
  • Phone: HTC ONE V

Posted 14 October 2013 - 00:58

GNU ddrescue 1.16
Press Ctrl-C to interrupt
rescued:    14812 MB,  errsize:    109 MB,  current rate:    14848 B/s
   ipos:    11283 MB,   errors:   15285,    average rate:    3953 kB/s
   opos:    11283 MB,     time since last successful read:       0 s
Finished                   

So, yeah, I guess it is damaged, then...

 

How can you mount an img file? I tried Furious, but it doesn't show anything.

Nevermind, got it. I'll run a server on this computer, see how it goes :)

 

Also, I remember in Ubuntu, that there was just an option to right click and mount it with a program. Can't remember what that is, you recall?.



#7 +Karl L.

Karl L.

    xorangekiller

  • Tech Issues Solved: 15
  • Joined: 24-January 09
  • Location: Virginia, USA
  • OS: Debian Testing

Posted 14 October 2013 - 01:24

You imaged the entire disk (/dev/sde), not just a partition (/dev/sde1), correct? If so, the next step is to make a copy of the image and run testdisk to try to repair it. If testdisk succeeds, you may be able to mount the partition within the repaired disk image and make a copy of your data. For example:

$ sudo chown $USER:$USER sde.img
$ chmod 664 sde.img
$ cp sde.img sde.img.bak
$ testdisk sde.img

$ sudo kpartx -av sde.img
$ sudo mount -o ro,nofail /dev/mapper/loop0p1 /mnt
$ mkdir sde_recovered
$ sudo cp -a /mnt/ sde_recovered/
$ sudo umount /mnt
$ sudo kpartx -dv sde.img


#8 OP +Mindovermaster

Mindovermaster

    Neowinian Senior

  • Tech Issues Solved: 9
  • Joined: 25-January 07
  • Location: /USA/Wisconsin/
  • OS: Mint Debian LMDE
  • Phone: HTC ONE V

Posted 14 October 2013 - 01:36

I just did a

ddrescue /dev/sde1 /home/david/mctestserver.img

The other partitions are swap and extended.

 

I can seem to get at the data from mounting the img file, is this wrong?



#9 +Karl L.

Karl L.

    xorangekiller

  • Tech Issues Solved: 15
  • Joined: 24-January 09
  • Location: Virginia, USA
  • OS: Debian Testing

Posted 14 October 2013 - 01:41

Since you imaged a single partition, you can loop-mount the image file directly.

$ sudo chown $USER:$USER sde1.img
$ chmod 664 sde1.img
$ cp sde1.img sde1.img.bak
$ testdisk sde1.img

$ sudo mount -o loop,ro sde1.img /mnt
$ mkdir sde1_recovered
$ sudo cp -a /mnt/ sde1_recovered/
$ sudo umount /mnt


#10 OP +Mindovermaster

Mindovermaster

    Neowinian Senior

  • Tech Issues Solved: 9
  • Joined: 25-January 07
  • Location: /USA/Wisconsin/
  • OS: Mint Debian LMDE
  • Phone: HTC ONE V

Posted 14 October 2013 - 02:20

OK, I got back like 1/8 of our creations. Oh well... Why it's called a "test" server. We all pretty much know what to do. ;)





Click here to login or here to register to remove this ad, it's free!