LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 07-08-2009, 02:01 PM   #1
Tech_20
LQ Newbie
 
Registered: Jul 2009
Posts: 1

Rep: Reputation: 0
Can't mount Linux partition on USB device


I'm in process of creating a bootable BackTrack 3 USB drive. From this link...



http://wirelessdefence.org/Contents/..._USB_Howto.htm



...I have successfully created two partitions as confirmed from the shell window using fdisk (code below)
please note USB drive listed as sdb

______________________

bt ~ # fdisk /dev/sdb

The number of cylinders for this disk is set to 7228.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/sdb: 2013 MB, 2013265920 bytes
17 heads, 32 sectors/track, 7228 cylinders
Units = cylinders of 544 * 512 = 278528 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 3677 1000128 b W95 FAT32
/dev/sdb2 3678 7228 965872 83 Linux

______________________



...I then proceed to the mkdir command...(code below)



______________________

bt ~ # mkdir /usb
bt ~ # mkdir /usb1
bt ~ # mount /dev/sdb1 /usb
bt ~ # mount /dev/sdb2 /usb1
mount: No such file or directory


______________________


...fsck is unsuccessful thus far (code below)


______________________

bt ~ # fsck -a /dev/sdb2
fsck 1.39 (29-May-2006)
/sbin/e2fsck: Bad magic number in super-block while trying to open /dev/sdb2
/dev/sdb2:
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>



bt ~ # e2fsck -b 8193 /dev/sdb2
e2fsck 1.39 (29-May-2006)
e2fsck: Bad magic number in super-block while trying to open /dev/sdb2

The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>

______________________

It looks like I will need to delete and recreate the partition since repairing it
doesn't look like an option.


HELP!!!!!
 
Old 07-09-2009, 08:07 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Short answer: see 'mkfs'. Long answer: 'fdisk' preps your medium and divides it partitions. The Id "(0x)83" just marks the partition in the partition table as being of type "Linux". It doesn't format the partition to have a filesystem. So between 'fdisk' and and 'mount' the HOWTO missed the 'mkfs' command (you could email 'em that if you care).
 
  


Reply

Tags
bt3, partition, usb boot



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux, usb-storage... how to mount them and see their partition table Saradas Programming 5 11-12-2008 08:09 AM
How to increase tmp partition - mount loop device grim2 Linux - Server 2 03-10-2008 08:27 AM
mount partition from copied block device cs-cam Linux - General 0 09-23-2006 07:41 PM
Cant get usb device to mount. sleekmason Linux - Hardware 3 05-20-2006 10:18 AM
how can I mount this device: da0: <USB 2.0 Storage Device alkad_mzu *BSD 2 11-15-2003 06:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 09:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration