Rootserver Sponsor

webtropia"

Donations

Please support your operating system's further development:

donate"

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
maurizioOffline
15 Post subject: (solved) usb pen partitioning  PostPosted: 15.09.2013, 10:58



Joined: 2012-12-05
Posts: 53
Location: Italy
Status: Offline
Hallo,

I was trying to install Debian on a usb stick,
with unetbootin.
It didn't worked,
and I repartitioned the stick using gparted.
Gparted gave an error,
and now this pen drive is behaving strange!

kde mounts the usb and reads some files in it,
while gparted says there's unallocated space.
If I run fdisk, it says 'no partition is defined yet !'

Here' s what fdisk says:

      Code:
Disk /dev/sdb: 8022 MB, 8022654976 bytes
247 heads, 62 sectors/track, 1023 cylinders, total 15669248 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0005b3c6

   Device Boot      Start         End      Blocks   Id  System


Does anyone can help?
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
bfreeOffline
Post subject: RE: usb pen partitioning  PostPosted: 15.09.2013, 11:47
Team Member


Joined: 2010-08-26
Posts: 267

Status: Offline
Presuming you don't care about what is on the stick now (if you do then use anything you can to access it and get the stuff off it) then just wipe the start of the stick and start again. A command like:
      Code:
dd if=/dev/zero of=/dev/sdX bs=1M count=1
should do it (replace /dev/sdX with the device name for your usb stick, above you have /dev/sdb but you should check using dmesg or some other method this is still correct before blindly trying it).
 
 View user's profile Send private message  
Reply with quote Back to top
maurizioOffline
Post subject:   PostPosted: 15.09.2013, 12:29



Joined: 2012-12-05
Posts: 53
Location: Italy
Status: Offline
Here it' s done:


      Quote:
root@aptosidbox:/home/maurizio# dd if=/dev/zero of=/dev/sdb bs=1M count=1
1+0 record dentro
1+0 record fuori
1048576 byte (1,0 MB) copiati, 0,00875586 s, 120 MB/s


Now when I put the stick even kde is not recognizing it.
is it fine to partition the stick?
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
bfreeOffline
Post subject:   PostPosted: 15.09.2013, 12:38
Team Member


Joined: 2010-08-26
Posts: 267

Status: Offline
Yes, now you should be able to partition it as usual.
 
 View user's profile Send private message  
Reply with quote Back to top
maurizioOffline
Post subject:   PostPosted: 15.09.2013, 12:44



Joined: 2012-12-05
Posts: 53
Location: Italy
Status: Offline
Yes I did it now seems everything allright.

Gparted created another partitioning table,
and then partitioned again.

Thank you a lot,
if anything similar will happen in the future I will know how to do it!
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio