Author Topic: nspire Linux Questions  (Read 63723 times)

0 Members and 2 Guests are viewing this topic.

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 228
  • Rating: +97/-0
    • View Profile
    • tangrs blog
nspire Linux Questions
« Reply #15 on: November 15, 2012, 09:25:51 pm »
Try using tar -xvjf

Offline noobnonin

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 151
  • Rating: +3/-38
    • View Profile
nspire Linux Questions
« Reply #16 on: November 15, 2012, 10:03:54 pm »
[email protected]:~# tar -xvjf rootfs.tar.bz2 -C/tmp/mount

bzip2: Compressed file ends unexpectedly;
   perhaps it is corrupted?  *Possible* reason follows.
bzip2: Inappropriate ioctl for device
   Input file = (stdin), output file = (stdout)

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

tar: Child returned status 2
tar: Error is not recoverable: exiting now
[email protected]:~# =(


sup tangrs xd
« Last Edit: November 15, 2012, 10:05:05 pm by noobnonin »

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 228
  • Rating: +97/-0
    • View Profile
    • tangrs blog
nspire Linux Questions
« Reply #17 on: November 15, 2012, 11:12:45 pm »
Maybe a corrupted download?

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1192
  • Rating: +108/-5
  • Instruction counter
    • View Profile
nspire Linux Questions
« Reply #18 on: November 16, 2012, 01:24:38 am »
Yeah, try downloading it again. On my server and laptop it works fine.

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3913
  • Rating: +184/-32
    • View Profile
    • wank.party
nspire Linux Questions
« Reply #19 on: November 16, 2012, 05:53:28 am »
Maybe split all those help posts into a separate topic and keep this topic for updates?
And woot :D
I'm not a nerd but I pretend:

Offline linuxgeek96

  • LV3 Member (Next: 100)
  • ***
  • Posts: 99
  • Rating: +4/-0
  • ( ͡° ͜ʖ ͡°)
    • View Profile
    • Personal Site
nspire Linux Questions
« Reply #20 on: November 16, 2012, 08:42:31 pm »
Hey Omni,

I tried using mkfs.ext /dev/sda, but once I partitioned, I couldn't mount the full disk. Any ideas?

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1192
  • Rating: +108/-5
  • Instruction counter
    • View Profile
nspire Linux Questions
« Reply #21 on: November 17, 2012, 07:02:50 am »
Partitioning overwrites the first 512 Bytes of your USB-Stick, making it's filesystem corrupt.
If you want to use the whole disk, you mustn't partition it!
But if you want to partition, do it first, then mkfs.ext4 /dev/sda1.
If you really partition /dev/sda on your computer, make sure it's your USB-Stick, else your data will be lost, be careful!

Offline linuxgeek96

  • LV3 Member (Next: 100)
  • ***
  • Posts: 99
  • Rating: +4/-0
  • ( ͡° ͜ʖ ͡°)
    • View Profile
    • Personal Site
nspire Linux Questions
« Reply #22 on: November 17, 2012, 08:12:30 am »
vogtinator, I don't have a problem with formatting the disk, but instead with mounting the resulting partition, as I get an "Invalid argument" error. Sorry if I'm making some n00b mistake, usually I actually partition my disks :P

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1192
  • Rating: +108/-5
  • Instruction counter
    • View Profile
nspire Linux Questions
« Reply #23 on: November 17, 2012, 08:14:40 am »
If you partition /dev/sda, you have to mkfs.ext4 /dev/sda1, then mount it.
You have to use partprobe to reread the partition table, if it's not automatically invoked.
« Last Edit: November 17, 2012, 08:25:26 am by Vogtinator »

Offline linuxgeek96

  • LV3 Member (Next: 100)
  • ***
  • Posts: 99
  • Rating: +4/-0
  • ( ͡° ͜ʖ ͡°)
    • View Profile
    • Personal Site
nspire Linux Questions
« Reply #24 on: November 17, 2012, 08:15:59 am »
I _don't_ want to partition, I want to use the full disk, but I can't mount it now.
EDIT: but isn't there no partition table if you mkfs.ext4 the whole disk?
« Last Edit: November 17, 2012, 09:15:09 am by linuxgeek96 »

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1192
  • Rating: +108/-5
  • Instruction counter
    • View Profile
nspire Linux Questions
« Reply #25 on: November 17, 2012, 10:23:49 am »
If you format the whole disk, the partition table becomes invalid.
So format it, unplug and replug it (or use partprobe) and mount it. (`mount -t ext4 /dev/sda /media`)

Offline noobnonin

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 151
  • Rating: +3/-38
    • View Profile
nspire Linux Questions
« Reply #26 on: November 17, 2012, 12:17:41 pm »
vogtinator,

i have the same error, i downloaded your rootfs.tar and when im going to  tar -xvf rootfs.tar.bz2 -C /tmp/mount  it says that the file is corrupted,
btw my /dev/sda is my hdd so my usb is marked as" /dev/sdb " when i run the command " sudo fdisk -l ",still, i have the same error
Regards,
« Last Edit: November 17, 2012, 12:20:41 pm by noobnonin »

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1192
  • Rating: +108/-5
  • Instruction counter
    • View Profile
nspire Linux Questions
« Reply #27 on: November 17, 2012, 12:50:27 pm »
One HDD (of two, RAID 1) from my server is faulty, maybe thats the cause.  >:(
I'll upload it to dropbox, if I can find my username  ;D
Could you please post the commands you're running?
rootfs.tar.bz2
zImage.tns
« Last Edit: November 17, 2012, 01:03:44 pm by Vogtinator »

Offline noobnonin

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 151
  • Rating: +3/-38
    • View Profile
nspire Linux Questions
« Reply #28 on: November 17, 2012, 12:56:06 pm »
ok, well the commands are just the ones that i posted here http://ourl.ca/17131;msg=269705 

i just ran what u told me  tar -xvf rootfs.tar.bz2 -C /tmp/mount

i run sudo fdisk -l to see the name of my usb and the name is always /dev/sdb
thats all
Regards

Offline noobnonin

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 151
  • Rating: +3/-38
    • View Profile
nspire Linux Questions
« Reply #29 on: November 17, 2012, 01:17:51 pm »
ok i downloaded it again and ran " tar -xvf rootfs.tar.bz2 -C/tmp/mount"   but its giving me the same error as before =(

Regards,
« Last Edit: November 17, 2012, 01:19:31 pm by noobnonin »