Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Formatting usb stick
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
jonfr
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1008
Location: Denmark

PostPosted: Tue Feb 19, 2013 2:53 am    Post subject: Formatting usb stick Reply with quote

What is the best way for me to format usb stick (16GB) in Gentoo Linux? I want to use other file system then normal Fat32 that has 4GB file limit (annoying limit).

Thanks for the help.
Back to top
View user's profile Send private message
wuzzerd
Guru
Guru


Joined: 05 Jan 2005
Posts: 466
Location: New Mexico

PostPosted: Tue Feb 19, 2013 3:08 am    Post subject: Reply with quote

Format it just like a disk using mkfs.
Back to top
View user's profile Send private message
jonfr
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1008
Location: Denmark

PostPosted: Tue Feb 19, 2013 3:27 am    Post subject: Reply with quote

When I do. I get this error.

Code:
sd 9:0:0:0: Attached scsi generic sg8 type 0
sd 9:0:0:0: [sdh] 31326208 512-byte logical blocks: (16.0 GB/14.9 GiB)
sd 9:0:0:0: [sdh] Write Protect is off
sd 9:0:0:0: [sdh] Mode Sense: 43 00 00 00
sd 9:0:0:0: [sdh] No Caching mode page present
sd 9:0:0:0: [sdh] Assuming drive cache: write through
sd 9:0:0:0: [sdh] No Caching mode page present
sd 9:0:0:0: [sdh] Assuming drive cache: write through
 sdh: sdh1
sd 9:0:0:0: [sdh] No Caching mode page present
sd 9:0:0:0: [sdh] Assuming drive cache: write through
sd 9:0:0:0: [sdh] Attached SCSI removable disk
sdh: detected capacity change from 16039018496 to 0


When trying to format sdh.

Code:
mkfs.ext3 -j /dev/sdh
mke2fs 1.42 (29-Nov-2011)
/dev/sdh is entire device, not just one partition!
Proceed anyway? (y,n) y
mkfs.ext3: No medium found while trying to determine filesystem size


When trying to format sdh1.

Code:
mkfs.ext3 -j /dev/sdh1
mke2fs 1.42 (29-Nov-2011)
Could not stat /dev/sdh1 --- No such file or directory

The device apparently does not exist; did you specify it correctly?


I do not understand why this does not work. Getting rid of fat32 would be good. Since I only use this usb stick to watch media files on my television.
Back to top
View user's profile Send private message
imaginasys
Tux's lil' helper
Tux's lil' helper


Joined: 26 Dec 2009
Posts: 83
Location: Québec

PostPosted: Tue Feb 19, 2013 4:43 am    Post subject: Reply with quote

Well,

I have a suggestion. First create a partiton on the USB stick before trying to format.
It looks like your usb key has no partition on it (you can check with parted).

Use gdisk or gparted or parted in command line. Then use mkfs to format.

Good luck!
BT :mrgreen:
Back to top
View user's profile Send private message
jonfr
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1008
Location: Denmark

PostPosted: Tue Feb 19, 2013 5:06 am    Post subject: Reply with quote

imaginasys wrote:
Well,

I have a suggestion. First create a partiton on the USB stick before trying to format.
It looks like your usb key has no partition on it (you can check with parted).

Use gdisk or gparted or parted in command line. Then use mkfs to format.

Good luck!
BT :mrgreen:


It is originally formatted with Windows XP. That did create a partiton on it. I have tested looking for the partiton table with cfdisk. But I have hit nothing but errors doing so.
Back to top
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1248
Location: 42.68n 85.41w

PostPosted: Tue Feb 19, 2013 5:37 am    Post subject: Reply with quote

ill second gparted.... i suggest NTFS for comparability reasons... if your tv is a smart tv it should support ntfs... some cd players for cars support ntfs, others not so much. maybe if its a smart tv it will support ext2/3/4.... as some do run linux derivatives
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum